Commits

tanoku  committed 4bb25ff

Fixed text placement when rotating FT fonts.

  • Participants
  • Parent commits 8df7b59
  • Branches pgreloaded

Comments (0)

Files changed (1)

File src/freetype/ft_render.c

     pen.x = FT_MulFix(pen.x, center); 
     pen.y = FT_MulFix(pen.y, center);
 
+    if (render->matrix)
+        pen.y += text->glyph_size.y / 2;
+
     /* get pen position */
     if (render->matrix && FT_IS_SCALABLE(face))
     {