Blamite Game Engine - Blam (Core)
Blam::Content::Fonts::Font Struct Reference

Structure to contain data for a Font. More...

#include <fonts.h>

Public Attributes

short package_version
 The version of the font package. More...
 
std::string package_engine_version
 The minimum engine version to support the font package version specified. More...
 
bool is_font_package
 Whether or not the data originates from a font package. More...
 
int ttf_offset
 The offset of the embedded TrueType font data within the font package. More...
 
int ttf_length
 The length of the embedded TrueType font data. More...
 
std::string id
 The unique ID of the font. More...
 
short size
 The size of the font. More...
 
short charspacing
 The amount of space, in pixels, between each character. More...
 
bool monospaced
 Whether or not to treat the font as a monospace font. More...
 
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. More...
 
short space_width
 The amount of space, in pixels, to use for the space character. More...
 
short line_height
 The amount of space, in pixels, between each line. More...
 
bool is_truetype
 Whether or not the font is a TrueType based font. More...
 
std::string ttf_path
 The path to the TrueType font file. More...
 
std::string ttf_name
 The display name of the TrueType font file. TODO: Make this shit automated. More...
 
std::string path
 The path of the font package, excluding the file extension. More...
 
std::string file_path
 The path to either the font package or the fontinfo.xml file for this font. More...
 
std::map< char, FontGlyphglyph_list
 The list of glyphs for this font. More...
 

Detailed Description

Structure to contain data for a Font.

Member Data Documentation

◆ charspacing

short Blam::Content::Fonts::Font::charspacing

The amount of space, in pixels, between each character.

◆ file_path

std::string Blam::Content::Fonts::Font::file_path

The path to either the font package or the fontinfo.xml file for this font.

◆ glyph_list

std::map<char, FontGlyph> Blam::Content::Fonts::Font::glyph_list

The list of glyphs for this font.

The key is the character of the glyph. The value is the FontGlyph data for the specified character.

◆ id

std::string Blam::Content::Fonts::Font::id

The unique ID of the font.

◆ is_font_package

bool Blam::Content::Fonts::Font::is_font_package

Whether or not the data originates from a font package.

◆ is_truetype

bool Blam::Content::Fonts::Font::is_truetype

Whether or not the font is a TrueType based font.

◆ line_height

short Blam::Content::Fonts::Font::line_height

The amount of space, in pixels, between each line.

◆ mono_width

short Blam::Content::Fonts::Font::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.

◆ monospaced

bool Blam::Content::Fonts::Font::monospaced

Whether or not to treat the font as a monospace font.

◆ package_engine_version

std::string Blam::Content::Fonts::Font::package_engine_version

The minimum engine version to support the font package version specified.

◆ package_version

short Blam::Content::Fonts::Font::package_version

The version of the font package.

◆ path

std::string Blam::Content::Fonts::Font::path

The path of the font package, excluding the file extension.

◆ size

short Blam::Content::Fonts::Font::size

The size of the font.

◆ space_width

short Blam::Content::Fonts::Font::space_width

The amount of space, in pixels, to use for the space character.

◆ ttf_length

int Blam::Content::Fonts::Font::ttf_length

The length of the embedded TrueType font data.

◆ ttf_name

std::string Blam::Content::Fonts::Font::ttf_name

The display name of the TrueType font file. TODO: Make this shit automated.

◆ ttf_offset

int Blam::Content::Fonts::Font::ttf_offset

The offset of the embedded TrueType font data within the font package.

◆ ttf_path

std::string Blam::Content::Fonts::Font::ttf_path

The path to the TrueType font file.


The documentation for this struct was generated from the following file: