8754 Commits

Author SHA1 Message Date
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
3afe3817cb updated for numpy (this file needs a thorough review)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@540 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:42:38 +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
Just van Rossum
b6fb65a7fa old stuff
git-svn-id: http://svn.robofab.com/trunk@62 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-03 19:46:41 +00:00
Just van Rossum
06da8efea4 these shouldn't be in svn
git-svn-id: http://svn.robofab.com/trunk@61 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-03 19:44:25 +00:00
Erik van Blokland
0c11984e3c This sets a default value for the RInfo.createdBy attribute. Setters and getters for this attribute were already in place, no idea why this was missed. But here it is.
git-svn-id: http://svn.robofab.com/trunk@60 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-02 10:05:19 +00:00
jvr
e45b2f1a0c updated change log
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@533 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:26:14 +00:00
jvr
9856eeca31 updated file list
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@532 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:22:24 +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
4dd7a4cfbc see sf tracker
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@530 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:03:35 +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
Erik van Blokland
a1c092af26 _processMathOne does not need factor processing. Copy/paste error.
git-svn-id: http://svn.robofab.com/trunk@59 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-26 09:33:18 +00:00
Erik van Blokland
380513b3c2 Fixes a traceback in FL when importing a UFO without hints.
git-svn-id: http://svn.robofab.com/trunk@58 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 14:53:25 +00:00
Erik van Blokland
6ce7a4c64b Check if the psHints are None before processing.
git-svn-id: http://svn.robofab.com/trunk@57 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 14:37:20 +00:00
Erik van Blokland
72dc3fecae Add test for glyph.copy() and font.insertGlyph()
git-svn-id: http://svn.robofab.com/trunk@56 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 13:25:00 +00:00
Erik van Blokland
bee4e0c152 Fix
git-svn-id: http://svn.robofab.com/trunk@55 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 13:22:11 +00:00
Erik van Blokland
e9a403fec1 PostScriptGlyphHintValues reads from data argument if there is one.
git-svn-id: http://svn.robofab.com/trunk@54 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:55:29 +00:00
Erik van Blokland
5d3393baab Add a clear() method to the psHint base object.
git-svn-id: http://svn.robofab.com/trunk@53 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:52:26 +00:00
Erik van Blokland
92f1b1c979 New argument for writeUFO: doHints if the glyph hints need to be exported. Default set to False. New argument for readUFO: doHints: if the hints need to be imported. Defaults set to True. font._supportHints is set to True so at least internally hints are supported.
git-svn-id: http://svn.robofab.com/trunk@52 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:51:13 +00:00
Erik van Blokland
47e7af1af8 This adds support for glyph.psHints in objectsFL.RGlyph. The psHints object is in this case a wrapper for FontLab's glyph hint objects. Hints are represented as simple [position, width] pairs, but they're converted to FL Hint objects when writing back to the font. Some changes to the way the hints are written to the font.lib upon export to UFO: hints used to be written as a list of {"position":100, "width":20} dicts. This is now just a list of lists [[100, 20], ]. The names of the entries now match the robofabInterCapSpellingRule, so hHint and vHint rather than hhint and vhint. This also applies to hLink, vLink and replaceTable.
git-svn-id: http://svn.robofab.com/trunk@51 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:35:12 +00:00
Erik van Blokland
119c1534ba This adds support for glyph.psHints in objectsRF.RGlyph. Read from glyph.lib if present. Write to glyph.lib if not empty. It stores in the .glif through the glyph.lib.
git-svn-id: http://svn.robofab.com/trunk@50 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:28:46 +00:00
Erik van Blokland
89a3dcd1a6 psHint object for glyphs. Support for math. Support for (x,y) factors for multiplication and division. Math operations on glyph take psHints into account. Refer to robofab/test/test_psHints.py
git-svn-id: http://svn.robofab.com/trunk@49 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:26:38 +00:00
Erik van Blokland
bb9b773615 Test data. Same as the test data from earlier releases. It had not been committed into svn.
git-svn-id: http://svn.robofab.com/trunk@48 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:23:57 +00:00
Erik van Blokland
8893f73410 doc test for the psHints attributes of glyph and font. Various math operations ad tests.
git-svn-id: http://svn.robofab.com/trunk@47 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:22:03 +00:00
Erik van Blokland
c52a8690ab objectsRF.RFont object now makes an empty PostScriptFontHintValues object when initialised. psHints data is always saved to UFO, not just when font._supportHints is on.
git-svn-id: http://svn.robofab.com/trunk@46 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-24 11:40:36 +00:00
Erik van Blokland
9b132cd124 Div rather than mul.
git-svn-id: http://svn.robofab.com/trunk@45 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 21:22:40 +00:00
Erik van Blokland
10b720b45d This implements add, sub, mul, rmul, div and rdiv for psHints. With a tip of the hat to Tal's fontMath for some ideas. This also includes a round() method which does some appropriate rounding and integerifying of the zone and stems.
git-svn-id: http://svn.robofab.com/trunk@44 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:44:09 +00:00
Erik van Blokland
a1d2ca7469 psHints, allow initialisation of the object with data.
git-svn-id: http://svn.robofab.com/trunk@43 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:40:49 +00:00
Erik van Blokland
afe98e771e Reimplements the maximum items for the bluesvalues. New copy() method fo the FL flavored psHints object.
git-svn-id: http://svn.robofab.com/trunk@42 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:40:07 +00:00
Erik van Blokland
026f9d336f Rather than a list of tuples, the zone information is now returned and accepted as a list of lists. It won't make any difference in the way the data is handled, but it makes it possible to compare results in FL with results from UFO. (the pairs are stored as lists in the UFO, not tuples). Two internal method names are updated as well as they're no longer making tuples.
git-svn-id: http://svn.robofab.com/trunk@41 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 13:22:35 +00:00
Erik van Blokland
0192232fbe Fix: if a psHintValues object is initialised without a parent, it should not try to load the lib.
git-svn-id: http://svn.robofab.com/trunk@40 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 13:17:21 +00:00
Erik van Blokland
fdae4fcb4b Represent blues values as lists of tuples rather than a list of integers. Represent forceBold as a Bool. Do some sorting on blues values.
git-svn-id: http://svn.robofab.com/trunk@39 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-22 10:12:19 +00:00