Chris Simpkins
33b03e3edd
[Snippets] add name-viewer.ipynb jupyter notebook
2019-01-29 23:30:49 -05:00
Cosimo Lupo
7d975f7ada
Bump version: 3.37.0 → 3.37.1.dev0
2019-01-28 21:56:19 +00:00
Cosimo Lupo
2def727585
Release 3.37.0
2019-01-28 21:56:18 +00:00
Cosimo Lupo
6755c2dffa
Update changelog [skip ci]
2019-01-28 21:56:05 +00:00
Khaled Hosny
354b89c068
[feaLib] Implement ValueRecord.asFea()
...
ValueRecord had a makeString() method that takes an optional “vertical”
argument, but no code outside the tests sets this argument. Renamed it
to asFea() and dropped the “vertical”, so that it consistent with the
rest of feaLib.ast classes.
2019-01-28 11:52:36 +02:00
Khaled Hosny
e974ea3871
[feaLib] Add tests for ValueRecordDefinition.asFea()
...
Currently fail as it calls ValueRecord.asFea() which is not implemented.
2019-01-28 11:52:36 +02:00
Cosimo Lupo
0293a392ad
varLib: apply HIDDEN flag to fvar axis if hidden=1 in designspace axis
...
Fixes https://github.com/fonttools/fonttools/issues/1085
2019-01-27 10:57:08 +00:00
Khaled Hosny
f48f4cc6b4
[feaLib] Round-trip useExtension keyword
2019-01-27 12:16:35 +02:00
Denis Moyogo Jacquerye
18ac453781
Merge pull request #1467 from khaledhosny/voltlib-glyph-type
...
[voltLib] Accept COMPONENT glyph type
2019-01-24 14:24:18 +00:00
Khaled Hosny
c5bbd39577
[voltLib] Add test for MARK glyph type
2019-01-24 13:59:06 +02:00
Khaled Hosny
cd553debc3
[voltLib] Accept COMPONENT glyph type
2019-01-24 13:55:53 +02:00
Cosimo Lupo
1bb55b5c7e
Merge pull request #1464 from anthrotype/svg-path-arc-to-cubic
...
svgLib: add support for converting elliptical arcs to cubic bezier curves
2019-01-24 12:25:49 +01:00
Cosimo Lupo
fd219f5d93
add tests for parsing SVG arcs
2019-01-24 11:16:49 +00:00
Cosimo Lupo
f0ab265000
svgLib: add support for converting elliptical arcs to cubic bezier curves
...
Fixes https://github.com/fonttools/fonttools/issues/1141
Uses code from Chromium Blink's SVG path parser, in SVGPathNormalizer::DecomposeArcToCubic
https://github.com/chromium/chromium/blob/master/third_party/blink/renderer/core/svg/svg_path_parser.cc#L169-L278
Each elliptical arc is approximated by series of cubic bezier curves, one cubic every 90-degree portion of an arc.
2019-01-24 10:59:59 +00:00
Just van Rossum
55f48176f4
Merge pull request #1466 from chrissimpkins/glifLib-typo-fix
...
Minor documentation typo fix in ufoLib.glifLib
2019-01-23 17:58:38 +01:00
Chris Simpkins
7458cebda1
[ufoLib glifLib] minor typo fix
2019-01-23 11:21:06 -05:00
Khaled Hosny
098ce94edb
Minor
2019-01-23 10:18:44 +02:00
Khaled Hosny
b6ec12bad0
[voltLib] Distinguish different PROCESS_MARKS
...
PROCESS_MARKS followed by a group name is used for markAttachmentType
lookup flag, while followed by MARK_GLYPH_SET is used for
useMarkFilteringSet. The code parsed both correctly but did not
distinguish between the two in the generated AST as it should since they
compile to different lookup flags.
2019-01-23 10:18:44 +02:00
Cosimo Lupo
660b20feca
Merge pull request #1463 from brawer/regex-escape
...
Fix “DeprecationWarning: invalid escape sequence” in Python 3.7
2019-01-22 16:19:06 +00:00
Cosimo Lupo
2150ef875f
py23: add backport for math.isfinite (python >= 3.2)
2019-01-22 15:42:54 +00:00
Sascha Brawer
6a7e299c09
Fix “DeprecationWarning: invalid escape sequence” in Python 3.7
2019-01-22 16:36:15 +01:00
Khaled Hosny
4236772ec1
[voltLib] glyphSet() should return tuple
...
We need to maintain the glyph order and keep any duplicates.
2019-01-22 09:42:22 +02:00
Khaled Hosny
94633e9f46
[voltLib] Fix parsing glyph groups
...
* Fix ast.GroupDefinition.glyphSet() by using ast.GlyphName,
ast.GroupName and ast.Range in Parser.parse_coverage_(), and making it return
ast.Enum.
* Add ast.Enum.__len_() to fix the calculation of max_src and max_dest
in Parser.parse_substitution_(). I’m not sure I understand the logic
of this many to many check, will double check later.
* Update the test suite to reflect this. Had to add ast.Enum.__eq__() to
make it less painful, and __hash__() as otherwise ast.Enum wouldn’t be
used as a key in dicts (not sure this is a goo idea either, will
double check later).
2019-01-22 09:42:22 +02:00
Cosimo Lupo
c0f4f21e0e
Merge pull request #1460 from anthrotype/fix-null-valuerecord1-format-a
...
[feaLib] distinguish missing value and explicit '<NULL>' for PairPos2 format A
2019-01-19 15:08:56 +00:00
Cosimo Lupo
d386687d1e
Merge pull request #1461 from fonttools/designspaceLib-minor-cleanup
...
[designspaceLib] Remove InstanceDescriptor.mutedGlyphNames
2019-01-19 15:06:41 +00:00
Nikolaus Waxweiler
dd40dac5e0
Remove InstanceDescriptor.mutedGlyphNames
...
Closes https://github.com/fonttools/fonttools/issues/1417 .
2019-01-19 14:13:32 +00:00
Cosimo Lupo
baf11f64f4
feaLib/builder_test: add test for #1459
2019-01-19 12:17:38 +00:00
Cosimo Lupo
23f0b5f5b1
[feaLib.builder] do not make <NULL> ValueRecord
2019-01-19 12:11:14 +00:00
Cosimo Lupo
091b05296d
[feaLib] distinguish missing value and explicit '<NULL>' for PairPos2 format A
...
Fixes #1459
2019-01-19 11:46:05 +00:00
Behdad Esfahbod
af0e78e2eb
Merge pull request #1458 from googlefonts/retain_gids
...
Insert empty widths into hdmx when retaining gids.
2019-01-18 20:47:36 -05:00
Garret Rieger
d376057fb6
Insert empty widths into hdmx when retaining gids.
2019-01-18 17:32:04 -08:00
Cosimo Lupo
6367810c0e
Bump version: 3.36.0 → 3.36.1.dev0
2019-01-17 17:01:58 +00:00
Cosimo Lupo
3a6c66a284
Release 3.36.0
2019-01-17 17:01:57 +00:00
Cosimo Lupo
82702430d5
Update NEWS.rst [skip ci]
2019-01-17 16:58:41 +00:00
Cosimo Lupo
7a2fea9843
[ttx] should also white-list 'no-recalc-timestamp' for getopt to work
...
aargh..
Follow up from #1455
2019-01-17 15:02:01 +00:00
Just van Rossum
176f2e8244
[cffLib] Fix for #1451 ( #1456 )
...
* a charstring is not guaranteed to end in an operator, so the final bytecodes 11 and 14 can be part of an encoded numeric value; so remove 'return' or 'endchar' at the program level instead of bytescode
* move non-CFF2 test+error to elif clause of earlier isCFF2 test
Fixes the remaining issue from #1451
2019-01-17 16:01:15 +01:00
Cosimo Lupo
2c204ef81b
Merge pull request #1455 from anthrotype/ttx-no-recalc-timestamp-opt
...
[ttx] add --no-recalc-timestamp option to keep original head.modified
2019-01-17 14:54:57 +00:00
Cosimo Lupo
0e47ea1fac
[ttx] add --no-recalc-timestamp option to keep original head.modified
...
Fixes #46
2019-01-17 13:26:59 +00:00
Cosimo Lupo
158a7a3d4b
Merge pull request #1452 from anthrotype/fix-cff2-ttx-dump
...
[cff2] fix AttributeError 'isCFF2' when dumping CFF2 with ttx
2019-01-17 13:10:31 +00:00
Cosimo Lupo
1702536150
psCharStrings: only assert no extra args on stack upon compile, not in toXML
...
Fixes #1451
2019-01-17 11:59:51 +00:00
Denis Moyogo Jacquerye
017523414c
Merge pull request #1453 from khaledhosny/volt-stop-at-end
...
[voltLib] Don’t try to read past END
2019-01-17 09:59:31 +00:00
Khaled Hosny
e529832362
[voltLib] Don’t try to read past END
...
The parser was still trying to read the next token even when the current
token was END, but I think it should just stop reading here. When
reading from TSIV table there can be null bytes at the end when would
cause an exception in the lexer.
2019-01-16 23:04:14 +02:00
Cosimo Lupo
a3dd59d6ea
Merge pull request #1447 from anthrotype/retain-gids-cff
...
[subset] set emptied CFF charstrings to 'endchar' with --retain-gids
2019-01-16 16:51:57 +00:00
Cosimo Lupo
fe40af6d99
minor
2019-01-16 16:10:13 +00:00
Cosimo Lupo
1cde186172
subset_test: add test for --retain-gids and CFF2 table
2019-01-16 16:02:07 +00:00
Cosimo Lupo
6b4474b2c4
[subset] actually, ignore the width of emptied charstrings
...
basically, implies setting them to their defaultWidthX, which is the most efficient
way to store these (unnecessary) piece of data.
2019-01-16 16:01:12 +00:00
Cosimo Lupo
3e400c8828
don't add width and endchar for empty glyphs if it's CFF2
...
This also seems to fix https://github.com/fonttools/fonttools/issues/1448
2019-01-16 14:34:41 +00:00
Khaled Hosny
ca716e0925
[voltLib] Fix check for duplicate anchors
...
When checking for duplicate anchors, the component number should be
taken into account since the same anchors can be used for different
components i.e. over ligatures.
2019-01-16 15:31:05 +02:00
Cosimo Lupo
dec9ec0e73
Merge pull request #1449 from anthrotype/varlib-sparse-masters-post-underline
...
[varLib] ignore post.underline* from sparse masters when building MVAR
2019-01-16 12:15:29 +00:00
Cosimo Lupo
7740d1736c
varLib_test: add test for sparse masters
2019-01-16 11:25:29 +00:00