Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Sep 14, 2009
Commits on Jan 23, 2009
  1. @jamis
Commits on Jan 21, 2009
  1. @jamis

    strip extended characters from postscript names

    jamis authored
    This is extreme, but TTF fonts are _supposed_ to have ASCII
    postscript names anyway...
Commits on Jan 6, 2009
  1. @jamis
  2. @jamis

    Work around MS fonts with inaccurate kerning table metadata

    jamis authored
    It looks like some MS fonts report their kerning subtable lengths
    wrong. In one case, the length was reported to be some 19366, and yet
    the table also claimed to hold 14148 pairs (each pair consisting of 6 bytes).
    You do the math!
    
    We're going to assume that the microsoft fonts hold only a single kerning
    subtable, which occupies the entire length of the kerning table. Worst
    case, we lose any other subtables that the font contains, but it's better
    than reading a truncated kerning table.
    
    And what's more, it appears to work. So.
Commits on Jan 5, 2009
  1. @jamis

    Reading the file in binary mode promotes world peace.

    jamis authored
    Or, at least, it makes it so all strings read from the file
    are automatically encoded as BINARY. Which does a lot for
    MY peace. It's even compatible between 1.8 and 1.9!
  2. @jamis
Commits on Jan 4, 2009
  1. @jamis
  2. @jamis

    File#open, not File#new

    jamis authored
  3. @jamis
Commits on Jan 3, 2009
  1. @jamis
Commits on Jan 2, 2009
  1. @jamis

    Expose the mapping from subset code to unicode

    jamis authored
    This lets us more easily build ToUnicode cmaps in PDF's
  2. @jamis

    Tweaks so that font subsetting works with unicode-8bit subsets

    jamis authored
    Specifically, always explicitly include glyph 0 in the subset
    at glyph index 0, and never assign characters to codes less
    than 32 (PDF doesn't, apparently, like that).
  3. @jamis
  4. @jamis

    Tweaks to make subsetting work in practice

    jamis authored
    It turns out that #use is not as useful as I predicted. Should just
    merge that into #encode so it happens in a single pass.
  5. @jamis
Commits on Jan 1, 2009
  1. @jamis
Commits on Dec 31, 2008
  1. @jamis
  2. @jamis
Commits on Dec 30, 2008
  1. @jamis
Commits on Dec 29, 2008
  1. @jamis

    offset is 258

    jamis authored
Commits on Dec 27, 2008
  1. @jamis

    TTFunk::Subset

    jamis authored
    This class is a first pass at building a subset of a font.
Commits on Dec 26, 2008
  1. @jamis

    we really don't care that every glyph is fully decomposed

    jamis authored
    Just parse enough of each glyph to be able to write it back out
    in a font subset
  2. @jamis

    Cleanup, first pass.

    jamis authored
    This cleanup is a significant refactoring of the original
    ttfunk codebase. It removes the dependence on method_missing,
    and adds explicit attribute lists. It also avoids dynamic
    require statements, preferring to explicitly list the files
    to load.
    
    This cleanup also adds support for the 'loca', 'post', 'OS/2',
    and 'glyf' TrueType tables.
Commits on Dec 18, 2008
  1. @practicingruby
Commits on Dec 14, 2008
  1. @practicingruby

    quiet Prawn down some

    practicingruby authored
Commits on Dec 1, 2008
  1. @practicingruby
  2. @practicingruby

    Kerning now

    practicingruby authored
Commits on Nov 7, 2008
  1. @practicingruby
  2. @practicingruby

    Cmap working

    practicingruby authored
Commits on Nov 6, 2008
  1. @practicingruby

    Now we're stuck :-/

    practicingruby authored
Commits on Oct 31, 2008
  1. @practicingruby

    HMTX Lovin

    practicingruby authored
  2. added maxp table

    Jia Wu authored
  3. @practicingruby
  4. added hhea table

    Jia Wu authored
Something went wrong with that request. Please try again.