From 8943cc75eca12af61956e8b26c89da9d1ea8b940 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Mon, 4 Mar 2019 17:01:08 +0800 Subject: [PATCH] italic enabled for subpixeled glyph --- src/newgdi/glyph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgdi/glyph.c b/src/newgdi/glyph.c index 329f2a90..39ea66a7 100644 --- a/src/newgdi/glyph.c +++ b/src/newgdi/glyph.c @@ -2932,6 +2932,9 @@ static void _dc_ft2subpixel_scan_line(PDC pdc, int xpos, int ypos, goto nodraw_ret; } + xpos += get_italic_offx (pdc, ctxt->glyph_italic, + ctxt->glyph_ascent, ctxt->glyph_line, ctxt->glyph_advance); + GAL_GetRGB (pdc->textcolor, pdc->surface->format, &rgba_fg.r, &rgba_fg.g, &rgba_fg.b);