Behdad Esfahbod
4362cb49f3
In getGlyphSet(), pull glyph advance from hmtx even for CFF fonts
...
That's the right thing to do.
Also fixes this:
https://github.com/robofab-developers/robofab/issues/28
2015-01-08 12:53:58 -08:00
Behdad Esfahbod
8ef5adc4af
Move draw() implementation to a better place
2015-01-08 12:28:42 -08:00
schriftgestalt
adfe7f293a
add some missing return values
2015-01-08 09:46:13 -08:00
Behdad Esfahbod
a0dfcb496e
Align instruction comments at tab stop
...
Makes them much more readable.
2015-01-05 17:49:38 -08:00
schriftgestalt
5d66d59a1f
Add comments with names of TrueType instruction to assembly
2015-01-05 17:45:09 -08:00
Sam Fishman
de66a6466c
[subset] Add --desubroutinize
...
This seems to both make the font smaller for small subsets, and works
around a bug in our CFF hint stripping logic.
So, if you are passing --no-hinting, do pass --desubroutinize.
2015-01-05 15:53:56 -08:00
Olivier Berten (selapa.net)
ff84e2dadd
Regard very low datetimes as unix timestamps
2015-01-03 23:04:10 +01:00
Behdad Esfahbod
8a7a20c4b1
Fix indent
2015-01-02 13:14:26 -08:00
Behdad Esfahbod
b056318ca9
Ignore top four bytes of head table timestamps
...
Warn instead.
2015-01-02 13:08:57 -08:00
Behdad Esfahbod
15f2bb1e2f
Fixup previous commit
2015-01-02 13:02:36 -08:00
Behdad Esfahbod
ee425b4350
Adjust for Python 3.3 change in gmtime() exception type
...
https://github.com/behdad/fonttools/issues/99#issuecomment-66776810
Fixes https://github.com/behdad/fonttools/issues/99
2015-01-02 12:54:19 -08:00
Behdad Esfahbod
f0200def0c
Refactor timestamp code into misc.timeTools
2015-01-02 12:53:16 -08:00
Behdad Esfahbod
d86755bd45
Really fix fixedToFloat() this time
...
And simplify. Fixes regression introduced two commits ago.
Fixes https://github.com/behdad/fonttools/issues/205
2014-12-29 11:56:39 -08:00
Behdad Esfahbod
db3b2817bf
Add more tests to fixedToFloat(), showing previous commit is broken
...
Fix coming.
2014-12-29 11:30:48 -08:00
Behdad Esfahbod
97a07ce536
Improve fixedtoFloat()
...
Fixes https://github.com/behdad/fonttools/issues/205
2014-12-28 23:52:46 -08:00
Behdad Esfahbod
4447a76c33
[subset] If DSIG is to be retained, drop all signatures
...
Now DSIG can be retained by passing --drop-tables-=DSIG.
The embedded signatures will be dropped but empty table
retained.
Fixes https://github.com/behdad/fonttools/issues/145
2014-12-09 19:02:39 -08:00
Behdad Esfahbod
3560ee4c43
[subset] Update maxp values when dropping hinting
...
Fixes https://github.com/behdad/fonttools/issues/201
2014-12-09 18:53:37 -08:00
moyogo
2499ea3521
[TSI1] use tobytes()
2014-12-02 21:58:45 +00:00
moyogo
6021331a70
[TSI1] Use bytes literal
2014-12-02 21:45:21 +00:00
Behdad Esfahbod
3715f2d354
Unbreak Python3
...
Fixes https://github.com/behdad/fonttools/issues/197
2014-12-01 13:33:19 -08:00
Behdad Esfahbod
b1a8f7f8ec
Remove support for overwriting a table twice in SFNTWriter
...
Was slightly broken already. Remove it as there's no reason
to allow that.
2014-12-01 13:33:19 -08:00
moyogo
450faba7c3
Res is not available in Python 3
2014-11-21 17:07:55 +00:00
Behdad Esfahbod
ddb95b6a54
Revert "Add back fontTools.xmlWriter"
...
This reverts commit f8c35b6f98717a3f1f799b722e3bcd5b9303735c.
2014-11-09 17:55:05 -08:00
Behdad Esfahbod
f8c35b6f98
Add back fontTools.xmlWriter
...
Fixes https://github.com/behdad/fonttools/issues/190
2014-10-28 23:50:59 -07:00
Behdad Esfahbod
da6497ea1f
[subset] Fix example
...
Fixes https://github.com/behdad/fonttools/issues/192
2014-10-15 14:15:49 -07:00
Cosimo Lupo
a4aa9f2532
[subset] drop nameIDs 16, 17 and 18 if obfuscate_name
2014-10-08 11:42:36 +01:00
Behdad Esfahbod
19dadb37d6
One can't import fontTools.subset and fontTools.merge together
...
Fixes https://github.com/behdad/fonttools/issues/177
2014-10-07 17:37:29 -07:00
Cosimo Lupo
d5660cdd0c
also obfuscate name-IDs 16, 17 and 18
2014-10-07 13:36:10 +01:00
Behdad Esfahbod
730bedd3d1
[AAT] Add support for 'feat' table
...
Reusing the otData machinery.
See discussion at:
https://github.com/behdad/fonttools/issues/178
https://github.com/behdad/fonttools/pull/180
2014-09-30 19:04:16 -04:00
Behdad Esfahbod
5dd64deacb
[otData] add ULong types
...
In preparation for implementing AAT tables (slowly).
2014-09-30 18:55:57 -04:00
Behdad Esfahbod
a767e0298b
Fix XML reading of True/False after safeEval() revert
2014-09-30 18:54:47 -04:00
Behdad Esfahbod
f3fa9a4e43
Merge pull request #171 from anthrotype/dropkern2
...
[subset] Add --legacy-kern option to drop TrueType kern if GPOS is available
Fixes: https://github.com/behdad/fonttools/pull/171
2014-09-30 15:19:56 -04:00
Jens Kutilek
5614845b03
Try again to put padding code for Glyph.graphicType in the right place
2014-09-30 15:16:52 -04:00
Cosimo Lupo
8b081fed0b
added --legacy-kern option to drop TrueType kern if GPOS is available
2014-09-30 19:29:53 +01:00
Behdad Esfahbod
7834371f2a
Merge pull request #172 from adrientetar/qt-2
...
pens: qtPen tuple unpacking (py3/PEP3113)
2014-09-25 23:39:12 +03:00
Adrien Tétar
65be78bd59
pens: qtPen tuple unpacking (py3/PEP3113)
...
http://legacy.python.org/dev/peps/pep-3113/
2014-09-25 22:15:23 +02:00
Cosimo Lupo
450f8d42bb
updated __doc__
2014-09-25 15:42:13 +01:00
Cosimo Lupo
a73530aa79
added --obfuscate-names to make webfont unusable as a system font
2014-09-25 15:19:38 +01:00
Behdad Esfahbod
8388a2e37c
Revert "Use ast.literal_eval to implement safeEval"
...
This reverts commit f5d123be5e342d91c2fa964ddae2844bc633d08e.
Fixes https://github.com/behdad/fonttools/issues/164
See issue for details.
2014-09-24 18:15:51 +03:00
Jens Kutilek
c3b3fee638
Cleanup
2014-09-24 13:54:25 +03:00
Jens Kutilek
55d1d367c4
Use safeEval for attributes
2014-09-24 13:54:25 +03:00
Jens Kutilek
ad04a9e200
Dump sbix flags as a bit field
2014-09-24 13:54:25 +03:00
Jens Kutilek
035008bded
Pad graphicType if len() < 4
2014-09-24 13:54:25 +03:00
Jens Kutilek
5d004eb936
Rename Bitmap to Glyph
2014-09-24 13:54:25 +03:00
Jens Kutilek
141188bd00
Renamed imageFormatTag to graphicType
2014-09-24 13:54:25 +03:00
Jens Kutilek
3c03e75e9f
Nicer names
2014-09-24 13:54:24 +03:00
Jens Kutilek
2c4713ad0b
Renamed bitmaps to glyphs
2014-09-24 13:54:24 +03:00
Jens Kutilek
2f94365340
Rename self.bitmapSets to self.strikes etc.
2014-09-24 13:54:24 +03:00
Jens Kutilek
9106d1d8e8
Rename sbixBitmapHeader... to sbixGlyphHeader...
2014-09-24 13:54:24 +03:00
Jens Kutilek
cb905522b1
Renamed sbixBitmapSet... to sbixStrike...
2014-09-24 13:54:24 +03:00