Skip to content

Commit

Permalink
Issue vurtun#896: If we're not merging, then it's possible we're re-b…
Browse files Browse the repository at this point in the history
…aking. Clear the glyph counter so that we start from zero again.
  • Loading branch information
molecularentropy committed Sep 8, 2019
1 parent 5d81d32 commit 01460ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions src/nuklear_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 01460ca

Please sign in to comment.