mirror of
https://github.com/libretro/retroarch-assets.git
synced 2026-11-09 03:29:45 -10:00
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.