Struct Font¶
Defined in File fonts.h
Struct Documentation¶
-
struct
Font
¶ Structure to contain data for a Font.
Public Members
-
short
package_version
¶ The version of the font package.
-
std::string
package_engine_version
¶ The minimum engine version to support the font package version specified.
-
bool
is_font_package
¶ Whether or not the data originates from a font package.
-
int
ttf_offset
¶ The offset of the embedded TrueType font data within the font package.
-
int
ttf_length
¶ The length of the embedded TrueType font data.
-
std::string
id
¶ The unique ID of the font.
-
short
size
¶ The size of the font.
-
short
charspacing
¶ The amount of space, in pixels, between each character.
-
bool
monospaced
¶ Whether or not to treat the font as a monospace font.
-
short
mono_width
¶ The width for each character to be. Extra space will be left as needed if the glyph width is too small, and larger widths will be cut off.
-
short
space_width
¶ The amount of space, in pixels, to use for the space character.
-
bool
is_truetype
¶ Whether or not the font is a TrueType based font.
-
std::string
ttf_path
¶ The path to the TrueType font file.
-
std::string
ttf_name
¶ The display name of the TrueType font file. TODO: Make this shit automated.
-
std::string
path
¶ The path of the font package, excluding the file extension.
-
std::string
file_path
¶ The path to either the font package or the
fontinfo.xml
file for this font.
-
short