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

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

#include <fonts.h>

Public Attributes

int data_offset
 The file offset of the glyph's raw image data. Only used in the case of a font package. More...
 
int data_length
 The length of the glyph's image data. Only used in the case of a font package. More...
 
char character
 The character that the glyph represents. More...
 
short width
 The width of the glyph image, in pixels. More...
 
short height
 The height of the glyph image, in pixels. More...
 
FontGlyphFormat format
 The format of the glyph image data. See FontGlyphFormat for more details. More...
 
std::string path
 The path of the glyph's image file, relative to fontinfo.xml's location. Only used in the case of an unpackaged font. More...
 
std::string file_path
 The path of the glyph's image file. Only used in the case of an unpackaged font. More...
 
IWICBitmap * bitmap
 The WIC bitmap for this glyph. More...
 
void * bitmap_data
 The raw image data loaded from a font package. This must be available for the lifetime of the font, otherwise the WIC bitmap will fail to draw. More...
 

Detailed Description

Structure to contain data for a Font Glyph.

Member Data Documentation

◆ bitmap

IWICBitmap* Blam::Content::Fonts::FontGlyph::bitmap

The WIC bitmap for this glyph.

◆ bitmap_data

void* Blam::Content::Fonts::FontGlyph::bitmap_data

The raw image data loaded from a font package. This must be available for the lifetime of the font, otherwise the WIC bitmap will fail to draw.

◆ character

char Blam::Content::Fonts::FontGlyph::character

The character that the glyph represents.

◆ data_length

int Blam::Content::Fonts::FontGlyph::data_length

The length of the glyph's image data. Only used in the case of a font package.

◆ data_offset

int Blam::Content::Fonts::FontGlyph::data_offset

The file offset of the glyph's raw image data. Only used in the case of a font package.

◆ file_path

std::string Blam::Content::Fonts::FontGlyph::file_path

The path of the glyph's image file. Only used in the case of an unpackaged font.

◆ format

FontGlyphFormat Blam::Content::Fonts::FontGlyph::format

The format of the glyph image data. See FontGlyphFormat for more details.

◆ height

short Blam::Content::Fonts::FontGlyph::height

The height of the glyph image, in pixels.

◆ path

std::string Blam::Content::Fonts::FontGlyph::path

The path of the glyph's image file, relative to fontinfo.xml's location. Only used in the case of an unpackaged font.

◆ width

short Blam::Content::Fonts::FontGlyph::width

The width of the glyph image, in pixels.


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