|
|
| Font (const Font &font) |
| |
|
| Font (Font &&f) |
| |
| | Font (std::string_view fontname, int ptsize) |
| | Construct a new Font object. More...
|
| |
| PixBuf | render_solid (std::string_view text, Color color) |
| | Render solid text. More...
|
| |
|
PixBuf | render_solid (std::u16string_view text, Color color) |
| |
| PixBuf | render_shaded (std::string_view text, Color fg, Color bg) |
| | Render shaded text. More...
|
| |
|
PixBuf | render_shaded (std::u16string_view text, Color fg, Color bg) |
| |
| PixBuf | render_blended (std::string_view text, Color color) |
| | Render blended text. More...
|
| |
|
PixBuf | render_blended (std::u16string_view text, Color color) |
| |
| int | kerning_size (char16_t prev_ch, char16_t ch) const |
| | Get Kerning Size in two chars. More...
|
| |
| bool | has_glyph (char16_t ch) const |
| | Check the font has the glyph. More...
|
| |
| int | height () const |
| | Get font height. More...
|
| |
| int | ptsize () const noexcept |
| | Get font ptsize. More...
|
| |
| int | refcount () const noexcept |
| | Get font refcount. More...
|
| |
| void | set_ptsize (int new_ptsize) |
| | Set the font ptsize. More...
|
| |
| Size | size (std::string_view text) |
| | Get The text's w and h. More...
|
| |
|
Size | size (std::u16string_view text) |
| |
| void | close () |
| | Close font. More...
|
| |
| void | open (std::string_view fontname, int ptsize) |
| | Open font by its name. More...
|
| |
| void | openfile (std::string_view filename, int ptsize) |
| | Open font by its filename. More...
|
| |
| Font | clone () const |
| | Clone a font. More...
|
| |
| FontStyle | style () const |
| | Get this font's style. More...
|
| |
| void | set_style (FontStyle style) |
| | Set the style. More...
|
| |
|
FontImpl * | impl () const noexcept |
| |
| std::string | family () const |
| | Get font family name. More...
|
| |
|
std::string | style_name () const |
| |
| Font & | operator= (const Font &) |
| | Assign font. More...
|
| |
|
Font & | operator= (Font &&) |
| |
|
bool | empty () const noexcept |
| |