You.i Engine
CYIFontUtilities Class Reference

#include <utility/YiFontUtilities.h>

Classes

class  TextInfo
 Contains information required for laying out text. More...
 

Static Public Member Functions

static float GetTextWidth (const TextInfo &textInfo)
 
static float GetParagraphWidth (const TextInfo &textInfo, float widthToFit)
 
static CYIString GetTextToFit (const TextInfo &textInfo, float widthToFit, float *pResultingLineWidth=nullptr)
 
static CYIString GetLastLine (const TextInfo &textInfo, float widthToFit, float *pLastLineWidth=nullptr, uint32_t *pLineCount=nullptr)
 
static int32_t GetLineCount (const TextInfo &textInfo, float widthToFit)
 
static float GetFontLeading (ssize_t fontID, float fontSize)
 

Member Function Documentation

◆ GetFontLeading()

static float CYIFontUtilities::GetFontLeading ( ssize_t  fontID,
float  fontSize 
)
static

◆ GetLastLine()

static CYIString CYIFontUtilities::GetLastLine ( const TextInfo textInfo,
float  widthToFit,
float *  pLastLineWidth = nullptr,
uint32_t *  pLineCount = nullptr 
)
static

◆ GetLineCount()

static int32_t CYIFontUtilities::GetLineCount ( const TextInfo textInfo,
float  widthToFit 
)
static

◆ GetParagraphWidth()

static float CYIFontUtilities::GetParagraphWidth ( const TextInfo textInfo,
float  widthToFit 
)
static

◆ GetTextToFit()

static CYIString CYIFontUtilities::GetTextToFit ( const TextInfo textInfo,
float  widthToFit,
float *  pResultingLineWidth = nullptr 
)
static

◆ GetTextWidth()

static float CYIFontUtilities::GetTextWidth ( const TextInfo textInfo)
static

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