This class represents one font, made out of one font file resource with a certain size.
More...
This class represents one font, made out of one font file resource with a certain size.
STLL::FontFace_c::FontFace_c |
( |
std::shared_ptr< FreeTypeLibrary_c > |
l, |
|
|
const internal::FontFileResource_c & |
r, |
|
|
uint32_t |
size |
|
) |
| |
STLL::FontFace_c::~FontFace_c |
( |
| ) |
|
bool STLL::FontFace_c::containsGlyph |
( |
char32_t |
ch | ) |
|
check if a given character is available within this font
- Parameters
-
ch | the unicode character to check |
- Returns
- true, when the character is available within the font, false otherwise
int32_t STLL::FontFace_c::getAscender |
( |
void |
| ) |
const |
Get the ascender of the font with multiplication factor of 64.
- Returns
- ascender of font
int32_t STLL::FontFace_c::getDescender |
( |
void |
| ) |
const |
Get the descender of the font with multiplication factor of 64.
- Returns
- descender of font
FT_FaceRec_* STLL::FontFace_c::getFace |
( |
void |
| ) |
const |
|
inline |
Get the FreeType structure for this font.
This is required for example for harfbuzz. You normally don't need this when using STLL
uint32_t STLL::FontFace_c::getHeight |
( |
void |
| ) |
const |
Get the height of the font with multiplication factor of 64.
- Returns
- height of font
const internal::FontFileResource_c& STLL::FontFace_c::getResource |
( |
void |
| ) |
const |
|
inline |
get the font resource that was used to create this font
uint32_t STLL::FontFace_c::getSize |
( |
void |
| ) |
const |
|
inline |
int32_t STLL::FontFace_c::getUnderlinePosition |
( |
void |
| ) |
const |
Get the underline position of the font with multiplication factor of 64.
- Returns
- centre position of the underline relative to baseline
int32_t STLL::FontFace_c::getUnderlineThickness |
( |
void |
| ) |
const |
Get the underline thickness of the font with multiplication factor of 64.
- Returns
- thickness around the underline position
render a glyph of this font
- Parameters
-
glyphIndex | the index of the glyph to render (take it from the layout) |
sp | the requested sub-pixel arrangement to apply to the rendering |
- Returns
- a pointer to the FreeType glyph slot record, see FreeType documentation
- Note
- glyphs are always rendered unhinted 8-bit FreeType bitmaps
The documentation for this class was generated from the following file: