Class: TTFunk::Table::Glyf::Simple

### Home Classes Methods

### In Files

- lib/ttfunk/table/glyf/simple.rb

### Parent

Object

### Methods

- ::new
- #compound?
- #recode

### 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::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::Format25
- TTFunk::Table::Post::Format30
- TTFunk::Table::Post::Format40
- TTFunk::Table::Simple

No matching classes.

# TTFunk::Table::Glyf::Simple

### Attributes

number_of_contours[R]
raw[R]
x_max[R]
x_min[R]
y_max[R]
y_min[R]

### Public Class Methods

new(raw, number_of_contours, x_min, y_min, x_max, y_max) click to toggle source

    # File lib/ttfunk/table/glyf/simple.rb, line 11
    def initialize(raw, number_of_contours, x_min, y_min, x_max, y_max)
      @raw = raw
      @number_of_contours = number_of_contours
      @x_min, @y_min = x_min, y_min
      @x_max, @y_max = x_max, y_max

      # Because TTFunk is, at this time, a library for simply pulling
      # metrics out of font files, or for writing font subsets, we don't
      # really care what the contours are for simple glyphs. We just
      # care that we've got an entire glyph's definition. Also, a
      # bounding box could be nice to know. Since we've got all that
      # at this point, we don't need to worry about parsing the full
      # contents of the glyph.
    end

### Public Instance Methods

compound?() click to toggle source

    # File lib/ttfunk/table/glyf/simple.rb, line 26
    def compound?
      false
    end

recode(mapping) click to toggle source

    # File lib/ttfunk/table/glyf/simple.rb, line 30
    def recode(mapping)
      raw
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.