Parcourir la source

Fix stb_truetype composite glyph scaling logic

pull/4811/head
Ashish Bhattarai il y a 1 mois
Parent
révision
1adf5a8274
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. +4
    -4
      src/external/stb_truetype.h

+ 4
- 4
src/external/stb_truetype.h Voir le fichier

@ -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);

Chargement…
Annuler
Enregistrer