Difference between revisions of "LGUI2:Fonts"
Jump to navigation
Jump to search
(Created page with "A Font specifies the size and appearance of text. == Defining a Font == A Font is defined by a JSON object. {| border="1" style="border-collapse:collapse" cellpadding="5" !c...") |
|||
Line 24: | Line 24: | ||
{ | { | ||
"face":"Arial", | "face":"Arial", | ||
− | "height":12 | + | "height":12 |
} | } | ||
Line 30: | Line 30: | ||
{ | { | ||
"face":"Comic Sans", | "face":"Comic Sans", | ||
− | "height":14 | + | "height":14 |
} | } | ||
[[Category:LavishGUI 2]] | [[Category:LavishGUI 2]] |
Revision as of 05:10, 26 May 2018
A Font specifies the size and appearance of text.
Defining a Font
A Font is defined by a JSON object.
Base Element styles | |
---|---|
face | The name of the Font face, such as "Arial" |
fixed | A boolean value (true or false) specifying whether to use a fixed-width font if possible |
bold | A boolean value (true or false) specifying whether to Bold the font |
height | An integer value (whole number) specifying the font height in points, e.g. with 12 being a 12pt font as opposed to 12 pixels (they are different!). |
Examples
; 12-point Arial { "face":"Arial", "height":12 }
; 14-point Comic Sans { "face":"Comic Sans", "height":14 }