mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
4dc686564e
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.