Procházet zdrojové kódy

Fix stb_truetype composite glyph scaling logic

pull/4811/head
Ashish Bhattarai před 1 měsícem
rodič
revize
1adf5a8274
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. +4
    -4
      src/external/stb_truetype.h

+ 4
- 4
src/external/stb_truetype.h Zobrazit soubor

@ -1863,11 +1863,11 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s
stbtt_vertex* v = &comp_verts[i];
stbtt_vertex_type x,y;
x=v->x; y=v->y;
v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4]p">));
v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5]p">));
v->x = (stbtt_vertex_type)(mtx[0]*x + mtx[2]*y + mtx[4]o">*m);
v->y = (stbtt_vertex_type)(mtx[1]*x + mtx[3]*y + mtx[5]o">*n);
x=v->cx; y=v->cy;
v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4]p">));
v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5]p">));
v->cx = (stbtt_vertex_type)(mtx[0]*x + mtx[2]*y + mtx[4]o">*m);
v->cy = (stbtt_vertex_type)(mtx[1]*x + mtx[3]*y + mtx[5]o">*n);
}
// Append vertices.
tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata);

Načítá se…
Zrušit
Uložit