35 Commits

Author SHA1 Message Date
jvr
91bca42442 merging fixes & changes from delft-sprint-2012
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@611 4cde692c-a291-49d1-8350-778aa11640f8
2012-10-18 12:49:22 +00:00
jvr
2a9bcde369 - use the builtin symbols instead of the types module
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@542 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-07 19:56:17 +00:00
jvr
f6ff48be3c better float testing, so numpy.floats also work.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@541 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-07 19:49:25 +00:00
jvr
c60a44fa03 Some edits from rroberts:
# 1) speed optimizations
# 2) fixed parseCharset0 to support CFF-CID fonts.
# 3) fixed CharsetConverter.read to work a font that actually has one
of the pre-canned encodings.
# This fixes a stack dump.
# I did not try to support using these encodings when writing a font,
# as the cases will be so rare as to not justify the processing
overhead for all other fonts.

(Read: I took out some of your loop optimizations since I believe they
made the code a lot less clear. I also have my doubts whether they were
actually performance improvements.)


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@509 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:41:18 +00:00
jvr
ce522410f2 small nits
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@418 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-25 07:37:25 +00:00
jvr
489d76a340 Refactored outline extraction for CharStrings. The interface to
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
2003-08-24 19:56:16 +00:00
jvr
ed10151701 Lots of CID work by rroberts.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@407 4cde692c-a291-49d1-8350-778aa11640f8
2003-08-22 19:53:32 +00:00
jvr
b9702ba0f1 Added support for the Encoding field. (Adam, please let me know if this
works for you.)


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@380 4cde692c-a291-49d1-8350-778aa11640f8
2003-01-03 20:56:01 +00:00
jvr
e2ca9b5a4f make 8-bit chars work in CFF Notice and Copyright fields
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@301 4cde692c-a291-49d1-8350-778aa11640f8
2002-09-09 14:18:39 +00:00
jvr
7ce0a139ab some progress bar support
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@293 4cde692c-a291-49d1-8350-778aa11640f8
2002-07-23 16:42:11 +00:00
jvr
b58176e5ac added support for raw bytecode: this happens unintentionally for subrs that aren't referenced, but it's good to have anyway, in case we want to switch T2 decompilation off.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@257 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-24 11:55:37 +00:00
jvr
74cd1ef7b3 whoops, make charset format 2 work also..
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@256 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-24 10:38:04 +00:00
jvr
6004bafc1f implemented compiling charset format 1 and 2
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@255 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-24 10:35:13 +00:00
jvr
4e5af60930 CFF/T2 <-> XML roundtripping has begun!
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@254 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-24 09:58:04 +00:00
jvr
f2cf9c5d6d first working version of CFF/T2 compiler; needs cleanup/refactoring, and doesn't import from XML yet; hardly tested.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@253 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-23 21:50:36 +00:00
jvr
4afb257387 remove format 3 charset switch; add newline after ROS
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@250 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-18 20:07:01 +00:00
jvr
7ce02ea9df renaming, refactoring.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@249 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-17 20:04:05 +00:00
jvr
155aa7569f tweaked the XML output somewhat, reorder the topdict fields, etc.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@248 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-17 19:58:49 +00:00
jvr
a2ad5447fb more CID support, some refactoring, stuff.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@246 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-17 18:36:07 +00:00
jvr
ae51d5c045 only debug if DEBUG...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@245 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-17 07:08:52 +00:00
jvr
767102ea85 tweaking, added some debug info
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@243 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-17 07:06:32 +00:00
jvr
016ca76e91 make decompiling charstrings work again
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@242 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-16 18:38:03 +00:00
jvr
4756b3a040 major refactoring, now evaluates everything lazily, so it should be really fast if you only need (say) the glyph order.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@241 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-16 18:17:32 +00:00
jvr
1890b953f0 more work in progress
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@236 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-15 07:41:30 +00:00
jvr
ecf5a794ee more CID hackery
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@234 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-14 13:51:51 +00:00
jvr
a20285b7b4 more rearranging, some fixes of the previous version
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@232 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-14 12:37:36 +00:00
jvr
e327558aa5 resturcturing, reformatting
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@231 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-14 12:22:03 +00:00
jvr
dbc2c173b3 moved some stuff to cffLib
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@225 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-13 16:19:51 +00:00
jvr
a2a75b348d use a StringIO stream instead slicing strings all the time; don't barf on CID-keyed fonts (but CID support is by no means there yet!)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@223 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-13 11:25:17 +00:00
Just
8ab68261d8 don't barf if there are no subroutines
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@102 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-28 10:37:25 +00:00
Just
fda65735a4 various changes:
- the Transformation class is now a little cleaner & smarter
- pens now have a reference to a font
- pens have a new method called drawGlyph(), which is needed for composites.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@64 4cde692c-a291-49d1-8350-778aa11640f8
2000-01-19 20:44:33 +00:00
Just
528614e6e2 Moved psCharStrings.py, psLib.py and psOperators.py to fontTools.misc, since they're not "toplevel" font tools.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@59 4cde692c-a291-49d1-8350-778aa11640f8
2000-01-16 22:14:02 +00:00
Just
ec46d16d21 dummy checkin -- testing
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@26 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-20 22:02:10 +00:00
Just
15aae2e2ec added $Id$ tag.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@25 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-20 21:59:49 +00:00
Just
7842e56b97 Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 21:34:53 +00:00