1
0
forked from mirrors/0ad
Files
0ad/source
trompetin17 4dc686564e Fix FreeType font loading from zipped mods
The FreeType font loader was directly passing filesystem-style paths
(e.g., mod.zip/...) to FT_New_Face, which does not support paths inside
ZIP archives. As a result, FreeType failed to open the font, triggering
a crash when the engine attempted to use an invalid face object.

This patch changes the font loading logic to:

Use the VFS to read the .ttf font file into memory (shared_ptr<u8> and
size).

Load the font using FT_New_Memory_Face with the in-memory buffer,
ensuring compatibility with zipped mods.
2025-06-03 11:20:56 -05:00
..
2025-04-11 06:24:32 +02:00
2025-05-26 13:12:47 -05:00
2025-06-01 20:51:39 +02:00
2025-06-03 13:52:26 +02:00
2025-05-16 14:57:59 -05:00
2025-06-01 20:51:39 +02:00
2025-04-25 19:15:57 +02:00