diff options
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/pngout.w')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/pngout.w | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mplibdir/pngout.w b/Build/source/texk/web2c/mplibdir/pngout.w index 5e901c4f063..1ab58d6b015 100644 --- a/Build/source/texk/web2c/mplibdir/pngout.w +++ b/Build/source/texk/web2c/mplibdir/pngout.w @@ -470,6 +470,14 @@ void mp_png_text_out (MP mp, mp_text_object *p) { cairo_fill(mp->png->cr); } wd = mp_get_char_dimension (mp, mp->font_name[fn], k, 'w'); + /* wd/100 is the size in PS point , ie wd =100*real_wd */ + /* but _without_ considering scaling. */ + /* We have a scale factor of */ + /* (ds/1000.0)*scf */ + /* so to match the scale wd should be */ + /* 1000*real_wd *scf /(ds *scf) */ + /* i.e. 10*wd/ds */ + wd *= 10.0/ds; cairo_translate(mp->png->cr,wd,0); } cairo_restore(mp->png->cr); |