Erik van Blokland
1eb53b404e
This fixes a issue in importing ps zone information. I missed a bug in FL and fixed it in the wrong place.
...
The FL attribute font.blue_values_num can't be set to the highest number required to store 7 zones. Adam was asked about t his in september 2008, but didn't answer.
While this can't fix the FL bug, it can properly import all values up to the last one. A warning is printed when the last value is dropped.
git-svn-id: http://svn.robofab.com/trunk@163 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-02-17 08:43:08 +00:00
Erik van Blokland
65b2d92a9f
MarginPen now has a isHorizontal flag when initialising. Default set to True, the calculations will be horizontal. When False, the measurements will be vertical.
...
Scripts using MarginPen should continue to work without changes.
git-svn-id: http://svn.robofab.com/trunk@94 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-09-20 09:32:33 +00:00
jvr
d67cf25974
don't use 'as' as a name, it's a keyword in Python >= 2.6
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@563 4cde692c-a291-49d1-8350-778aa11640f8
2008-09-16 14:14:44 +00:00
Erik van Blokland
339ce1c71c
Test for glyph and font in the test.
...
git-svn-id: http://svn.robofab.com/trunk@93 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-28 23:23:45 +00:00
Erik van Blokland
04e27a3cca
MarginPen now pays attention to the transformation set for components.
...
git-svn-id: http://svn.robofab.com/trunk@92 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-28 23:21:29 +00:00
Erik van Blokland
6083cfc404
Token checkin to see if it works. Ignore.
...
git-svn-id: http://svn.robofab.com/trunk@91 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-14 20:14:50 +00:00
Erik van Blokland
fe77241d92
Fix for ticket #4
...
git-svn-id: http://svn.robofab.com/trunk@90 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-14 20:12:00 +00:00
jvr
c63ac64007
fixed buglet that caused the last table in the font not to be padded to a 4-byte boundary (the spec is a little vague about this, but I believe it's needed, also, Suitcase may complain...)
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@562 4cde692c-a291-49d1-8350-778aa11640f8
2008-06-17 20:41:15 +00:00
Erik van Blokland
dc76c06826
Add method getAll() which returns a sorted list of unique slice values.
...
git-svn-id: http://svn.robofab.com/trunk@89 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 17:52:38 +00:00
Erik van Blokland
689472553a
Handle components. Handle self overlapping bezier segments with any number of intersections.
...
git-svn-id: http://svn.robofab.com/trunk@88 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 09:47:54 +00:00
Erik van Blokland
2093fcbad2
Removed print statements.
...
git-svn-id: http://svn.robofab.com/trunk@87 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 08:18:23 +00:00
Erik van Blokland
ac33952df5
Pen to calculate the horizontal margins of a glyph at any given height by intersecting the shape with a horizontal line. Results can be obtained for the whole glyph with pen.getMargins() or for each individual contour with pen.getCounterMargins().
...
git-svn-id: http://svn.robofab.com/trunk@86 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 07:49:39 +00:00
Erik van Blokland
3950975a77
AngledMarginPen calculates the left and right side-bearings of a glyph, relative to slanted margins. The angle is taken from font.info.italicAngle. Curves are approximated. This also contains 5 convenience functions to set and get individual margins and to center the glyph.
...
The approximation can be improved upon, perhaps taking the size of the bezier into account and so on. Also the italic offset, as it was used in RoboFog is missing, and could perhaps be taken into account.
git-svn-id: http://svn.robofab.com/trunk@85 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-27 09:00:58 +00:00
pabs3
ff85008e80
Get ready to release version 2.2
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@559 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-18 06:28:37 +00:00
jvr
4d29ba1595
updated unicode module to unicode 5.1.0
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@558 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 09:21:49 +00:00
jvr
a220bf3567
a different fix for [1296026]: just comment out the offending assert
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@557 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 08:52:33 +00:00
jvr
03e02adeb4
back out 'fix', as this solution isn't portable
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@556 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 08:44:06 +00:00
jvr
2f3f24afd3
updated to aglfn 1.6
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@555 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-16 17:33:56 +00:00
jvr
0cb8a08d89
cmap format 1 support, contributed by rroberts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@554 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-16 15:07:09 +00:00
pabs3
14654b2a88
Apply 1296026: fix tracebacks in some timezones
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@551 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-16 07:17:26 +00:00
Erik van Blokland
fb0943ff96
Remove unnecessary print.
...
git-svn-id: http://svn.robofab.com/trunk@84 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-28 15:51:53 +00:00
Erik van Blokland
9ec254f80c
New folder for contributed robofab packages.
...
git-svn-id: http://svn.robofab.com/trunk@79 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:01:52 +00:00
Erik van Blokland
60185e1a37
Upped the version for the new installer.
...
git-svn-id: http://svn.robofab.com/trunk@72 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 10:23:11 +00:00
Just van Rossum
ba0f821bd5
back out attempt to expose svn rev number
...
git-svn-id: http://svn.robofab.com/trunk@71 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:50:04 +00:00
Just van Rossum
824225ceb7
try to get the svn rev number in the source
...
git-svn-id: http://svn.robofab.com/trunk@69 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:39:16 +00:00
Just van Rossum
feb0046176
Moved Data, Lib and install.py one level down the tree
...
git-svn-id: http://svn.robofab.com/trunk@67 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:18:32 +00:00
jvr
a983e66970
- turned ps exceptions into classes and renamed them
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@550 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-11 07:25:29 +00:00
jvr
e56bc902cf
- t1Lib.py can now properly read PFA fonts
...
- fixed "flex" bug in T1 charstring reader
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@549 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-10 21:58:00 +00:00
jvr
e5b245fd07
added refactoring note
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@548 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-09 21:43:19 +00:00
jvr
ce47e0d978
minor fix: one zero too many in assert
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@547 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-09 20:48:45 +00:00
jvr
142506b07d
added comment, the OTL Extension mechanism should not be here
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@546 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-09 20:39:38 +00:00
jvr
1c73452692
fixed some comment typos
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@545 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-09 20:13:16 +00:00
jvr
cd75d570d4
don't crash on empty VORG table (reported by Werner Lemberg)
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@544 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-09 08:58:36 +00:00
jvr
1ebda677eb
squash 2 bugs related to the numpy conversion
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@543 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-08 20:29:30 +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
28afd331e1
initialize data to empty string instead of list
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@539 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:34:54 +00:00
jvr
91ff4fdfda
ar.typecode() doesn't exist in numpy, but then again, this was overkill
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@538 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:34:22 +00:00
jvr
1b7d54fedc
converted usage of Numeric to numpy
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@537 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:25:27 +00:00
jvr
f5e9825454
note this file is deprecated
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@536 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:04:09 +00:00
jvr
ccaf0376d6
removed some redundant imports
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@535 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:02:45 +00:00
jvr
41144b9306
- moved Numeric import to top
...
- converted tests to doctest
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@534 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 14:47:11 +00:00
jvr
a5ed95261c
post 2.1 version numbering
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@531 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:20:26 +00:00
jvr
b018bf7120
the gasp portion of patch 1675210: support for ClearType
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@529 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 16:43:24 +00:00
jvr
212ea14706
fixed oversight in sys.byteorder transition
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@528 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 15:31:01 +00:00
jvr
9be387c94f
Use sys.byteorder, getting rid of ttLib.endian
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@527 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 11:43:01 +00:00
jvr
45d1f3b3b5
- removed support for Python 2.2 on MacOS 10.2
...
- worked around a bug in GetCreatorType() on intel Macs
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@526 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 11:34:54 +00:00
jvr
1bcc11dcf6
Expose ignoreDecompileErrors as a command line option (-e, to set
...
ignoreDecompileErrors to to false)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@525 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 09:42:58 +00:00
jvr
2545f16b54
Make a hidden feature accessible: optionally ignore decompilation errors,
...
falling back to DefaultTable, retaining the binary data. It's a bit
dangerous to enable this by default, since it can lead to hiding other
errors or bugs (in the font or fonttools itself).
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@524 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 09:30:17 +00:00
jvr
2db352c748
- skip subtables of length zero
...
- minor tweak in cmap 4 logic
contributed by rroberts
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@523 4cde692c-a291-49d1-8350-778aa11640f8
2008-02-29 14:43:49 +00:00