Skip to content
Myr

Merge branch 'pull-request' of https://github.com/kaesve/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 5c98e65, f3ca0dd · Browse files · 1 file+2 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:stb_truetype.h+2 added-6 removed
44 unmodified lines
45// Hou Qiming Derek Vinyard46// Rob Loach Cort Stratton47// Kenney Phillis Jr. github:oyvindjam48// Brian Costabile github:vassvik49// Ken Voskuil (kaesve)50// 51// VERSION HISTORY52//53// 1.21 (2019-02-25) fix warning
4335 unmodified lines
4389 int ix0,iy0,ix1,iy1;4390 int w,h;4391 unsigned char *data;43924392 // if one scale is 0, use same scale for both4393 if (scale_x == 0) scale_x = scale_y;4394 if (scale_y == 0) {4395 if (scale_x == 0) return NULL; // if both scales are 0, return NULL4396 scale_y = scale_x;4397 }4393 if (scale == 0) return NULL;43944395 stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1);43964397 // if empty, return NULL
481 unmodified lines