Font
The font class.
Font is a property of the Bitmap class.
Superclass
Class Methods
Font.new([name[, size]])
Creates a Font object.
Font.exist?(name)
Returns TRUE when the specified font exists within the system.
Properties
name
The font name. The default is "MS PGothic".
Include an array of strings to specify multiple fonts to be used in a desired order.
In this example, if the higher priority font HGPGyoshotai does not exist within the system, the second choice MS PGothic will be used instead.
size
The font size. The default is 22 points.
bold
The bold flag. The default is FALSE.
italic
The italic flag. The default is FALSE.
color
The font color (Color). Alpha values may also be used. The default is (255,255,255,255).
Class Properties
default_name
default_size
default_bold
default_italic
default_color
Change the default values for each component, to be applied to each new Font object.
Last updated