Commit Graph

87 Commits

Author SHA1 Message Date
Daniel Resnick
a73bf8d3f1 Add layout info to MathImage
This makes it possible to align images generated by MathImage alongside text, in an AttributedString for example.
2025-05-16 18:36:32 -06:00
mgriebling
28184a044c Merge pull request #39 from lbioser/fix_color_crash
fix crush when {color}
2025-04-22 10:02:40 -04:00
Daniel Resnick
f6f4ebfa89 Fix crashes due to forced unwrapping 2025-04-16 18:10:56 -06:00
Richard
1c3bf9129a Added support for visionOS by adding to #if os(iOS) || os(visionOS) 2025-03-27 11:19:51 +01:00
libing
d84db07ef3 2025-02-12 06:15:06 +00:00
Michael Griebling
606f9be66d Fix Ø command. 2024-12-18 14:50:44 -05:00
Michael Griebling
5c251ad218 Added comments to the accents. 2024-12-18 09:17:40 -05:00
Michael Griebling
1708b07bc9 Restore original `i's. 2024-12-17 16:18:00 -05:00
Michael Griebling
c73dc863b8 Try better accented 'i'. 2024-12-17 15:39:17 -05:00
Michael Griebling
872fa0b2bf Update \cc and \CC definitions. 2024-12-17 15:24:56 -05:00
Michael Griebling
653fe396de Fixed the ç and Ç commands, \cc and \CC, respectively. 2024-12-17 11:29:42 -05:00
Michael Griebling
3f8a358984 Added special symbols. 2024-12-17 11:08:14 -05:00
Michael Griebling
d0b1ff94df 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.
2024-12-17 10:21:27 -05:00
Michael Griebling
07b110d07f Update internal changes. 2024-12-15 12:21:08 -05:00
Andrew Lebedev
1dbbaddbff Add thread safety for fonts cache via read-write lock in MTFontManager 2024-11-20 17:57:37 +01:00
Peter Tang
25938db765 Add NSLock to protect lazily loaded tables in multithread concurrent setting 2024-10-26 22:20:25 +08:00
Michael Griebling
55b539b74e Updated MathView examples. 2024-10-08 19:45:30 -04:00
Michael Griebling
7799485428 Added fonts and provided previews. 2024-10-08 19:35:42 -04:00
Michael Griebling
de4484382d Updated some fonts and added python script to create plist files. 2024-10-06 17:56:24 -04:00
Michael Griebling
9fecdcf563 Fix Mac version crashes on TextColor. Need at least v12. 2024-10-05 13:52:35 -04:00
Michael Griebling
428537b8d9 Put back Color code in place of txetcolor due to crashes. 2024-10-05 11:29:31 -04:00
Michael Griebling
2809379401 Removed Chinese support (messed with root). Fixed tests. 2024-10-05 10:45:03 -04:00
Michael Griebling
cfc0e75715 Added support for Chinese characters 2024-10-05 10:20:08 -04:00
zhanglecong
0da9f64eda Remove useless nil guard 2024-09-14 00:40:48 +08:00
zhanglecong
b4c329859f Fix fontSize arg is not applied to MTMathImage 2024-09-14 00:38:26 +08:00
Oskar Persson
52823433fd Add diamond symbol 2024-05-19 22:19:45 +02:00
Oskar Persson
2f485c94dc Add support for textcolor 2023-11-15 21:09:47 +01:00
Peter Tang
9fd78752a2 renamed 2023-10-01 04:21:22 +08:00
Peter Tang
cf41852f30 remove Hashable CGSize 2023-09-30 15:17:26 +08:00
Peter Tang
703f252765 resize the image 2023-09-30 15:03:16 +08:00
Peter Tang
1cf614036f Fix concurrency thread-safe exception 2023-09-26 13:07:49 +08:00
Peter Tang
73a56c3d93 consolidate to use threadSafeQueue only. 2023-09-19 09:21:07 +08:00
Peter Tang
024468cddd threadsafe protect CTFontCreateWithGraphicsFont 2023-09-18 21:54:45 +08:00
Peter Tang
b637b18ace resource loading is serialised, font and mathtable dictionaries in BundleManager are threadsafe protected. 2023-09-18 19:04:06 +08:00
Peter Tang
6306ab7c4b threadsafe MathImage and MTMathImag concurrent testScripts. 2023-09-18 14:47:45 +08:00
Peter Tang
5de5ea677e threadsafe MathFont, MTFontV2, MTFontMathTableV2 with concurrent testScripts. 2023-09-18 13:30:31 +08:00
Peter Tang
40a6896889 corrected some variable names within BundleManager functions, added onDemandBundle registration instead of loading all Resources at startup. 2023-09-15 17:06:06 +08:00
Peter Tang
2cdab9cc0e comment lines updated. 2023-09-15 12:06:58 +08:00
Peter Tang
b20bfd37df cleaned unnecessary comments. 2023-09-15 11:34:21 +08:00
Peter Tang
9d42487ee5 use debugPrint instead. 2023-09-15 11:32:59 +08:00
Peter Tang
f36db0db3a complete rest of MTFontMathTableV2 logic 2023-09-15 10:53:38 +08:00
Peter Tang
cea2188310 Sunset MathTable, created MTFontV2, MTFontMathTableV2 and MathImage, about to sunset MTMathImage 2023-09-15 09:53:54 +08:00
Michael Griebling
2762cbee85 Removed font warning in print. 2023-09-12 07:59:07 -04:00
Peter Tang
4d922a5638 updated all resource names separate from fontName, fontFamilyName. 2023-09-12 18:40:01 +08:00
Peter Tang
490790c06f fixed UIFont and NSFont issue, their names are different from the otf file names 2023-09-12 18:10:05 +08:00
Peter Tang
85d25cf177 clean up array contents within BundleManager. 2023-09-12 09:38:11 +08:00
Peter Tang
d1e9a39e11 cache fontMathTable within MathTable to optimize. 2023-09-12 09:27:11 +08:00
Peter Tang
2d579c1192 modified declaration glyph in GlyphPart within MathTable. 2023-09-12 08:57:39 +08:00
Peter Tang
d1c4ac77a6 embedded GlyphPart within MathTable, MTTypesetter is not yet using this GlyphPart. 2023-09-12 08:28:24 +08:00
Peter Tang
018ce0cd08 MathFont and MathTable added, both do not rely on existing SwifthMath code. 2023-09-12 07:55:46 +08:00