Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FontPageSettings Struct Reference

The settings used for the FontPage. More...

#include <Font.h>

Collaboration diagram for FontPageSettings:
Collaboration graph
[legend]

Public Member Functions

 FontPageSettings ()
 The initial settings for the FontPage.
 
std::string MapRange (const std::string &sMapping, int iMapOffset, int iGlyphOffset, int iCount)
 Map a range from a character std::map to glyphs.
 

Public Attributes

std::string m_sTexturePath
 
int m_iDrawExtraPixelsLeft { 0 }
 
int m_iDrawExtraPixelsRight { 0 }
 
int m_iAddToAllWidths { 0 }
 
int m_iLineSpacing { -1 }
 
int m_iTop { -1 }
 
int m_iBaseline { -1 }
 
int m_iDefaultWidth { -1 }
 
int m_iAdvanceExtraPixels { 1 }
 
float m_fScaleAllWidthsBy { 1 }
 
std::string m_sTextureHints
 
std::map< wchar_t, int > CharToGlyphNo
 
std::map< int, int > m_mapGlyphWidths
 

Detailed Description

The settings used for the FontPage.

Member Function Documentation

◆ MapRange()

std::string FontPageSettings::MapRange ( const std::string &  sMapping,
int  iMapOffset,
int  iGlyphOffset,
int  iCount 
)

Map a range from a character std::map to glyphs.

Parameters
sMappingthe intended mapping.
iMapOffsetthe number of maps to offset.
iGlyphOffsetthe number of glyphs to offset.
iCountthe range to std::map. If -1, the range is the entire std::map.
Returns
the empty string on success, or an error message on failure.

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