Cobbletext  0.2.0
Complex text layout and rendering engine
Public Member Functions | Static Public Member Functions | Friends | List of all members
cobbletext::Library Class Reference

#include <Library.hpp>

Public Member Functions

 Library ()
 
 ~Library ()
 
FontID fallbackFont ()
 
FontID loadFont (const std::string path)
 
FontID loadFontBytes (const uint8_t *bytes, size_t length, int32_t faceIndex=0)
 
FontInfo getFontInfo (FontID id)
 
GlyphInfo getGlyphInfo (GlyphID id)
 
void setFontAlternative (FontID id, FontID fallbackID)
 
FontID getFontAlternative (FontID id)
 

Static Public Member Functions

static int32_t versionMajor ()
 
static int32_t versionMinor ()
 
static int32_t versionPatch ()
 
static std::string version ()
 

Friends

class Engine
 

Constructor & Destructor Documentation

◆ Library()

cobbletext::Library::Library ( )

◆ ~Library()

cobbletext::Library::~Library ( )

Member Function Documentation

◆ fallbackFont()

FontID cobbletext::Library::fallbackFont ( )

◆ getFontAlternative()

FontID cobbletext::Library::getFontAlternative ( FontID  id)

◆ getFontInfo()

FontInfo cobbletext::Library::getFontInfo ( FontID  id)

◆ getGlyphInfo()

GlyphInfo cobbletext::Library::getGlyphInfo ( GlyphID  id)

◆ loadFont()

FontID cobbletext::Library::loadFont ( const std::string  path)

◆ loadFontBytes()

FontID cobbletext::Library::loadFontBytes ( const uint8_t *  bytes,
size_t  length,
int32_t  faceIndex = 0 
)

◆ setFontAlternative()

void cobbletext::Library::setFontAlternative ( FontID  id,
FontID  fallbackID 
)

◆ version()

static std::string cobbletext::Library::version ( )
static

◆ versionMajor()

static int32_t cobbletext::Library::versionMajor ( )
static

◆ versionMinor()

static int32_t cobbletext::Library::versionMinor ( )
static

◆ versionPatch()

static int32_t cobbletext::Library::versionPatch ( )
static

Friends And Related Function Documentation

◆ Engine

friend class Engine
friend

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