HDK
|
#include <GU_Font.h>
Public Member Functions | |
GU_Font () | |
~GU_Font () | |
bool | loadFont (UT_IStream &is, int face_index=0) |
void | buildText (GU_Detail &gdp, const UT_String &text, const GU_FontBuildOptions &opts) |
bool | isValid () const |
const char * | getFontName () const |
GU_Font::GU_Font | ( | ) |
GU_Font::~GU_Font | ( | ) |
void GU_Font::buildText | ( | GU_Detail & | gdp, |
const UT_String & | text, | ||
const GU_FontBuildOptions & | opts | ||
) |
const char* GU_Font::getFontName | ( | ) | const |
bool GU_Font::isValid | ( | ) | const |
bool GU_Font::loadFont | ( | UT_IStream & | is, |
int | face_index = 0 |
||
) |
Loads a TrueType, OpenType or Adobe Type-1 font from the given stream and initializes with the given face index. Usually this index should be left at zero, but for font collections (.ttc / .otc) this value refers to the index of the font within the collection (see FONT_Info::faceIndex
)