Behdad Esfahbod
8af430997d
[varLib] Start generating STAT table
...
Right now just reflects the axes, and even that with certain limitations:
- AxisOrdering is set to the order axes are defined,
- Name-table entries are not shared with fvar.
Towards https://github.com/LettError/designSpaceDocument/issues/8
2017-11-13 21:25:04 -08:00
Behdad Esfahbod
22f3b466b4
[varLib] Add TODO
2017-11-13 21:01:27 -08:00
Cosimo Lupo
06d1f64d40
requirements.txt: update brotli to 1.0.1
2017-11-13 11:28:44 +00:00
Erik van Blokland
5e79f84e57
This adds the options to generate a glyphmutator with decomposed source glyphs. The ufoProcessor has access to the complete glyphset. A decomposed mutator can make stand-alone instances for previews that can not really do the whole characterset.
2017-11-12 13:55:07 +01:00
Cosimo Lupo
dc5ef5a629
Merge pull request #106 from mashabow/patch-1
...
Fix typo: PointsPen → PointPen
2017-11-08 15:41:40 +00:00
Masaya Nakamura
f73202b00c
Fix typo
2017-11-09 00:40:08 +09:00
Cosimo Lupo
bb60cc4e2b
Merge pull request #1097 from anthrotype/py23-redirect-stream
...
[py23] Add backports for redirect_stdout/stderr context managers
2017-11-07 12:35:49 +00:00
Cosimo Lupo
350b73363b
[py23] must define redirect_stderr for py3.4
2017-11-07 12:08:04 +00:00
Cosimo Lupo
d3251241be
[py23] Add backports for redirect_stdout/stderr context managers
2017-11-07 11:54:28 +00:00
Cosimo Lupo
570fc1550e
Merge pull request #105 from mashabow/fix-getinfo
...
[filesystem] Specify namespaces for getinfo()
2017-11-07 10:15:48 +00:00
Cosimo Lupo
f100754ffb
Merge pull request #1093 from silnrsi/graphite
...
Fix small graphite round trip bugs
2017-11-07 09:53:36 +00:00
Masaya Nakamura
c7882c84b2
[filesystem] Specify namespaces for getinfo()
...
https://pyfilesystem2.readthedocs.io/en/latest/info.html#namespaces
2017-11-07 18:40:44 +09:00
Martin Hosken
eb003ea697
Fix old bugs
2017-11-06 21:16:16 +07:00
Cosimo Lupo
8bae54c072
Bump version: 3.19.0 → 3.19.1.dev0
2017-11-06 12:30:30 +00:00
Cosimo Lupo
d8170131a3
Release 3.19.0
2017-11-06 12:30:30 +00:00
Cosimo Lupo
939fece619
Updated NEWS.rst
2017-11-06 12:29:03 +00:00
Jens Kutilek
b9bca702f6
[varLib] Try a set of used points instead of all points ( #1090 )
...
* Try a set of used points instead of all points when testing whether to share points.
* Amend comment, remove unused variable
2017-11-06 11:49:26 +01:00
Cosimo Lupo
d91faeaf1a
Merge pull request #1091 from readroberts/master
...
[CFF2] Fixes for writing PrivateDict BlueValues and Subrs to XML.
2017-11-06 10:13:57 +00:00
ReadRoberts
508e0e3770
[psCharstring] Simpler version of test for CFF2Charstring vs T2Charstring.
2017-11-05 19:36:41 -08:00
ReadRoberts
4d8f1546d2
[psCharstrings] Whoops. Debug code that escaped review.
2017-11-05 19:34:17 -08:00
Adrien Tétar
d8d366de7e
More
2017-11-05 15:31:58 +01:00
Adrien Tétar
a2ffce8596
typo
2017-11-04 22:59:01 +01:00
Adrien Tétar
99c5c4fff5
Use dedicated Error
2017-11-04 22:56:12 +01:00
Adrien Tétar
f0d67574ab
Some optimizations to glifLib
2017-11-04 22:18:20 +01:00
Cosimo Lupo
34f06f41a9
Merge pull request #1094 from anthrotype/apple-kern
...
fix compilation of AAT kern tables
2017-11-04 16:41:53 +00:00
Cosimo Lupo
a12bfa160a
[_k_e_r_n_test] test toXML/fromXML for unknown formats
2017-11-04 12:02:57 +00:00
Cosimo Lupo
0f16a790cd
minor: fix comment and line length
2017-11-04 11:08:08 +00:00
Cosimo Lupo
d715575794
[_k_e_r_n] fix order of format/coverage bytes
...
In OT kern subtable header, the format is the high byte of 'coverage'
bit mask (bits 8-15), and the low byte (bits 0-7) is the actual coverage
bits.
In AAT kern, it's the opposite: the coverage flags are the high byte,
whereas the subtable format is the low byte.
Also adjusted the test data, and set coverage to 1 for OT kern subtable
(which means the usual horizontal kerning).
2017-11-04 10:56:07 +00:00
justvanrossum
7af33134a2
getBestCmap(): Expanded the list of cmap subtables to search for. Not sure how to implement the rest of Behdad's suggestions from #1092
2017-11-04 07:45:11 +01:00
Cosimo Lupo
5d16828031
fixup
...
had removed that fixture and squashed.. should have re-run the test
before pushing :-/
2017-11-03 20:07:09 +00:00
Cosimo Lupo
a2a4f45ef2
[_k_e_r_n_test] decompile/compile tests for unknown formats
2017-11-03 20:00:04 +00:00
Cosimo Lupo
982c956a08
[_k_e_r_n] add nocover for sys.byteorder check
...
as we don't run test on big endian systems so that check is always true anyway...
2017-11-03 19:59:42 +00:00
Martin Hosken
4a009d1eea
Fix tests
2017-11-04 00:34:47 +07:00
Cosimo Lupo
604059305b
Merge pull request #1092 from fonttools/get-best-cmap
...
[ttLib] Add a convenience method to the cmap table to return the best available cmap
2017-11-03 16:58:24 +00:00
Cosimo Lupo
69d3bfadcc
[_k_e_r_n] fix compilation of AAT kern tables
...
- When compiling kern subtables for version=1.0 kern tables (AAT)
the subtable header was written incorrectly: there is no version,
the length is a uint32 and there's an additional uint16 for
tupleIndex
- Use the 'coverage' low byte to select subtable "format", instead
of the 'version' field, only present in OT kern subtable header.
The getkern method was failing with AttributeError on 'unknown'
subtable formats, as their class only has 'format' instead of
'version' attribute. The 'version' attribute is renamed to
'format' also to avoid confusion, but the old one is kept for
backward compatiblity. In the only implemeted subtable class,
'format' becomes a class attribute rather than instance's
(it must always be 0).
- KernTable_format_0 now takes an 'apple=False' argument, used to
know the different headers and whether to read/write tupleIndex.
- minor pep8 whitespace and indentation fixes
- A new 'tupleIndex' attribute is written out to TTX for apple
kern subtables. Old ttx files which lack that attribute will
still be read (with a warning) and will default to tupleIndex=0
when recompiled or dumped with current fonttools.
Fixes #1089
2017-11-03 16:39:31 +00:00
Martin Hosken
9651594848
Fix small graphite round trip bugs
2017-11-03 23:21:02 +07:00
Cosimo Lupo
5f2177a990
[_k_e_r_n_test] Add tests for OT and AAT kern format 0 subtable
2017-11-03 16:08:37 +00:00
justvanrossum
4e8295920a
return None if no unicode cmap subtables were found
2017-11-03 16:19:48 +01:00
justvanrossum
113f9cc498
add (0, 4) to default cmaps to search for; add getBestCmap() to TTFont as well; added test for the latter
2017-11-03 16:01:45 +01:00
justvanrossum
43a39588b3
fiddled with the doc string
2017-11-03 15:16:32 +01:00
justvanrossum
baf2fbf87d
added tests for cmap.getBestCmap()
2017-11-03 15:10:06 +01:00
justvanrossum
9dcddb853a
Added getBestCmap() convenience method to the cmap table, to return the best available unicode cmap in the font
2017-11-03 11:36:01 +01:00
ReadRoberts
212168f192
[CFF2] Update the test file C_F_F__2.ttx to match the change in the CFF2 output for XML
2017-11-02 12:09:04 -07:00
ReadRoberts
83379be568
CFF2 Subr items can have values on the stack after the last operator. These were not getting written to XML. Added new class CFFSubr so that we can make an assertion error in this case if the item is not a CFF2 Subr, and otherwise write the last values on the stack to the XML file
2017-11-02 11:36:10 -07:00
ReadRoberts
8b02b5a294
Fixed issue with reading/writing PrivateDict BlueValues to ttx file. To date, BlueValue arguments have been written as absolute coordinate values, reflecting the history of the CFF ttx table format. However, Behdad Esfahbod pointed out that it is not always possible to roundtrip between the absolute values in the ttx file and the CFF2 default font value and the delta list. This update changes the ttx format so that in PrivateDict BlueValues, the default font values are written as absolute coordinates, preserving continuity with how CFF tables are written, but the region values are written as the deltas from the VariationStore delta list.
...
This also fixes fonttools/fonttools/issues/1030.
Although the roundtrip is generally possible when a VariationStore is built from source font data using the Superpolator model, it is possible to build region definitions that do not follow this model. Behdad cited the Skia "Q" example, where the tail of the Q is affected by two regions defined as:
min=0 peak=0.5 max=0.51 delta=+10
min=0.49 peak=0.5 max=0.51 delta=-10
2017-11-02 11:31:47 -07:00
Cosimo Lupo
240ef765a8
[_k_e_r_n_test] rewrite as pytest-style; fix indentation
2017-11-02 10:37:56 +00:00
Sascha Brawer
045287aa25
[morx] Compile state table in a separate method
...
This makes the code slightly easier to understand.
2017-10-31 23:28:40 +01:00
Cosimo Lupo
fbb41aeb1b
Bump version: 1.3.0 → 1.3.1.dev0
2017-10-31 19:57:57 +00:00
Cosimo Lupo
932d030d6f
Release 1.3.0
2017-10-31 19:57:00 +00:00
Cosimo Lupo
824a9d22bc
Bump version: 1.2.1.dev0 → 1.3.0.dev0
2017-10-31 19:43:56 +00:00