Permalink
Commits on Sep 14, 2009
Commits on Jan 23, 2009
Commits on Jan 21, 2009
  1. strip extended characters from postscript names

    This is extreme, but TTF fonts are _supposed_ to have ASCII
    postscript names anyway...
    jamis committed Jan 21, 2009
Commits on Jan 6, 2009
  1. Work around MS fonts with inaccurate kerning table metadata

    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.
    jamis committed Jan 6, 2009
Commits on Jan 5, 2009
  1. Reading the file in binary mode promotes world peace.

    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!
    jamis committed Jan 5, 2009
Commits on Jan 4, 2009
  1. File#open, not File#new

    jamis committed Jan 4, 2009
Commits on Jan 3, 2009
Commits on Jan 2, 2009
  1. Expose the mapping from subset code to unicode

    This lets us more easily build ToUnicode cmaps in PDF's
    jamis committed Jan 2, 2009
  2. Tweaks so that font subsetting works with unicode-8bit subsets

    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).
    jamis committed Jan 2, 2009
  3. Tweaks to make subsetting work in practice

    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.
    jamis committed Jan 2, 2009
Commits on Jan 1, 2009
Commits on Dec 31, 2008
Commits on Dec 30, 2008
Commits on Dec 29, 2008
  1. offset is 258

    jamis committed Dec 29, 2008
Commits on Dec 27, 2008
  1. TTFunk::Subset

    This class is a first pass at building a subset of a font.
    jamis committed Dec 27, 2008
Commits on Dec 26, 2008
  1. we really don't care that every glyph is fully decomposed

    Just parse enough of each glyph to be able to write it back out
    in a font subset
    jamis committed Dec 26, 2008
  2. Cleanup, first pass.

    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.
    jamis committed Dec 26, 2008
Commits on Dec 18, 2008
Commits on Dec 14, 2008
  1. quiet Prawn down some

    practicingruby committed Dec 14, 2008
Commits on Dec 1, 2008
  1. Kerning now

    practicingruby committed Dec 1, 2008
Commits on Nov 7, 2008
  1. Cmap working

    practicingruby committed Nov 7, 2008
Commits on Nov 6, 2008
  1. Now we're stuck :-/

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

    practicingruby committed Oct 31, 2008
  2. added maxp table

    Jia Wu committed Oct 31, 2008
  3. added hhea table

    Jia Wu committed Oct 31, 2008