parent
84fd09ea53
commit
1f2b4271e3
@ -2210,12 +2210,10 @@ static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, in
|
|||||||
{
|
{
|
||||||
stbtt__csctx c = STBTT__CSCTX_INIT(1);
|
stbtt__csctx c = STBTT__CSCTX_INIT(1);
|
||||||
int r = stbtt__run_charstring(info, glyph_index, &c);
|
int r = stbtt__run_charstring(info, glyph_index, &c);
|
||||||
if (x0) {
|
if (x0) *x0 = r ? c.min_x : 0;
|
||||||
*x0 = r ? c.min_x : 0;
|
if (y0) *y0 = r ? c.min_y : 0;
|
||||||
*y0 = r ? c.min_y : 0;
|
if (x1) *x1 = r ? c.max_x : 0;
|
||||||
*x1 = r ? c.max_x : 0;
|
if (y1) *y1 = r ? c.max_y : 0;
|
||||||
*y1 = r ? c.max_y : 0;
|
|
||||||
}
|
|
||||||
return r ? c.num_vertices : 0;
|
return r ? c.num_vertices : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user