mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 23:38:16 +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;
|
function XLFDToFontType: integer;
|
||||||
begin
|
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
|
result := TRUETYPE_FONTTYPE
|
||||||
else
|
else
|
||||||
result := RASTER_FONTTYPE or DEVICE_FONTTYPE;
|
result := RASTER_FONTTYPE or DEVICE_FONTTYPE;
|
||||||
|
Loading…
Reference in New Issue
Block a user