1168 Commits

Author SHA1 Message Date
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
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
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
Behdad Esfahbod
015908415a [subset] Add --output-file
As requested many many times:

Fixes https://github.com/behdad/fonttools/pull/79
Fixes https://github.com/behdad/fonttools/pull/15
Fixes https://github.com/behdad/fonttools/issues/44
2014-08-13 17:35:23 -04:00
Behdad Esfahbod
8e51079212 [subset] Minor 2014-08-13 17:32:33 -04:00
Behdad Esfahbod
eac1ee5373 [subset] Add --glyph-file
It only accepts PS glyph names, not gidNNN, U+XXXX, etc, as per
discussion here: https://github.com/behdad/fonttools/issues/113

Requested many times:
https://github.com/behdad/fonttools/pull/15
https://github.com/behdad/fonttools/pull/79
2014-08-13 17:32:33 -04:00
Behdad Esfahbod
3b34ea301a [subset] Add --text-file 2014-08-13 16:55:47 -04:00
Behdad Esfahbod
1633d8e917 [subset] Allow pyftsubset --layout-features? etc
To see the current value of an option, pass a value of '?' to it, with
or without a '='.
Examples:
  $ pyftsubset --glyph-names?
  Current setting for 'glyph-names' is: False
  $ ./pyftsubset --name-IDs=?
  Current setting for 'name-IDs' is: [1, 2]
  $ ./pyftsubset --hinting? --no-hinting --hinting?
  Current setting for 'hinting' is: True
  Current setting for 'hinting' is: False

Fixes https://github.com/behdad/fonttools/issues/142
2014-08-13 16:33:57 -04:00
Behdad Esfahbod
1e7cb631a8 [subset] Err if options are not provided for list values 2014-08-13 16:20:06 -04:00
Behdad Esfahbod
bce7ef7ede [subset] Add looooooooonger usage
Based on text from Adam Twardoch.

Fixes https://github.com/behdad/fonttools/pull/15
2014-08-13 16:06:49 -04:00
Cosimo Lupo
e386a1a408 update table's list through MetaTools/buildTableList.py 2014-08-13 19:51:47 +01:00
Cosimo Lupo
d9c0d38115 a VDMX table converter 2014-08-13 19:51:13 +01:00
Behdad Esfahbod
5ba7d98a41 [glyf] Only pad glyphs that are odd-lengthed
Ouch!  Thinko.
2014-07-23 16:36:31 -04:00
Behdad Esfahbod
5ed7d154a9 Turn assert into warning 2014-07-23 16:28:34 -04:00
Behdad Esfahbod
3c4b5e0a09 [subset] Work around OTS bug with FDSelect format 0
a049b98c88
https://github.com/khaledhosny/ots/pull/31

Fixes https://github.com/behdad/fonttools/issues/138
2014-07-23 00:04:32 -04:00
Behdad Esfahbod
3a10a6546c [glyf] Don't pad when removing hinting instructions
Finishes recent changes.
2014-07-22 21:48:19 -04:00