Skip to content
stathissideris edited this page Jun 6, 2011 · 12 revisions

Style

You should be able to define the size of text in a relative way:

(make (:label) (:style {:text-size "+10%"}))

or

(make (:label) (:style {:text-size "110%"}))

or

(make (:label) (:style {:text-size "x2"})) ;;times two

Colour should be recognisable in different formats:

(make (:label) (:style {:foreground "#ff0000"}))    ;;RGB
(make (:label) (:style {:foreground "#ff000020"}))  ;;RGBA
(make (:label) (:style {:foreground "255,0,0"}))    ;;RGB
(make (:label) (:style {:foreground "255,0,0,32"})) ;;RGBA

Turn on anti-alias easily:

(make (:label) (:style {:anti-alias true}))
Clone this wiki locally