mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 03:58:15 +02:00
gtk intf: heuristic to detect true type fonts, bug #16298
git-svn-id: trunk@24780 -
This commit is contained in:
parent
de4c8cb596
commit
2e66a93ebd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user