persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
Font Struct Reference

Stores data for a font. More...

#include <TextTypes.hpp>

Collaboration diagram for Font:

Public Member Functions

 Font ()=default
 ~Font ()
 Frees the regular and bold bitmaps.
 Font (const Font &)=delete
Font & operator= (const Font &)=delete

Public Attributes

std::uint8_t * bitmap = nullptr
std::uint8_t * bitmapBold = nullptr
int bitmapWidth = 256
int bitmapHeight = 256
int lineHeight = 32
Glyph glyphs [256]
Glyph boldGlyphs [256]
bool boldLoaded = false

Detailed Description

Stores data for a font.

Note
Assumes that the regular and bold (if present) font bitmaps are the same size.

Definition at line 68 of file TextTypes.hpp.

Constructor & Destructor Documentation

◆ Font() [1/2]

Font::Font ( )
default
Here is the caller graph for this function:

◆ ~Font()

Font::~Font ( )
inline

Frees the regular and bold bitmaps.

Definition at line 75 of file TextTypes.hpp.

◆ Font() [2/2]

Font::Font ( const Font & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

Font & Font::operator= ( const Font & )
delete
Here is the call graph for this function:

Member Data Documentation

◆ bitmap

std::uint8_t* Font::bitmap = nullptr

Definition at line 84 of file TextTypes.hpp.

◆ bitmapBold

std::uint8_t* Font::bitmapBold = nullptr

Definition at line 85 of file TextTypes.hpp.

◆ bitmapHeight

int Font::bitmapHeight = 256

Definition at line 87 of file TextTypes.hpp.

◆ bitmapWidth

int Font::bitmapWidth = 256

Definition at line 86 of file TextTypes.hpp.

◆ boldGlyphs

Glyph Font::boldGlyphs[256]

Definition at line 90 of file TextTypes.hpp.

◆ boldLoaded

bool Font::boldLoaded = false

Definition at line 91 of file TextTypes.hpp.

◆ glyphs

Glyph Font::glyphs[256]

Definition at line 89 of file TextTypes.hpp.

◆ lineHeight

int Font::lineHeight = 32

Definition at line 88 of file TextTypes.hpp.


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