Files
libretroadmin 58df7bf08b pkg: trim the OSD and fallback fonts to what RetroArch reads
The five fonts in pkg/ lose the tables no renderer RetroArch uses ever
reads - the layout tables, kerning, vertical metrics, glyph names - and
the glyphs only those tables could reach, 416 KB of 6.8 MB between them:
fallback-font.ttf 18%, osd-font.ttf 16%, thai-fallback-font.ttf 10%,
chinese- and korean-fallback-font.ttf 4% each. RetroArch reads a font
whole into memory, so the saving is in RAM as well as on disk. Every
glyph of every codepoint each font maps, at 10, 14, 18, 24, 32 and 48 px,
comes out of RetroArch's own TrueType reader and its FreeType path with
the same coverage, size, offsets and advance as before, and the same line
metrics.

scripts/trim-font.py is the trim, for fonts added to pkg/ later.
2026-10-01 19:40:12 +02:00
..