class TTFunk::Table::Hhea

Attributes

advance_width_max[R]
ascent[R]
carot_slope_rise[R]
carot_slope_run[R]
descent[R]
line_gap[R]
metric_data_format[R]
min_left_side_bearing[R]
min_right_side_bearing[R]
number_of_metrics[R]
version[R]
x_max_extent[R]

Public Class Methods

encode(hhea, hmtx) click to toggle source
# File lib/ttfunk/table/hhea.rb, line 19
def self.encode(hhea, hmtx)
  raw = hhea.raw
  raw[-2,2] = [hmtx[:number_of_metrics]].pack("n")
  return raw
end