Draw, PdfDraw, Painter: Improved support for non-truetype fonts in PDF

git-svn-id: svn://ultimatepp.org/upp/trunk@5607 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-12-01 10:24:54 +00:00
commit 030573a5a2
11 changed files with 44 additions and 49 deletions

View file

@ -136,7 +136,7 @@ CommonFontInfo GetFontInfoSys(Font font)
fi.charcount = tm.tmLastChar - tm.tmFirstChar + 1;
fi.default_char = tm.tmDefaultChar;
fi.fixedpitch = (tm.tmPitchAndFamily & TMPF_FIXED_PITCH) == 0;
fi.scaleable = tm.tmPitchAndFamily & TMPF_TRUETYPE;
fi.ttf = fi.scaleable = tm.tmPitchAndFamily & TMPF_TRUETYPE;
if(fi.scaleable) {
ABC abc;
GetCharABCWidths(hdc, 'o', 'o', &abc);