]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/text/text.factor
factor: more top level forms.
[factor.git] / basis / ui / text / text.factor
index 416630670b18392145aa9af757abe96f52623683..f4aa3497dd4e1cf16d49d3594d310c040b8844b1 100644 (file)
@@ -2,7 +2,8 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays assocs cache combinators fonts kernel
 math math.order namespaces opengl opengl.gl opengl.textures
-sequences strings system ui.gadgets.worlds vocabs ;
+sequences strings system ui.gadgets.worlds vocabs
+vocabs.platforms ;
 IN: ui.text
 
 <PRIVATE
@@ -79,8 +80,8 @@ M: array draw-text
         ] with each
     ] do-matrix ;
 
-{
-    { [ os macosx? ] [ "core-text" ] }
-    { [ os windows? ] [ "uniscribe" ] }
-    { [ os unix? ] [ "pango" ] }
-} cond "ui.text." prepend require
+USE-MACOSX: ui.text.core-text
+<!MACOSX
+    USE-UNIX: ui.text.pango
+!MACOSX>
+USE-WINDOWS: ui.text.uniscribe
\ No newline at end of file