Behdad Esfahbod
3e19354bf5
[subset] Unbreak after e898881ed12d7ce96948f2905d725847c76bc9e8
2014-05-13 21:08:51 -04:00
Behdad Esfahbod
11631b4917
[subset] Fix PairPos subsetting
...
Ouch!
Fixes https://github.com/behdad/fonttools/pull/118
2014-05-13 14:31:42 -04:00
Behdad Esfahbod
e898881ed1
[subset] Implement format14 variation selectors
2014-05-09 17:48:02 -04:00
Behdad Esfahbod
da223b8fa8
Minor optimization
2014-05-09 17:05:32 -04:00
Behdad Esfahbod
f09164a0de
[subset] Don't recalculate "modified" timestamp
...
To recalculate (which was the default before), use --recalc-timestamp
Fixes https://github.com/behdad/fonttools/issues/115
2014-05-01 15:16:14 -07:00
Behdad Esfahbod
497863a190
Allow disabling 'head' table modified-timestamp recalculation
...
Part of:
https://github.com/behdad/fonttools/issues/115
https://github.com/behdad/fonttools/issues/46
2014-05-01 15:13:22 -07:00
Behdad Esfahbod
14f13a993e
[merge] Remove Python 2.7 dict comprehension syntax
...
Hopefully 2.6-happy again.
2014-04-02 18:54:53 -07:00
Behdad Esfahbod
8fec68796d
[merge] Map duplicate glyphs using synthesized GSUB 'locl' tables
2014-03-28 17:41:01 -07:00
Behdad Esfahbod
d0903e3bb3
.
2014-03-28 16:39:49 -07:00
Behdad Esfahbod
2772d8496e
[merge] Minor
2014-03-28 15:37:18 -07:00
Behdad Esfahbod
4bb028e44f
Fix identifierToTag for Python 3
2014-03-28 15:18:14 -07:00
Behdad Esfahbod
59a2c05137
[merge] Minor
2014-03-28 15:13:10 -07:00
Behdad Esfahbod
0884507c0e
[merge] Minor
2014-03-28 15:02:40 -07:00
Behdad Esfahbod
201a681821
[merge] Minor
2014-03-28 14:58:12 -07:00
Behdad Esfahbod
0e235becc5
[merge] Comment
2014-03-28 14:56:27 -07:00
Behdad Esfahbod
7765421ab7
[merge] Allow merging OS/2 tables of different versions
2014-03-28 14:48:09 -07:00
Behdad Esfahbod
82c54638e3
[merge] Install merged dict on object
2014-03-28 14:41:53 -07:00
Behdad Esfahbod
0d5fcf498c
[merge] Rename
2014-03-28 14:39:31 -07:00
Behdad Esfahbod
50d6c7298a
Minor
2014-03-28 14:32:24 -07:00
Behdad Esfahbod
5a5d0affff
[merge] Support missing GSUB/GPOS/etc
...
This is a hack for now. Will clean up in upcoming commits.
2014-03-28 14:11:38 -07:00
Behdad Esfahbod
d0a31f5a43
Make tag parameter to table constructor optional
...
If not provided, extract from class name.
2014-03-28 14:04:01 -07:00
Behdad Esfahbod
b8039e2653
[merge] Rename
2014-03-28 13:54:37 -07:00
Behdad Esfahbod
477dad1ee8
[merge] Improve assert
2014-03-28 13:52:48 -07:00
Behdad Esfahbod
11580c55bb
Minor
2014-03-13 17:34:35 -07:00
Behdad Esfahbod
9f6ccad666
[subset] Correctly handle subsetting non-Unicode cmap subtables
2014-03-12 12:35:35 -07:00
Behdad Esfahbod
a08b1b1d20
[subset] Use NameRecord.isUnicode()
2014-03-12 12:33:40 -07:00
Behdad Esfahbod
77ccf45eb0
Add NameRecord.isUnicode()
2014-03-12 12:32:27 -07:00
Behdad Esfahbod
2007a491e3
[subset] Use CmapSubtable.isUnicode()/isSymbol()
...
Fixes https://github.com/behdad/fonttools/issues/111
2014-03-12 12:27:11 -07:00
Behdad Esfahbod
f480c7cf21
[merge] Use CmapSubtable.isUnicode()
2014-03-12 12:18:47 -07:00
Behdad Esfahbod
0f74e80d59
Add isUnicode() and isSymbol() to cmap subtables
2014-03-12 12:17:33 -07:00
Erik
479759844c
Add validator test to converters doctest.
...
Make sure the kerning validator is ok with both old and converted
groups. It seems to be.
2014-02-25 14:23:35 +01:00
Behdad Esfahbod
319643ade2
Fix up regression in promoting lookups to extensions
...
Was broken by 6ed2eb409231a7fe3e0c2a135f9a89796206f639
Fixes https://github.com/behdad/fonttools/issues/110
2014-02-20 16:31:15 -05:00
Tal Leming
8dc8742959
Add write time kerning group down conversion to UFOWriter.
...
This allows the UFO 3 up converted kerning group names to be reset to
their original names at the time of writing in UFO <= 2.
2014-02-18 11:49:26 -05:00
Tal Leming
0f6b6d741a
Fix some failing tests.
...
I’m not sure why these were still broken.
2014-02-18 10:29:30 -05:00
Tal Leming
2a026d368f
Tie the new prefixed group locating function into the converter.
2014-02-18 10:01:24 -05:00
Tal Leming
96757fc6a1
Added function that scans for known kerning group prefixes.
2014-02-18 09:48:23 -05:00
Behdad Esfahbod
5080331251
[merge] Map recursive lookups
...
Fixes https://github.com/behdad/fonttools/issues/109
2014-02-10 18:14:37 -05:00
Tal Leming
837c17c323
Return a report detailing why the kerning is invalid.
2014-02-04 10:05:58 -05:00
Behdad Esfahbod
e3d7d71b7a
Allow setting 'raw' attrs on XML for tables to be loaded from hex
...
Previously one had to set the 'ERROR' attribute. Accept raw also.
So, for example one can say:
<cmap raw="1">
<!-- Hand-coded format13 table mapping all Unicode
characters to .notdef glyph. -->
<hexdata>
0000 0001 <!-- version numTables -->
0000 0006 <!-- platformID encodingID -->
0000000C <!-- offset -->
000D 0000 <!-- format reserved -->
0000001C <!-- length -->
00000000 <!-- language -->
00000001 <!-- nGroups -->
00000001 <!-- startCharCode -->
0010FFFE <!-- endCharCode -->
00000001 <!-- glyphID -->
</hexdata>
</cmap>
2014-01-31 18:06:24 -05:00
Behdad Esfahbod
6338375bd8
Allow loading zero-length tables
...
Fixes https://github.com/behdad/fonttools/issues/106
2014-01-30 16:48:11 -05:00
Olivier Berten
ec8dccb731
More array instead of pack
2014-01-28 23:45:39 +01:00
Behdad Esfahbod
ff2dd56f86
Make unicode.py py23-compatible
2014-01-28 16:42:24 -05:00
Olivier Berten
149b9f97e3
use array instead of unpack
2014-01-28 20:59:10 +01:00
Olivier Berten
4a73f8b4e9
'post' format 4.0 support
2014-01-28 14:37:15 +01:00
Behdad Esfahbod
27c71f9f60
Retain hinting for first font
...
Part of https://github.com/behdad/fonttools/issues/95
2014-01-27 21:01:45 -05:00
Behdad Esfahbod
a36c74e8b8
Add logic for keeping PUSHB/PUSHW distinction
...
And avoid merging consequent pushes. No option to control this
externally right now, but the logic is there.
Part of https://github.com/behdad/fonttools/issues/92
2014-01-19 17:30:19 +08:00
Behdad Esfahbod
fea81ee2b3
Use Python's unicodedata.name() in fontTools.unicode
...
This removes our internal copy of Unicode names database!
Adds new API fontTools.unicode.setUnicodeData() that can be
called with a filename or file object corresponding to a
UnicodeData.txt file, which will consequently used for Unicode
character name mapping. This is useful for using newer Unicode
database than the one that comes with the builtin Python module.
This also changes behavior such that control characters, Hangul
syllables, Han chars, etc, get no name with custom
UnicodeData.txt. We may revisit this though.
Filed https://github.com/behdad/fonttools/issues/82 to add
option to ttx to pass custom UnicodeData.txt.
Fixes https://github.com/behdad/fonttools/issues/81
2014-01-15 23:38:08 +08:00
Behdad Esfahbod
1ae29591ef
from __future__ import absolute_import
...
Such that our Python 2 is closer to Python 3.
Part of https://github.com/behdad/fonttools/issues/77
2014-01-14 15:07:50 +08:00
Behdad Esfahbod
f5d123be5e
Use ast.literal_eval to implement safeEval
...
Fixes https://github.com/behdad/fonttools/issues/75
2014-01-14 14:59:12 +08:00
Erik
de4e678430
SelectFont returns the wrong value on cancel, or with no fonts to choose from.
...
This makes sure the dialog will return None on Cancel.
2014-01-13 12:00:01 +01:00