Antkeeper
0.0.1
|
Metrics describing properties of a font. More...
#include <font-metrics.hpp>
Public Attributes | |
float | size |
Vertical size of the font. More... | |
float | ascent |
Positive distance from the baseline to the highest or upper grid coordinate. More... | |
float | descent |
Negative distance from the baseline to the lowest grid coordinate. More... | |
float | linegap |
Distance that must be placed between two lines of text. More... | |
float | linespace |
Baseline-to-baseline distance, computed as ascent - descent + linegap . More... | |
float | underline_position |
Vertical position of an underline. More... | |
float | underline_thickness |
Thickness of an underline. More... | |
float | max_horizontal_advance |
Maximum advance with for all glyphs, for horizontal layouts. More... | |
float | max_vertical_advance |
Maximum advance height for all glyphs, for vertical layouts. More... | |
Metrics describing properties of a font.
Definition at line 28 of file font-metrics.hpp.
float type::font_metrics::ascent |
Positive distance from the baseline to the highest or upper grid coordinate.
Definition at line 34 of file font-metrics.hpp.
float type::font_metrics::descent |
Negative distance from the baseline to the lowest grid coordinate.
Definition at line 37 of file font-metrics.hpp.
float type::font_metrics::linegap |
Distance that must be placed between two lines of text.
Definition at line 40 of file font-metrics.hpp.
float type::font_metrics::linespace |
Baseline-to-baseline distance, computed as ascent - descent + linegap
.
Definition at line 43 of file font-metrics.hpp.
float type::font_metrics::max_horizontal_advance |
Maximum advance with for all glyphs, for horizontal layouts.
Definition at line 52 of file font-metrics.hpp.
float type::font_metrics::max_vertical_advance |
Maximum advance height for all glyphs, for vertical layouts.
Definition at line 55 of file font-metrics.hpp.
float type::font_metrics::size |
Vertical size of the font.
Definition at line 31 of file font-metrics.hpp.
float type::font_metrics::underline_position |
Vertical position of an underline.
Definition at line 46 of file font-metrics.hpp.
float type::font_metrics::underline_thickness |
Thickness of an underline.
Definition at line 49 of file font-metrics.hpp.