Class: HexaPDF::Font::TrueType::Table::Hhea

Inherits:
HexaPDF::Font::TrueType::Table show all
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

TIME_EPOCH

Instance Attribute Summary collapse

Attributes inherited from HexaPDF::Font::TrueType::Table

#font

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_maxObject

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

#ascentObject

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_offsetObject

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_riseObject

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_runObject

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

#descentObject

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_gapObject

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_bearingObject

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_bearingObject

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_metricsObject

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

#versionObject

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_extentObject

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