This commit is contained in:
Alessandro Mauri 2025-09-24 22:49:34 +02:00
parent fe9e2bdf49
commit 6a13245fd9

View File

@ -113,10 +113,10 @@ fn void? Font.load(&font, String name, ZString path, uint height, float scale)
font.atlas.new(font.id, ATLAS_GRAYSCALE, size, size)!;
// FIXME: this crashes with O1 or greater, why??
// // preallocate the ASCII range
// for (char c = ' '; c < '~'; c++) {
// font.get_glyph((Codepoint)c)!;
// }
// preallocate the ASCII range
for (char c = ' '; c < '~'; c++) {
font.get_glyph((Codepoint)c)!;
}
}
fn Glyph*? Font.get_glyph(&font, Codepoint code)