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:
Tom Gaudasinski 2019-09-08 13:41:58 +10:00
parent 5d81d324c4
commit 01460cafa2
2 changed files with 2 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */