2026-01-01 22:18:40 -05:00
|
|
|
type font [display="Font"]
|
|
|
|
|
{
|
|
|
|
|
i32 name_ptr [ui, readonly, display="Name Ptr"];
|
2026-01-07 16:36:40 -05:00
|
|
|
i32 pixel_height [ui, readonly, display="Pixel Height"];
|
|
|
|
|
i32 glyph_count [ui, readonly, display="Glyph Count"];
|
|
|
|
|
i32 material_ptr [ui, readonly, display="Material Ptr"];
|
|
|
|
|
i32 glow_material_ptr [ui, readonly, display="Glow Material Ptr"];
|
|
|
|
|
i32 glyphs_ptr [ui, readonly, display="Glyphs Ptr"];
|
2026-01-01 22:18:40 -05:00
|
|
|
|
2026-01-07 16:36:40 -05:00
|
|
|
// Parse inline name
|
2026-01-01 22:18:40 -05:00
|
|
|
if (name_ptr == -1) {
|
|
|
|
|
name = cstring() [ui, readonly, display="Name"];
|
2026-01-07 16:36:40 -05:00
|
|
|
_name = name;
|
2026-01-01 22:18:40 -05:00
|
|
|
}
|
|
|
|
|
|
2026-01-07 16:36:40 -05:00
|
|
|
// Parse inline material
|
|
|
|
|
if (material_ptr == -1) {
|
|
|
|
|
material = parse_here("material");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Parse inline glow material
|
|
|
|
|
if (glow_material_ptr == -1) {
|
|
|
|
|
glow_material = parse_here("material");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Parse inline glyphs
|
|
|
|
|
if (glyphs_ptr == -1 && glyph_count > 0) {
|
|
|
|
|
glyphs = 0;
|
|
|
|
|
repeat(glyph_count) {
|
|
|
|
|
_glyph = parse_here("glyph");
|
|
|
|
|
glyphs = push("glyphs", _glyph);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-01-01 22:18:40 -05:00
|
|
|
}
|