class HexaPDF::Font::TrueType::Table::Hmtx
The 'hmtx' (horizontal metrics) table contains information for the horizontal layout of each glyph in the font.
See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6hmtx.html
Constants
- Metric
Contains the horizontal layout information for one glyph, namely the :advance_width and the :left_side_bearing.
Attributes
horizontal_metrics[RW]
A hash of glyph ID to Metric
objects mapping.
Public Instance Methods
[](glyph_id)
click to toggle source
Returns the Metric
object for the give glyph ID.
# File lib/hexapdf/font/true_type/table/hmtx.rb, line 57 def [](glyph_id) @horizontal_metrics[glyph_id] end