mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: Cocoa font metrics improved
git-svn-id: svn://ultimatepp.org/upp/trunk@12215 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fefa84ae26
commit
5ec09a4029
1 changed files with 5 additions and 5 deletions
|
|
@ -93,18 +93,18 @@ CommonFontInfo GetFontInfoSys(Font font)
|
|||
if(ctfont) {
|
||||
#if 0
|
||||
DDUMP(font);
|
||||
DDUMP(CTFontGetSize(ctfont));
|
||||
DDUMP(CTFontGetAscent(ctfont));
|
||||
DDUMP(CTFontGetDescent(ctfont));
|
||||
DDUMP(CTFontGetLeading(ctfont));
|
||||
DDUMP();
|
||||
DDUMP(CTFontGetXHeight(ctfont));
|
||||
DDUMP(CTFontGetUnderlinePosition(ctfont));
|
||||
DDUMP(MakeRect(CTFontGetBoundingBox(ctfont)));
|
||||
DDUMPHEX(CTFontGetSymbolicTraits(ctfont));
|
||||
#endif
|
||||
fi.ascent = ceil(CTFontGetAscent(ctfont));
|
||||
fi.descent = ceil(CTFontGetDescent(ctfont));
|
||||
fi.height = fi.ascent + fi.descent;
|
||||
fi.lineheight = fi.height; // TODO!
|
||||
fi.external = 0;
|
||||
fi.ascent = ceil(CTFontGetAscent(ctfont));
|
||||
fi.external = ceil(CTFontGetLeading(ctfont));
|
||||
fi.internal = 0;
|
||||
fi.overhang = 0;
|
||||
fi.maxwidth = GetGlyphInfoSys(ctfont, 'W', synth && font.IsBold()).width; // TODO?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue