Added color and font styles.

This commit is contained in:
Michael Griebling
2023-01-03 13:26:38 -05:00
parent c364e56d31
commit a5e6d37d0c
16 changed files with 6611 additions and 5 deletions

View File

@@ -0,0 +1,33 @@
//
// MTBezierPath.swift
// MathRenderSwift
//
// Created by Mike Griebling on 2022-12-31.
//
import Foundation
#if os(macOS)
extension MTBezierPath {
func addLine(to point: CGPoint) {
self.line(to: point)
}
}
extension MTView {
var backgroundColor:MTColor? {
get {
MTColor(cgColor: self.layer?.backgroundColor ?? MTColor.clear.cgColor)
}
set {
self.layer?.backgroundColor = MTColor.clear.cgColor
self.wantsLayer = true
}
}
}
#endif