|
NovaSVG 0.10.0
A header-only SVG library
|
#include <font.h>
Public Member Functions | |
| FontFace ()=default | |
| FontFace (font_face_t *face) | |
| FontFace (const void *data, size_t length, destroy_func_t destroy_func, void *closure) | |
| FontFace (const char *filename) | |
| FontFace (const FontFace &face) | |
| FontFace (FontFace &&face) | |
| ~FontFace () | |
| FontFace & | operator= (const FontFace &face) |
| FontFace & | operator= (FontFace &&face) |
| void | swap (FontFace &face) |
| bool | isNull () const |
| font_face_t * | get () const |
| float | unitsPerEm () const |
| float | ascentUnits () const |
| float | descentUnits () const |
| float | advanceWidthUnits (char32_t codepoint) const |
| float | kernAdvanceUnits (char32_t first, char32_t second) const |
| float | notdefAdvanceWidthUnits () const |
| std::vector< char32_t > | codepoints () const |
|
default |
Referenced by operator=(), and operator=().
|
explicit |
| NOVASVG_INLINE novasvg::FontFace::FontFace | ( | const void * | data, |
| size_t | length, | ||
| destroy_func_t | destroy_func, | ||
| void * | closure | ||
| ) |
| NOVASVG_INLINE novasvg::FontFace::FontFace | ( | const char * | filename | ) |
| NOVASVG_INLINE novasvg::FontFace::FontFace | ( | const FontFace & | face | ) |
| NOVASVG_INLINE novasvg::FontFace::FontFace | ( | FontFace && | face | ) |
| NOVASVG_INLINE novasvg::FontFace::~FontFace | ( | ) |
Definition at line 236 of file font.h.
References novasvg::render::font_face_destroy().
| NOVASVG_INLINE float novasvg::FontFace::advanceWidthUnits | ( | char32_t | codepoint | ) | const |
Definition at line 288 of file font.h.
References novasvg::render::font_face_get_glyph_metrics(), isNull(), and unitsPerEm().
Referenced by notdefAdvanceWidthUnits().
| NOVASVG_INLINE float novasvg::FontFace::ascentUnits | ( | ) | const |
Definition at line 270 of file font.h.
References novasvg::render::font_face_get_metrics(), isNull(), and unitsPerEm().
| NOVASVG_INLINE std::vector< char32_t > novasvg::FontFace::codepoints | ( | ) | const |
Definition at line 311 of file font.h.
References novasvg::render::font_face_enumerate_codepoints(), and isNull().
| NOVASVG_INLINE float novasvg::FontFace::descentUnits | ( | ) | const |
Definition at line 279 of file font.h.
References novasvg::render::font_face_get_metrics(), isNull(), and unitsPerEm().
|
inline |
Definition at line 38 of file font.h.
Referenced by novasvg::FontFaceCache::addFontFace(), novasvg::Font::Font(), novasvg::Font::glyphBoxes(), novasvg::Font::measureText(), and novasvg::Font::xHeight().
|
inline |
Definition at line 37 of file font.h.
Referenced by novasvg::FontFaceCache::addFontFace(), advanceWidthUnits(), ascentUnits(), codepoints(), descentUnits(), novasvg::Font::Font(), novasvg::FontFaceCache::getFontFace(), novasvg::FontFaceCache::getFontFaceForFamilyStack(), novasvg::Font::glyphBoxes(), novasvg::Font::isNull(), kernAdvanceUnits(), novasvg::makeFont(), novasvg::Font::measureText(), unitsPerEm(), and novasvg::Font::xHeight().
| NOVASVG_INLINE float novasvg::FontFace::kernAdvanceUnits | ( | char32_t | first, |
| char32_t | second | ||
| ) | const |
Definition at line 301 of file font.h.
References novasvg::render::font_face_get_kern_advance(), isNull(), and unitsPerEm().
|
inline |
Definition at line 80 of file font.h.
References advanceWidthUnits().
| NOVASVG_INLINE FontFace & novasvg::FontFace::operator= | ( | const FontFace & | face | ) |
Definition at line 241 of file font.h.
References FontFace(), and swap().
| NOVASVG_INLINE FontFace & novasvg::FontFace::operator= | ( | FontFace && | face | ) |
Definition at line 247 of file font.h.
References FontFace(), and swap().
| NOVASVG_INLINE void novasvg::FontFace::swap | ( | FontFace & | face | ) |
Definition at line 253 of file font.h.
Referenced by operator=(), and operator=().
| NOVASVG_INLINE float novasvg::FontFace::unitsPerEm | ( | ) | const |
Definition at line 263 of file font.h.
References novasvg::render::font_face_get_units_per_em(), and isNull().
Referenced by advanceWidthUnits(), ascentUnits(), descentUnits(), and kernAdvanceUnits().