1546 Commits

Author SHA1 Message Date
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
Jens Kutilek
473d57bef1 Renamed BitmapOffset to GlyphDataOffset 2014-09-24 13:54:24 +03:00
Behdad Esfahbod
4e860eb40b Merge pull request #160 from khaledhosny/fix-TTGlyph.draw
Fix: 'list' object has no attribute 'tolist'
2014-09-24 11:56:14 +03:00
Behdad Esfahbod
6233dc5e3a Merge pull request #162 from fontfont/master
Fix calculation of offsets for second strike in sbix table
2014-09-22 23:41:09 +02:00
Behdad Esfahbod
1f5b00bbbf [subset] Add --unicodes='*' and --glyphs='*' 2014-09-22 23:32:23 +02:00
Jens Kutilek
2e262319eb Implement originOffsetX/Y for glyph data records 2014-09-22 18:18:01 +02:00
Jens Kutilek
89e9842d0b Rename size to ppem 2014-09-22 17:20:04 +02:00
Jens Kutilek
590906c7b4 Rename BitmapSet to Strike 2014-09-22 17:07:01 +02:00
Jens Kutilek
20125e16f4 Rename numSets to numStrikes 2014-09-22 16:58:55 +02:00
Jens Kutilek
d06c71932e Rename unknown fields to version, flags (again) 2014-09-22 16:54:43 +02:00
Jens Kutilek
8f9fcd911d Remove padding from comment ;) 2014-09-22 16:02:36 +02:00
Jens Kutilek
64dc269f3c Padding for strikes is apparently not necessary
… nor is it in the spec.
2014-09-22 15:58:39 +02:00
Jens Kutilek
dd69de96cd Fix wrong calculation of offsets for second strike 2014-09-22 15:38:02 +02:00
Khaled Hosny
f329808703 Fix: 'list' object has no attribute 'tolist' 2014-09-21 19:18:46 +03:00
Behdad Esfahbod
269e34bdf5 Merge pull request #159 from adrientetar/qt
pens: add a Qt pen
2014-09-20 12:14:44 +02:00
Adrien Tétar
8ed8e46659 pens: add a Qt pen 2014-09-20 10:21:33 +02:00
Jens Kutilek
fe4a723322 Try again 2014-09-19 18:19:28 +02:00
Jens Kutilek
7c99304474 Change unknown header fields to version, flags 2014-09-19 17:51:13 +02:00
Jens Kutilek
3b42e16cb2 Rename import in sbixStrike.py 2014-09-19 16:22:02 +02:00
Jens Kutilek
2aa0e9e524 Rename imports in _s_b_i_x.py 2014-09-19 16:21:23 +02:00
Jens Kutilek
c1378d345b Rename sbixBitmap to sbixGlyphData 2014-09-19 16:21:03 +02:00
Jens Kutilek
484fe4d11d Rename sbixBitmapSet to sbixStrike 2014-09-19 16:16:17 +02:00
Behdad Esfahbod
f1d9b37a77 Merge pull request #157 from olivierberten/kern
Missing argument in KernTable_format_2.toXML function
2014-09-18 15:12:48 +02:00
Olivier Berten (selapa.net)
bc839d342f Since KernTable_format_2 doesn't bring anything more than KernTable_format_unkown, let's get rid of it for now 2014-09-18 12:47:53 +01:00
Olivier Berten (selapa.net)
ad4c4c4f0b Missing argument in KernTable_format_2.toXML function 2014-09-17 22:01:40 +01:00
Behdad Esfahbod
46c1fa8809 Bump fontTools.version to 2.5
Followup to
2a60b441b0 (commitcomment-7532556)
2014-08-27 03:01:44 -04:00
Behdad Esfahbod
aeeb884b4c [ttx] Always add raw=True attribute when dumping DefaultTable to XML
Needed to avoid surprises when we add new table implementations.
Recently we added VDMX table, and that broke build of projects using
VDMX with DefaultTable, eg:

https://github.com/behdad/fonttools/issues/151
2014-08-24 13:01:27 -04:00
Behdad Esfahbod
bfe99090ba Fix reading XML for CBLC with external image files 2014-08-19 12:40:12 -04:00
Behdad Esfahbod
de9d1a6e47 [subset] Always remove 'glyf' Glyph padding
Before we were only doing this, partially, if --no-hinting was requested.
Always remove padding.  More savings.
2014-08-15 14:34:28 -04:00
Behdad Esfahbod
b342a27430 Add glyf.Glyph.trim() that removes padding and if asked hinting 2014-08-15 14:34:03 -04:00
Behdad Esfahbod
30852ad3b3 [subset] Add --gids-file 2014-08-14 11:37:35 -04:00
Behdad Esfahbod
946528fa25 [subset] Remove special handling of gidNNN, uniXXXX
We now have --gids and --unicodes, so only accept glyph names
on cmdline.  Cleans up a few things.

Sorry about the breakage in advance everyone. :)
2014-08-13 21:30:25 -04:00
Behdad Esfahbod
590c8777a6 [subset] Add --ignore-missing-glyphs and --no-ignore-missing-unicodes
Move glyph checking into the subsetter.  Also fix --gids.  Previous
patch's implementation was wrong as it was picking up glyphs from
sorted glyph-name list, NOT the glyph order!

Fixes https://github.com/behdad/fonttools/issues/34
2014-08-13 21:18:24 -04:00
Behdad Esfahbod
28270fd6fe [subset] Add --gids that takes list of glyph ids or ranges
Fixes https://github.com/behdad/fonttools/issues/113
2014-08-13 20:16:30 -04:00
Behdad Esfahbod
70723291bf [subset] Fix --unicodes doc 2014-08-13 20:02:08 -04:00
Behdad Esfahbod
387d317dbe [subset] "Support" VDMX
VDMX doesn't have glyph-specific data, so pass it through if requested.
We can actually load the table now, but it needs no subsetting anyway.
2014-08-13 19:56:11 -04:00
Behdad Esfahbod
bdaa75f9e7 [subset] Accept unicode ranges
Eg --unicodes=41-5a,61-7a to choose ASCII letters.  Note that with
this, --unicodes-file accepts fontconfig .orth files that do not
include other files.
2014-08-13 19:44:04 -04:00
Behdad Esfahbod
702729a076 [subset] Add --unicodes and --unicodes-file
Fixes https://github.com/behdad/fonttools/pull/79
2014-08-13 19:30:17 -04:00
Behdad Esfahbod
03f8ad9dd8 Allow passing encoding to XMLWriter()
We don't support non-UTF-8 encodings, but reinstate the argument
such that existing code, like robofab, continues to work.
2014-08-13 19:06:51 -04:00
Behdad Esfahbod
175c54a9d1 [subset] allow for unicode-based name with suffixes in the subset list
Fixes https://github.com/behdad/fonttools/issues/133

That part of the code is becoming really messy, but I want to get
all the features in first, then clean up.
2014-08-13 18:29:11 -04:00
Behdad Esfahbod
4b0facbc68 [subset] Minor 2014-08-13 18:10:42 -04:00
Behdad Esfahbod
40198c9b4d [subset] Accept separate on whitespace as well as comma
For all options, including the newly added --glyphs.
2014-08-13 18:08:16 -04:00
Behdad Esfahbod
315329845f [subset] Add --glyphs 2014-08-13 18:06:31 -04:00
Behdad Esfahbod
f290394747 [subset] Rename --glyph-file to --glyphs-file 2014-08-13 17:48:46 -04:00