...
This commit is contained in:
parent
f7d81409ae
commit
5d9c27d3a7
1 changed files with 0 additions and 1 deletions
|
|
@ -1523,7 +1523,6 @@ initialize_font_group(FontGroup *fg) {
|
||||||
fg->fonts = calloc(fg->fonts_capacity, sizeof(Font));
|
fg->fonts = calloc(fg->fonts_capacity, sizeof(Font));
|
||||||
if (fg->fonts == NULL) fatal("Out of memory allocating fonts array");
|
if (fg->fonts == NULL) fatal("Out of memory allocating fonts array");
|
||||||
fg->fonts_count = 1; // the 0 index font is the box font
|
fg->fonts_count = 1; // the 0 index font is the box font
|
||||||
fg->fonts[0].sprite_position_hash_table = create_sprite_position_hash_table();
|
|
||||||
if (!init_hash_tables(fg->fonts)) fatal("Out of memory");
|
if (!init_hash_tables(fg->fonts)) fatal("Out of memory");
|
||||||
vt_init(&fg->fallback_font_map);
|
vt_init(&fg->fallback_font_map);
|
||||||
#define I(attr) if (descriptor_indices.attr) fg->attr##_font_idx = initialize_font(fg, descriptor_indices.attr, #attr); else fg->attr##_font_idx = -1;
|
#define I(attr) if (descriptor_indices.attr) fg->attr##_font_idx = initialize_font(fg, descriptor_indices.attr, #attr); else fg->attr##_font_idx = -1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue