Instead of using a list internally, I now use a dict, since the unicode
mapping is quite sparse (lots of unused slots).
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@465 4cde692c-a291-49d1-8350-778aa11640f8
- two minor typos
- changed copyright year in LICENSE (and it's 2004 now...)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@464 4cde692c-a291-49d1-8350-778aa11640f8
- better exception msg in loca table
- renamed "version" to "language" in cmap
- made cmap 12 work (untested by me)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@463 4cde692c-a291-49d1-8350-778aa11640f8
sometimes a legitimate solution is ever so slightly over 1.0. Those used to
be filtered out; now checking for 1.0 + 1e-10.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@460 4cde692c-a291-49d1-8350-778aa11640f8
- Changed a whole bunch of XXX traps into NotImplementedErrors
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@456 4cde692c-a291-49d1-8350-778aa11640f8
closePath() for *open* sub paths. This allows pen implementations
to reliably detect the end of a sub path.
- improved various doc strings.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@447 4cde692c-a291-49d1-8350-778aa11640f8
- added ome more doc strings
- added some minimal test code
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@441 4cde692c-a291-49d1-8350-778aa11640f8
combined with actual outlines, but if it is, we need to do the closePath
before the components are added.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@440 4cde692c-a291-49d1-8350-778aa11640f8
"""It adds full support for cmap format 2, which is what
the Adobe CJK fonts use for the Mac cmap subtable."""
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@434 4cde692c-a291-49d1-8350-778aa11640f8
dubious (I don't think 0.0/0.0 == 0.0...) but the result seems to be
correct.
- Documented that soleCubic() and solveQuadratic() are not guaranteed to
return the roots in order, and nor that they are guaranteed to not return
duplicate roots.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@431 4cde692c-a291-49d1-8350-778aa11640f8
objects, _TTGlyphSet doesn't cache them, so setting .width in .draw()
is confusing to say the least.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@430 4cde692c-a291-49d1-8350-778aa11640f8
GlyphSet. A GlyphSet is simply a dict-like object mapping glyph names
to glyphs. The glyphs in a GlyphSet have a .draw(pen) method and a
.width attribute. This provides a generic interface for drawing glyphs
or extracting outlines, and works both for CFF-based fonts and TT fonts.
See also fontTools.pens.basePen for a description of what makes a Pen
a Pen.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@420 4cde692c-a291-49d1-8350-778aa11640f8
T{1,2}OutlineExtractor is not backwards compatible and this change
basically makes them private classes: CharStrings now have a .draw()
method that takes a Pen object (see fontTools.pens.*), so you never
have to deal with the extractor objects yourself. Only lightly tested.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@417 4cde692c-a291-49d1-8350-778aa11640f8