mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
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:
parent
4d2c1b3bd7
commit
030573a5a2
11 changed files with 44 additions and 49 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue