for (le_int32 g = 0; g < count; g += 1) {
dx[g] = (le_int32) (positions[g * 2 + 2] - positions[g * 2]);
- dy[g] = (le_int32) positions[g * 2 + 1];
+ dy[g] = (le_int32) - positions[g * 2 + 1];
}
raster = gFont->rasterizeGlyphs(glyphs, count, dx, dy, xOffset, yOffset);
advance.fX = 0;
advance.fY = 0;
- if (glyph == 0xFFFF) {
+ if (glyph >= 0xFFFE) {
return;
}
error = TT_Load_Glyph(fInstance, fGlyph, glyph, TTLOAD_SCALE_GLYPH | TTLOAD_HINT_GLYPH);
if (error != 0) {
- return false;
+ return FALSE;
}
error = TT_Get_Glyph_Outline(fGlyph, &outline);
if (error != 0 || pointNumber >= outline.n_points) {
- return false;
+ return FALSE;
}
point.fX = outline.points[pointNumber].x >> 6;
point.fY = outline.points[pointNumber].y >> 6;
- return true;
+ return TRUE;
}
// This table was generated by a little Java program.