Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Font Class Reference
Collaboration diagram for Font:
Collaboration graph
[legend]

Public Member Functions

const glyphGetGlyph (wchar_t c) const
 
int GetLineWidthInSourcePixels (const std::wstring &szLine) const
 
int GetLineHeightInSourcePixels (const std::wstring &szLine) const
 
int GetGlyphsThatFit (const std::wstring &line, int *width) const
 
bool FontCompleteForString (const std::wstring &str) const
 
void AddPage (FontPage *fp)
 Add a FontPage to this font.
 
void MergeFont (Font &f)
 Steal all of a font's pages.
 
void Load (const std::string &sFontOrTextureFilePath, const std::string &sChars)
 
void Unload ()
 
void Reload ()
 
void CapsOnly ()
 
int GetHeight () const
 
int GetCenter () const
 
int GetLineSpacing () const
 
void SetDefaultGlyph (FontPage *pPage)
 
bool IsRightToLeft () const
 
const RageColorGetDefaultStrokeColor () const
 

Public Attributes

int m_iRefCount { 1 }
 
std::string path
 

Member Function Documentation

◆ AddPage()

void Font::AddPage ( FontPage fp)

Add a FontPage to this font.

Parameters
fpthe FontPage to be added.

◆ MergeFont()

void Font::MergeFont ( Font f)

Steal all of a font's pages.

Parameters
fthe font whose pages we are stealing.

The documentation for this class was generated from the following files: