|
Blender V5.0
|
#include <BKE_vfontdata.hh>
Public Attributes | |
| float | scale |
| float | em_ratio |
| float | ascend_ratio |
Font metric values explained:
Baseline: Line where the text "rests", used as the origin vertical position for the glyphs. Em height: Space most glyphs should fit within. Ascent: the recommended distance above the baseline to fit most characters. Descent: the recommended distance below the baseline to fit most characters.
We obtain ascent and descent from the font itself (FT_Face->ascender / face->height). And in some cases it is even the same value as FT_Face->bbox.yMax / yMin. (font top and bottom respectively).
The em_ratio here is relative to FT_Face->bbox.
Definition at line 33 of file BKE_vfontdata.hh.
| float VFontData_Metrics::ascend_ratio |
Definition at line 37 of file BKE_vfontdata.hh.
Referenced by BKE_vfontdata_from_freetypefont(), BKE_vfontdata_metrics_get_defaults(), and vfont_metrics_ascent().
| float VFontData_Metrics::em_ratio |
Definition at line 36 of file BKE_vfontdata.hh.
Referenced by BKE_vfontdata_from_freetypefont(), BKE_vfontdata_metrics_get_defaults(), vfont_metrics_ascent(), vfont_metrics_descent(), vfont_placeholder_ensure(), and vfont_to_curve().
| float VFontData_Metrics::scale |
Definition at line 34 of file BKE_vfontdata.hh.
Referenced by BKE_vfontdata_char_from_freetypefont(), BKE_vfontdata_from_freetypefont(), and BKE_vfontdata_metrics_get_defaults().