diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-15 14:56:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-15 14:56:05 (GMT) |
commit | bb089fa3ae014082fd1642a5c932f8c0c7422924 (patch) | |
tree | e917ce2bb4fc8961d0de782ce87d967679bb4de5 /macosx | |
parent | c257b74035bb102d5860b77c9484c8e7e5ee833c (diff) | |
download | tk-bb089fa3ae014082fd1642a5c932f8c0c7422924.zip tk-bb089fa3ae014082fd1642a5c932f8c0c7422924.tar.gz tk-bb089fa3ae014082fd1642a5c932f8c0c7422924.tar.bz2 |
Another attempt to fix [434d294df8b053246ee86e7898d06bc3a6d1d771|434d294df8], this time (hopefully) suitable for 8.6. (less changes than the original attempt)
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index b5ae1a3..fd4c19a 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -515,7 +515,7 @@ TkpGetFontFromAttributes( /* Set of attributes to match. */ { MacFont *fontPtr; - int points = TkFontGetPoints(tkwin, faPtr->size); + int points = (int)(TkFontGetPoints(tkwin, faPtr->size) + 0.5); NSFontTraitMask traits = GetNSFontTraitsFromTkFontAttributes(faPtr); NSInteger weight = (faPtr->weight == TK_FW_BOLD ? 9 : 5); NSFont *nsFont; |