tt_get_glyph_hmetrics Subroutine

public pure subroutine tt_get_glyph_hmetrics(data, hhea, hmtx, glyph_index, advance_width, left_side_bearing)

Read horizontal metrics for a glyph (unscaled) from the hmtx table. Glyphs beyond numOfLongHorMetrics share the last advance width.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in) :: data(:)
integer, intent(in) :: hhea
integer, intent(in) :: hmtx
integer, intent(in) :: glyph_index
integer, intent(out) :: advance_width
integer, intent(out) :: left_side_bearing