Class: TTFunk::Table::Head

### Home Classes Methods

### In Files

- lib/ttfunk/table/head.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::Head

### Attributes

checksum_adjustment[R]
created[R]
flags[R]
font_direction_hint[R]
font_revision[R]
glyph_data_format[R]
index_to_loc_format[R]
lowest_rec_ppem[R]
mac_style[R]
magic_number[R]
modified[R]
units_per_em[R]
version[R]
x_max[R]
x_min[R]
y_max[R]
y_min[R]

### Public Class Methods

encode(head, loca) click to toggle source

    # File lib/ttfunk/table/head.rb, line 24
    def self.encode(head, loca)
      table = head.raw
      table[8,4] = "\00\\00\\00\\00"" # set checksum adjustment to 0 initially
      table[-4,2] = [loca[:type]].pack("n") # set index_to_loc_format
      return table
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.