This commit is contained in:
Kovid Goyal 2017-10-27 13:06:41 +05:30
parent 855d91d9dd
commit a2fdea1a98
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -354,7 +354,7 @@ draw_complex_glyph(Face *self, PyObject *args) {
BitmapPoint src, dest;
for (unsigned i = 0; i < sd.length; i++) {
if (sd.info[i].codepoint == 0) continue;
_load_char(self, sd.info[i].codepoint);
if (!_load_char(self, sd.info[i].codepoint)) { free(g.buf); return NULL; }
if (i == 0) { g.metrics = self->face->glyph->metrics; }
x += (float)sd.positions[i].x_offset / 64.0;
y -= (float)sd.positions[i].y_offset / 64.0;