Added support for accented and special characters in the input text stream. (e.g., áéíóúýàèìòùâêîôûäëïöüÿãñõçøåæœß'ÁÉÍÓÚÝÀÈÌÒÙÂÊÎÔÛÄËÏÖÜÃÑÕÇØÅÆŒ)

Also added some new commands to support special characters like \aa (å), etc.
This commit is contained in:
Michael Griebling
2024-12-17 10:21:27 -05:00
parent 07b110d07f
commit d0b1ff94df
3 changed files with 96 additions and 17 deletions

View File

@@ -45,22 +45,9 @@ public enum MathFont: String, CaseIterable, Identifiable {
case .leteSansFont: "Lete Sans Math"
}
}
var fontName: String {
switch self {
case .latinModernFont: "LatinModernMath-Regular"
case .kpMathLightFont: "KpMath-Light"
case .kpMathSansFont: "KpMath-Sans"
case .xitsFont: "XITSMath"
case .termesFont: "TeXGyreTermesMath-Regular"
case .asanaFont: "Asana Math"
case .eulerFont: "Euler Math"
case .firaFont: "Fira Math"
case .notoSansFont: "Noto Sans Math"
case .libertinusFont: "Libertinus Math"
case .garamondFont: "Garamond Math"
case .leteSansFont: "Lete Sans Math"
}
}
var fontName: String { self.rawValue }
public func cgFont() -> CGFont {
BundleManager.manager.obtainCGFont(font: self)
}