#FEATURE by stefan
authorStefan Vogel <sv@exept.de>
Wed, 09 Nov 2016 10:17:25 +0100
changeset 7673 8fcc7f754c03
parent 7672 ef23e698c67e
child 7674 a3cdff150bcf
#FEATURE by stefan class: XftFontDescription changed: #onDevice:ifAbsent: Slow font matching is a MAC-only feature
XftFontDescription.st
--- a/XftFontDescription.st	Mon Nov 07 16:54:00 2016 +0100
+++ b/XftFontDescription.st	Wed Nov 09 10:17:25 2016 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:libview' }"
 
 "{ NameSpace: Smalltalk }"
@@ -741,9 +743,9 @@
         computedWeight := StXFace2FCWeightMap at:(face ? '') asLowercase ifAbsent:[FC_WEIGHT_REGULAR].
     ].
 
-
-    FirstTimeCalled ~~ false ifTrue:[
-        'XftFont: matching font (this may take a long time, if the system''s font cache needs to be filled first. Be patient...' infoPrintCR.
+    (OperatingSystem isMAClike and:[FirstTimeCalled ~~ false]) ifTrue:[
+        "Slow font matching is a MAC-only feature"
+        Logger info:'XFT: matching font (this may take a long time, if the system''s font cache needs to be filled first. Be patient...'.
         FirstTimeCalled := false.
     ].