This class is used for determining the pixel_width and pixel_height of strings when the
width and/or height is not supplied with the object. This class also loads
and defines a default font when an object does not directly specify a font.
This module requires that each GUI Binding implement the following methods:
- Lfont.supported_font_names()
- Lfont.get_text_width(ltext, lfont) - needed to
determine the size requirements for each font
- Lfont.get_text_height(ltext, lfont) - needed to
determine the size requirements for each font
| [R] |
font |
|
| [R] |
font_id |
|
| [R] |
name |
|
This returns the name of the default font. This is called by Lfont.default_font(). If a default_font is specified in a theme, it will
take precedence over this method. The default font name is
Locana_gui::default_font_name() to let the GUI Binding determine the
default font.
This returns the size of the default font. This is called by Lfont.default_font(). If a default_font is specified in a theme, it will
take precedence over this method. The default font size is
Locana_gui::default_font_size() to let the GUI Binding determine the
default font size.
Returns an array of supported font names.
This always returns an Lfont object. If a Lfont object already exists for lfont, it re-uses it.
If not, it creates and returns a new Lfont object.
- lfont - an array of [font_name, font_size, font_style], an Lfont object, or the symbol of an already created Lfont object.
Creates a new font. Where font is an array of {name, size, style]:
- lfont - an array of [font_name, font_size, font_style] where
- font_name can be symbol or string
- font_size is a number or nil/0 for the default size
- font_style is a symbol (:bold, :italic, :underline) or an array of these
symbols
Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.