Functions for handling fonts. Note that most core widget functions use these implicitly through the :font option.
Functions for handling fonts. Note that most core widget functions use these implicitly through the :font option.
(default-font name)
Look up a default font from the UIManager.
Example:
(default-font "Label.font")
Returns an instane of java.awt.Font
Look up a default font from the UIManager. Example: (default-font "Label.font") Returns an instane of java.awt.Font See: http://download.oracle.com/javase/6/docs/api/javax/swing/UIManager.html#getFont%28java.lang.Object%29
(font & args)
Create and return a Font.
(font name)
(font ... options ...)
Options are:
:name The name of the font. Besides string values, also possible are any of :monospaced, :serif, :sans-serif. See (seesaw.font/font-families) to get a system-specific list of all valid values. :style The style. One of :bold, :plain, :italic, or a set of those values to combine them. Default: :plain. :size The size of the font. Default: 12. :from A Font from which to derive the new Font.
Returns a java.awt.Font instance.
Examples:
; Create a font from a font-spec (see JavaDocs) (font "ARIAL-ITALIC-20")
; Create a 12 pt bold and italic monospace (font :style #{:bold :italic} :name :monospaced)
See: (seesaw.font/font-families) http://download.oracle.com/javase/6/docs/api/java/awt/Font.html
Create and return a Font. (font name) (font ... options ...) Options are: :name The name of the font. Besides string values, also possible are any of :monospaced, :serif, :sans-serif. See (seesaw.font/font-families) to get a system-specific list of all valid values. :style The style. One of :bold, :plain, :italic, or a set of those values to combine them. Default: :plain. :size The size of the font. Default: 12. :from A Font from which to derive the new Font. Returns a java.awt.Font instance. Examples: ; Create a font from a font-spec (see JavaDocs) (font "ARIAL-ITALIC-20") ; Create a 12 pt bold and italic monospace (font :style #{:bold :italic} :name :monospaced) See: (seesaw.font/font-families) http://download.oracle.com/javase/6/docs/api/java/awt/Font.html
(font-families)
(font-families locale)
Returns a seq of strings naming the font families on the system. These are the names that are valid in :name option (seesaw.font/font) as well as in font descriptor strings like "Arial-BOLD-20"
See: (seesaw.core/font)
Returns a seq of strings naming the font families on the system. These are the names that are valid in :name option (seesaw.font/font) as well as in font descriptor strings like "Arial-BOLD-20" See: (seesaw.core/font)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close