OpenEnroth 461a523
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
LodFont Class Reference

#include <LodFont.h>

Public Member Functions

int height () const
 
bool supports (int c) const
 
bool supports (char c) const =delete
 
const LodFontMetricsmetrics (int c) const
 
const LodFontMetricsmetrics (char c) const =delete
 
GrayscaleImageView image (int c) const
 
GrayscaleImageView image (char c) const =delete
 

Private Attributes

LodFontHeader _header
 
LodFontAtlas _atlas
 
Blob _pixels
 

Friends

LodFont lod::decodeFont (const Blob &blob)
 

Member Function Documentation

◆ height()

int LodFont::height ( ) const
inline

◆ image() [1/2]

GrayscaleImageView LodFont::image ( char  c) const
delete

◆ image() [2/2]

GrayscaleImageView LodFont::image ( int  c) const
inline
Parameters
cCharacter to get image for, must be in [0, 255].
Returns
Character image. Pixels are 0 for background, 1 for shadow, 255 for text. Will return an empty image for chars that are not supported.

◆ metrics() [1/2]

const LodFontMetrics & LodFont::metrics ( char  c) const
delete

◆ metrics() [2/2]

const LodFontMetrics & LodFont::metrics ( int  c) const
inline
Parameters
cCharacter to get metrics for, must be in [0, 255].
Returns
Font glyph metrics for the character. Will return all zeros for chars that are not supported.

◆ supports() [1/2]

bool LodFont::supports ( char  c) const
delete

◆ supports() [2/2]

bool LodFont::supports ( int  c) const
inline

Friends And Related Function Documentation

◆ lod::decodeFont

LodFont lod::decodeFont ( const Blob blob)
friend

Member Data Documentation

◆ _atlas

LodFontAtlas LodFont::_atlas
private

◆ _header

LodFontHeader LodFont::_header
private

◆ _pixels

Blob LodFont::_pixels
private

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