Top |
Functions
hb_ot_metrics_get_position ()
hb_bool_t hb_ot_metrics_get_position (hb_font_t *font
,hb_ot_metrics_tag_t metrics_tag
,hb_position_t *position
);
Fetches metrics value corresponding to metrics_tag
from font
.
Parameters
font |
an hb_font_t object. |
|
metrics_tag |
tag of metrics value you like to fetch. |
|
position |
result of metrics value from the font. |
[out][optional] |
Since: 2.6.0
hb_ot_metrics_get_position_with_fallback ()
void hb_ot_metrics_get_position_with_fallback (hb_font_t *font
,hb_ot_metrics_tag_t metrics_tag
,hb_position_t *position
);
Fetches metrics value corresponding to metrics_tag
from font
,
and synthesizes a value if it the value is missing in the font.
Parameters
font |
an hb_font_t object. |
|
metrics_tag |
tag of metrics value you like to fetch. |
|
position |
result of metrics value from the font. |
[out][optional] |
Since: 4.0.0
hb_ot_metrics_get_variation ()
float hb_ot_metrics_get_variation (hb_font_t *font
,hb_ot_metrics_tag_t metrics_tag
);
Fetches metrics value corresponding to metrics_tag
from font
with the
current font variation settings applied.
Since: 2.6.0
hb_ot_metrics_get_x_variation ()
hb_position_t hb_ot_metrics_get_x_variation (hb_font_t *font
,hb_ot_metrics_tag_t metrics_tag
);
Fetches horizontal metrics value corresponding to metrics_tag
from font
with the current font variation settings applied.
Since: 2.6.0
hb_ot_metrics_get_y_variation ()
hb_position_t hb_ot_metrics_get_y_variation (hb_font_t *font
,hb_ot_metrics_tag_t metrics_tag
);
Fetches vertical metrics value corresponding to metrics_tag
from font
with
the current font variation settings applied.
Since: 2.6.0
Types and Values
enum hb_ot_metrics_tag_t
Metric tags corresponding to MVAR Value Tags
Members
horizontal ascender. |
||
horizontal descender. |
||
horizontal line gap. |
||
horizontal clipping ascent. |
||
horizontal clipping descent. |
||
vertical ascender. |
||
vertical descender. |
||
vertical line gap. |
||
horizontal caret rise. |
||
horizontal caret run. |
||
horizontal caret offset. |
||
vertical caret rise. |
||
vertical caret run. |
||
vertical caret offset. |
||
x height. |
||
cap height. |
||
subscript em x size. |
||
subscript em y size. |
||
subscript em x offset. |
||
subscript em y offset. |
||
superscript em x size. |
||
superscript em y size. |
||
superscript em x offset. |
||
superscript em y offset. |
||
strikeout size. |
||
strikeout offset. |
||
underline size. |
||
underline offset. |
Since: 2.6.0