|
roo_display
API Documentation for roo_display
|
Per-glyph metrics (bounding box and advance). More...
#include <font.h>
Public Member Functions | |
| GlyphMetrics (int16_t glyphXMin, int16_t glyphYMin, int16_t glyphXMax, int16_t glyphYMax, int advance) | |
| Construct metrics from FreeType coordinates (Y up). | |
| GlyphMetrics ()=default | |
| GlyphMetrics (const GlyphMetrics &)=default | |
| GlyphMetrics (GlyphMetrics &&)=default | |
| GlyphMetrics & | operator= (GlyphMetrics &&)=default |
| GlyphMetrics & | operator= (const GlyphMetrics &)=default |
| const Box & | screen_extents () const |
| Bounding box in screen coordinates (Y down). | |
| int | glyphXMin () const |
| Bounding box in FreeType coordinates (Y up). | |
| int | glyphXMax () const |
| int | glyphYMin () const |
| int | glyphYMax () const |
| int | bearingX () const |
| Left side bearing. | |
| int | bearingY () const |
| Top side bearing. | |
| int | rsb () const |
| Right side bearing. | |
| int | lsb () const |
| Left side bearing (alias). | |
| int | width () const |
| Glyph width. | |
| int | height () const |
| Glyph height. | |
| int | advance () const |
| Advance in pixels. | |
|
default |
|
default |
|
default |
|
inline |
Advance in pixels.
Definition at line 177 of file font.h.
Referenced by roo_display::TextLabel::anchorExtents(), roo_display::StringViewLabel::anchorExtents(), and rsb().
|
inline |
|
inline |
|
inline |
Definition at line 159 of file font.h.
References roo_display::Box::xMax().
|
inline |
Bounding box in FreeType coordinates (Y up).
Definition at line 158 of file font.h.
References roo_display::Box::xMin().
|
inline |
Definition at line 161 of file font.h.
References roo_display::Box::yMin().
|
inline |
Definition at line 160 of file font.h.
References roo_display::Box::yMax().
|
inline |
|
inline |
Left side bearing (alias).
Definition at line 170 of file font.h.
References roo_display::Box::xMin().
|
default |
|
default |
|
inline |
Right side bearing.
Definition at line 168 of file font.h.
References advance(), and roo_display::Box::xMax().
Bounding box in screen coordinates (Y down).
Definition at line 154 of file font.h.
Referenced by roo_display::ClippedTextLabel::anchorExtents(), roo_display::TextLabel::extents(), roo_display::StringViewLabel::extents(), and roo_display::ClippedStringViewLabel::extents().
|
inline |