Przeglądaj źródła

Fix stb_truetype composite glyph scaling logic (#4811)

pull/4812/head
Ashish Bhattarai 1 tydzień temu
committed by GitHub
rodzic
commit
f1385f3aec
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      src/external/stb_truetype.h

+ 4
- 4
src/external/stb_truetype.h Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz