Class: HexaPDF::Font::TrueType::Table::Hhea
- Inherits:
-
HexaPDF::Font::TrueType::Table
- Object
- HexaPDF::Font::TrueType::Table
- HexaPDF::Font::TrueType::Table::Hhea
- Defined in:
- lib/hexapdf/font/true_type/table/hhea.rb
Overview
The ‘hhea’ (horizontal header) table contains information for layouting fonts whose characters are written horizontally.
See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6hhea.html
Constant Summary
Constants inherited from HexaPDF::Font::TrueType::Table
Instance Attribute Summary collapse
-
#advance_width_max ⇒ Object
The maxium advance width (computed value).
-
#ascent ⇒ Object
The distance from the baseline of the highest ascender (as intended by the font designer).
-
#caret_offset ⇒ Object
The amount by which a slanted highlight on a glyph needs (0 for non-slanted fonts).
-
#caret_slope_rise ⇒ Object
Defines together with #caret_slope_run the mathematical slope of the angle for the caret.
-
#caret_slope_run ⇒ Object
See #caret_slope_rise.
-
#descent ⇒ Object
The distance from the baseline of the lowest descender (as intended by the font designer).
-
#line_gap ⇒ Object
The typographic line gap (as intended by the font designer).
-
#min_left_side_bearing ⇒ Object
The minimum left side bearing (computed value).
-
#min_right_side_bearing ⇒ Object
The minimum right side bearing (computed value).
-
#num_of_long_hor_metrics ⇒ Object
The number of horizontal metrics defined in the ‘hmtx’ table.
-
#version ⇒ Object
The version of the table (a Rational).
-
#x_max_extent ⇒ Object
The maximum horizontal glyph extent.
Attributes inherited from HexaPDF::Font::TrueType::Table
Method Summary
Methods inherited from HexaPDF::Font::TrueType::Table
calculate_checksum, #checksum_valid?, #directory_entry, #initialize, #raw_data
Constructor Details
This class inherits a constructor from HexaPDF::Font::TrueType::Table
Instance Attribute Details
#advance_width_max ⇒ Object
The maxium advance width (computed value).
65 66 67 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 65 def advance_width_max @advance_width_max end |
#ascent ⇒ Object
The distance from the baseline of the highest ascender (as intended by the font designer).
55 56 57 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 55 def ascent @ascent end |
#caret_offset ⇒ Object
The amount by which a slanted highlight on a glyph needs (0 for non-slanted fonts).
86 87 88 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 86 def caret_offset @caret_offset end |
#caret_slope_rise ⇒ Object
Defines together with #caret_slope_run the mathematical slope of the angle for the caret.
The slope is actually the ratio caret_slope_rise/caret_slope_run
80 81 82 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 80 def caret_slope_rise @caret_slope_rise end |
#caret_slope_run ⇒ Object
See #caret_slope_rise.
83 84 85 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 83 def caret_slope_run @caret_slope_run end |
#descent ⇒ Object
The distance from the baseline of the lowest descender (as intended by the font designer).
59 60 61 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 59 def descent @descent end |
#line_gap ⇒ Object
The typographic line gap (as intended by the font designer).
62 63 64 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 62 def line_gap @line_gap end |
#min_left_side_bearing ⇒ Object
The minimum left side bearing (computed value).
68 69 70 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 68 def min_left_side_bearing @min_left_side_bearing end |
#min_right_side_bearing ⇒ Object
The minimum right side bearing (computed value).
71 72 73 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 71 def min_right_side_bearing @min_right_side_bearing end |
#num_of_long_hor_metrics ⇒ Object
The number of horizontal metrics defined in the ‘hmtx’ table.
89 90 91 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 89 def num_of_long_hor_metrics @num_of_long_hor_metrics end |
#version ⇒ Object
The version of the table (a Rational).
51 52 53 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 51 def version @version end |
#x_max_extent ⇒ Object
The maximum horizontal glyph extent.
74 75 76 |
# File 'lib/hexapdf/font/true_type/table/hhea.rb', line 74 def x_max_extent @x_max_extent end |