A container for font information relevant for computing font-relative lengths, per https://www.w3.org/TR/css-values/#font-relative-lengths.
More...
#include "donner/base/RelativeLengthMetrics.h"
|
|
double | exUnit () const |
| | The value of an "ex" unit.
|
|
double | chUnit () const |
| | The value of a "ch" unit.
|
|
|
double | fontSize = 16.0f |
| | "em" measurement.
|
|
double | rootFontSize = 16.0f |
| | The font-size of the root element, "rem".
|
|
double | exUnitInEm = 0.5f |
| | x-height measurement.
|
| double | chUnitInEm |
| | Equal to the used advance measure of the "0" glyph in the font used to render it.
|
A container for font information relevant for computing font-relative lengths, per https://www.w3.org/TR/css-values/#font-relative-lengths.
◆ DefaultsWithFontSize()
| FontMetrics donner::FontMetrics::DefaultsWithFontSize |
( |
double | fontSize | ) |
|
|
inlinestatic |
Construct a FontMetrics with default values for a given font size.
- Parameters
-
| fontSize | The font size to use for the default values. |
◆ chUnitInEm
| double donner::FontMetrics::chUnitInEm |
Initial value:
Equal to the used advance measure of the "0" glyph in the font used to render it.
The documentation for this struct was generated from the following file: