diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-06-21 09:32:59 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-06-21 09:32:59 +0100 |
commit | 53e45a9e82f152d5473611e61fc9d8e345b7c380 (patch) | |
tree | 06d26e5ff534ee4ab1da514ae2917ba2acc03439 /xps | |
parent | cc3eebdffaa064eee85775bdb31168c819c32d98 (diff) | |
download | ghostpdl-53e45a9e82f152d5473611e61fc9d8e345b7c380.tar.gz |
Fix commit 33b6a34d6e14e3689dbcf0b0c0585033f84a37aarobin_test_ref
When calculating the stroke width without the font scaling we do still
need to account for the scaling in the CTM caused by the resolution
as pdfwrite uses that.
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xpsglyphs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c index 5e2b6e77d..76e17e7fe 100644 --- a/xps/xpsglyphs.c +++ b/xps/xpsglyphs.c @@ -781,7 +781,7 @@ xps_parse_glyphs(xps_context_t *ctx, gs_setlinewidth(ctx->pgs, font_size * 0.02); else /* Undo CTM scaling */ - gs_setlinewidth(ctx->pgs, font_size * 0.02 * fabs(ctx->pgs->ctm.xx)); + gs_setlinewidth(ctx->pgs, font_size * 0.02 * fabs(ctx->pgs->ctm.xx) / (ctx->pgs->device->HWResolution[0] / 72.0)); gs_settextrenderingmode(ctx->pgs, 2); } |