Eleven of SwiftMath's twelve fonts are never used #208

closed cmc opened this on 2026-11-22 07:11 UTC · feature · milestone 1 Reviews and cleanup

Discussion

cmc 2026-11-22 07:11 UTC

Severity: Low.

LatexPreview calls MathImage without a font (Sources/OrgPresentation/LatexPreview.swift:99), so only the default is loaded; the bundle is 7.1 MB, about 6.3 MB of it unused, with two copies on the Mac and three on iOS. Delete the unused fonts in scripts/build-app.sh and a build phase of the Xcode targets.

From the performance review, docs/review-2026-11-21.md (#96).

Platforms: macOS, iOS.

closed by cmc in commit 31297d1fbc: Ship only SwiftMath's Latin Modern font

2026-11-22 17:57 UTC