gtk intf: heuristic to detect true type fonts, bug #16298

git-svn-id: trunk@24780 -
This commit is contained in:
mattias 2010-04-21 07:31:33 +00:00
parent de4c8cb596
commit 2e66a93ebd

View File

@ -3459,7 +3459,9 @@ var
function XLFDToFontType: integer;
begin
if (xlfd.PointSize=0)and(xlfd.PixelSize=0) then
if ((xlfd.PointSize=0) and (xlfd.PixelSize=0))
or ((xlfd.PointSize=120) and (xlfd.PixelSize=17)) // see bug 16298
then
result := TRUETYPE_FONTTYPE
else
result := RASTER_FONTTYPE or DEVICE_FONTTYPE;