class ffw::GuiFontNanoVG
Class List > ffw :: GuiFontNanoVG
Inherits the following classes: ffw::GuiFont
Public Functions
Type | Name |
---|---|
GuiFontNanoVG (NVGcontext * ctx, const std::string & path, const float size) | |
virtual | ~GuiFontNanoVG () = default |
virtual bool | isCreated () override const |
virtual void | destroy () override |
virtual ffw::Pointf | getStringSize (const std::string & str, const float maxWidth, const float lineHeight) override const |
virtual float | getEmptyLineHeight (const float lineHeight) override const |
virtual float | getCharAdvance (unsigned int c) override const Returns the advance of the codepoint. |
virtual std::vector< Chunk > | splitString (const std::string & str, const float maxWidth, const float lineHeight) override const |
virtual size_t | getCharIndex (const std::string::value_type * str, const size_t len, const Pointf & pos, float * x) override const |
virtual float | getCharPos (const std::string::value_type * str, const size_t len, const size_t index) override const |
float | getSize () const |
int | getFontFaceId () const |
Public Functions Documentation
function GuiFontNanoVG
ffw::GuiFontNanoVG::GuiFontNanoVG (
NVGcontext * ctx,
const std::string & path,
const float size
)
function ~GuiFontNanoVG
virtual ffw::GuiFontNanoVG::~GuiFontNanoVG () = default
function isCreated
virtual bool ffw::GuiFontNanoVG::isCreated () const
Implements GuiFont::isCreated
function destroy
virtual void ffw::GuiFontNanoVG::destroy ()
Implements GuiFont::destroy
function getStringSize
virtual ffw::Pointf ffw::GuiFontNanoVG::getStringSize (
const std::string & str,
const float maxWidth,
const float lineHeight
) const
Implements GuiFont::getStringSize
function getEmptyLineHeight
virtual float ffw::GuiFontNanoVG::getEmptyLineHeight (
const float lineHeight
) const
Implements GuiFont::getEmptyLineHeight
function getCharAdvance
virtual float ffw::GuiFontNanoVG::getCharAdvance (
unsigned int c
) const
Returns the advance of the codepoint.
Note:
This method is not needed if you use your custom implementation of splitString(), getCharIndex(), and getCharPos(). The default implementations use GuiTextWrapper class which uses this method.
Implements GuiFont::getCharAdvance
function splitString
virtual std::vector< Chunk > ffw::GuiFontNanoVG::splitString (
const std::string & str,
const float maxWidth,
const float lineHeight
) const
Implements GuiFont::splitString
function getCharIndex
virtual size_t ffw::GuiFontNanoVG::getCharIndex (
const std::string::value_type * str,
const size_t len,
const Pointf & pos,
float * x
) const
Implements GuiFont::getCharIndex
function getCharPos
virtual float ffw::GuiFontNanoVG::getCharPos (
const std::string::value_type * str,
const size_t len,
const size_t index
) const
Implements GuiFont::getCharPos
function getSize
float ffw::GuiFontNanoVG::getSize () const
function getFontFaceId
int ffw::GuiFontNanoVG::getFontFaceId () const
The documentation for this class was generated from the following file: include/ffw/gui/backend/guibackendnanovg.h