Skip to content
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 committed Jan 21, 2009
    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 committed Jan 5, 2009
    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 committed Jan 4, 2009
    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 committed Jan 3, 2009
  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 committed Jan 2, 2009
    This lets us more easily build ToUnicode cmaps in PDF's
  2. @jamis

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

    jamis committed Jan 2, 2009
    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 committed Jan 2, 2009
    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 committed Dec 28, 2008
Commits on Dec 27, 2008
  1. @jamis


    jamis committed Dec 27, 2008
    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 committed Dec 26, 2008
    Just parse enough of each glyph to be able to write it back out
    in a font subset
  2. @jamis

    Cleanup, first pass.

    jamis committed Dec 25, 2008
    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 committed Dec 14, 2008
Commits on Dec 1, 2008
  1. @practicingruby
  2. @practicingruby

    Kerning now

    practicingruby committed Nov 30, 2008
Commits on Nov 7, 2008
  1. @practicingruby
  2. @practicingruby

    Cmap working

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

    Now we're stuck :-/

    practicingruby committed Nov 6, 2008
Commits on Oct 31, 2008
  1. @practicingruby

    HMTX Lovin

    practicingruby committed Oct 30, 2008
  2. added maxp table

    Jia Wu committed Oct 30, 2008
  3. @practicingruby
  4. added hhea table

    Jia Wu committed Oct 30, 2008
Something went wrong with that request. Please try again.