JugiMap Framework
Font Class Reference

The Font class defines fonts used in TextSprite objects. More...

#include <jmFont.h>

Inherited by FontAGK, FontCC, FontNC, and FontSFML.

Public Member Functions

 Font (const std::string &_relativeFilePath, int _loadFontSize, FontKind _kind)
 Constructor. More...
 
virtual ~Font ()
 Destructor. More...
 
FontKind GetKind ()
 Returns the kind of this font. More...
 
std::string GetRelativeFilePath ()
 Returns the file path of this font. More...
 
int GetLoadFontSize ()
 Returns the size of this font. More...
 

Static Public Attributes

static std::string pathPrefix
 An optional string attached to stored file paths. It must end with slash '/'! More...
 

Detailed Description

The Font class defines fonts used in TextSprite objects.

Constructor & Destructor Documentation

◆ Font()

Font ( const std::string &  _relativeFilePath,
int  _loadFontSize,
FontKind  _kind 
)
inline

Constructor.

Creates a new Font object.

Parameters
_relativeFilePathThe path to the font file.
_sizeThe size of the font.
_kindThe kind of the font.

◆ ~Font()

virtual ~Font ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ GetKind()

FontKind GetKind ( )
inline

Returns the kind of this font.

◆ GetRelativeFilePath()

std::string GetRelativeFilePath ( )
inline

Returns the file path of this font.

◆ GetLoadFontSize()

int GetLoadFontSize ( )
inline

Returns the size of this font.

Member Data Documentation

◆ pathPrefix

std::string pathPrefix
static

An optional string attached to stored file paths. It must end with slash '/'!


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