From 4f6643cc0ce61caa3bd8959ce681c9c4e1678c5e Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 14 Jan 2015 22:05:13 +0000 Subject: [PATCH] Fix missing glyph handling in modified stb_truetype.h (ttf branch) --- stb_truetype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_truetype.h b/stb_truetype.h index 2374e83c6..8d101accb 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -2330,7 +2330,7 @@ int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, stbtt_fontinfo *inf rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); } else { - rects[k].w = rects[k].h = 0; + rects[k].w = rects[k].h = 1; } ++k; }