diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2020-11-27 12:17:36 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2020-12-03 16:03:37 +0000 |
commit | fce9bcfbda7acdf758fe6fb5264bb1e78eb39039 (patch) | |
tree | 7b1785874e27e1854613e3282d0e7550317c1892 /base/gxfapi.c | |
parent | 596394e2cdff74488fb53fc818d7f5ca4d3ac1da (diff) | |
download | ghostpdl-fce9bcfbda7acdf758fe6fb5264bb1e78eb39039.tar.gz |
FAPI: fix applying offsets for glyph paths
If the renderer doesn't deal with replacing metrics, we apply an offset to the
glyph before we pass it back into Ghostscript....
Except we weren't doing it for outline glyphs. Shouldn't (currently) affect
freetype, but nevertheless....
Diffstat (limited to 'base/gxfapi.c')
-rw-r--r-- | base/gxfapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxfapi.c b/base/gxfapi.c index ae464de5b..5877a0ba9 100644 --- a/base/gxfapi.c +++ b/base/gxfapi.c @@ -565,8 +565,8 @@ outline_char(gs_memory_t *mem, gs_fapi_server *I, int import_shift_v, gs_gstate *pgs = penum_s->pgs; olh.path = path; - olh.x0 = pgs->ctm.tx_fixed; - olh.y0 = pgs->ctm.ty_fixed; + olh.x0 = pgs->ctm.tx_fixed - float2fixed(penum_s->fapi_glyph_shift.x); + olh.y0 = pgs->ctm.ty_fixed - float2fixed(penum_s->fapi_glyph_shift.y); olh.close_path = close_path; olh.need_close = false; path_interface.olh = &olh; |