Class: TTFunk::Table::Hhea

### Home Classes Methods

### In Files

- lib/ttfunk/table/hhea.rb

### Parent

TTFunk::Table

### Methods

- ::encode

### Class/Module Index

Quicksearch

- TTFunk
- TTFunk::Directory
- TTFunk::Encoding
- TTFunk::Encoding::MacRoman
- TTFunk::Encoding::Windows1252
- TTFunk::File
- TTFunk::Reader
- TTFunk::ResourceFile
- TTFunk::Subset
- TTFunk::Subset::Base
- TTFunk::Subset::MacRoman
- TTFunk::Subset::Unicode
- TTFunk::Subset::Unicode8Bit
- TTFunk::Subset::Windows1252
- TTFunk::SubsetCollection
- TTFunk::Table
- TTFunk::Table::Cmap
- TTFunk::Table::Cmap::Format00
- TTFunk::Table::Cmap::Format04
- TTFunk::Table::Cmap::Format06
- TTFunk::Table::Cmap::Format10
- TTFunk::Table::Cmap::Format12
- TTFunk::Table::Cmap::Subtable
- TTFunk::Table::Glyf
- TTFunk::Table::Glyf::Compound
- TTFunk::Table::Glyf::Simple
- TTFunk::Table::Head
- TTFunk::Table::Hhea
- TTFunk::Table::Hmtx
- TTFunk::Table::Kern
- TTFunk::Table::Kern::Format0
- TTFunk::Table::Loca
- TTFunk::Table::Maxp
- TTFunk::Table::Name
- TTFunk::Table::Name::String
- TTFunk::Table::OS2
- TTFunk::Table::Post
- TTFunk::Table::Post::Format10
- TTFunk::Table::Post::Format20
- TTFunk::Table::Post::Format30
- TTFunk::Table::Post::Format40
- TTFunk::Table::Sbix
- TTFunk::Table::Simple

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.