|
Blender V5.3
|
#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 39 of file BKE_vfontdata.hh.
| float blender::VFontData_Metrics::ascend_ratio |
Definition at line 43 of file BKE_vfontdata.hh.
Referenced by blender::BKE_vfontdata_from_freetypefont(), blender::BKE_vfontdata_metrics_get_defaults(), and blender::vfont_metrics_ascent().
| float blender::VFontData_Metrics::em_ratio |
Definition at line 42 of file BKE_vfontdata.hh.
Referenced by blender::BKE_vfontdata_from_freetypefont(), blender::BKE_vfontdata_metrics_get_defaults(), blender::vfont_metrics_ascent(), blender::vfont_metrics_descent(), blender::vfont_placeholder_ensure(), and blender::vfont_to_curve().
| float blender::VFontData_Metrics::scale |
Definition at line 40 of file BKE_vfontdata.hh.
Referenced by blender::BKE_vfontdata_char_from_freetypefont(), blender::BKE_vfontdata_from_freetypefont(), and blender::BKE_vfontdata_metrics_get_defaults().