Issue #896: If we're not merging, then it's possible we're re-baking. Clear the glyph counter so that we start from zero again.
This commit is contained in:
parent
5d81d324c4
commit
01460cafa2
@ -12895,6 +12895,7 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei
|
||||
dst_font->ascent = ((float)unscaled_ascent * font_scale);
|
||||
dst_font->descent = ((float)unscaled_descent * font_scale);
|
||||
dst_font->glyph_offset = glyph_n;
|
||||
dst_font->glyph_count = 0;
|
||||
}
|
||||
|
||||
/* fill own baked font glyph array */
|
||||
|
@ -2347,6 +2347,7 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei
|
||||
dst_font->ascent = ((float)unscaled_ascent * font_scale);
|
||||
dst_font->descent = ((float)unscaled_descent * font_scale);
|
||||
dst_font->glyph_offset = glyph_n;
|
||||
dst_font->glyph_count = 0;
|
||||
}
|
||||
|
||||
/* fill own baked font glyph array */
|
||||
|
Loading…
Reference in New Issue
Block a user