Class: TTFunk::Table::Name::String

### Home Classes Methods

### In Files

- lib/ttfunk/table/name.rb

### Parent

String

### Methods

- ::new
- #strip_extended

### 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::Name::String

### Attributes

encoding_id[R]
language_id[R]
platform_id[R]

### Public Class Methods

new(text, platform_id, encoding_id, language_id) click to toggle source

    # File lib/ttfunk/table/name.rb, line 11
    def initialize(text, platform_id, encoding_id, language_id)
      super(text)
      @platform_id = platform_id
      @encoding_id = encoding_id
      @language_id = language_id
    end

### Public Instance Methods

strip_extended() click to toggle source

    # File lib/ttfunk/table/name.rb, line 18
    def strip_extended
      stripped = gsub(/[\x00-\x19\x80-\xff]/, "")
      stripped = "[not-postscript]" if stripped.empty?
      return stripped
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.