7309 Commits

Author SHA1 Message Date
Cosimo Lupo
e2de0a36da
Release 4.2.3 2020-01-07 16:28:12 +00:00
Cosimo Lupo
81cc20ccde
Update changelog [skip ci] 2020-01-07 16:27:58 +00:00
Cosimo Lupo
be1aba59b0
Merge pull request #1797 from anthrotype/fix-split-mark-base-pos
splitMarkBasePos should update MarkRecord.Class values after splitting
2020-01-07 15:02:05 +00:00
Cosimo Lupo
504450e053
otTables: update MarkRecord.Class in splitMarkBasePos
Fixes https://github.com/googlefonts/noto-source/issues/145
2020-01-07 13:24:40 +00:00
Cosimo Lupo
58cbf7b814
otTables_test: get XML dumps for expected MarkBasePos split subtables
This tests will fail because of this bug: https://github.com/googlefonts/noto-source/issues/145

The mark records' Class values of the second subtable should be updated to match the new class count
(the two split subtable contain half of the original mark classes). Otherwise the base records would
implicitly reference the wrong or non-existent mark classes...
The fix is in the following commit.
2020-01-07 12:57:20 +00:00
Just van Rossum
c6d005131c
Merge pull request #1796 from anntzer/sw
Get rid of SyntaxWarning with py3.8.
2020-01-06 11:57:09 +01:00
Antony Lee
4fa68d1989 Get rid of SyntaxWarning with py3.8.
On a clean clone (make sure there are no pycs present yet),
```
python -c 'import fontTools.ttLib.tables._c_m_a_p'
```
results in
```
.../fontTools/ttLib/tables/_c_m_a_p.py:21: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if gid is 0:
```

Fix that.
2020-01-06 11:30:30 +01:00
Ben Kiel
726cd67549
Clarify differences between XML and Python (#1792)
* Clarify differences between XML and Python

* Typo
2019-12-29 10:09:23 -06:00
Cosimo Lupo
fbf2b960cc
Merge pull request #1767 from fonttools/fealib-duplicate-sub-warning
[feaLib] Warning instead of error for duplicate identical substitutions
2019-12-18 13:23:50 +00:00
Jens Kutilek
864945df0b Change log call 2019-12-18 14:12:02 +01:00
Jens Kutilek
720488ed4b Merge branch 'master' into fealib-duplicate-sub-warning 2019-12-18 11:24:00 +01:00
Jens Kutilek
67da54fb5f Add a simple test 2019-12-18 11:09:23 +01:00
Jens Kutilek
b858f7bb3e Change log message, remove comments 2019-12-18 10:03:08 +01:00
Cosimo Lupo
251fd70b77
Merge pull request #1785 from anthrotype/glifLib-remove-comments
glifLib: ignore xml <!-- comments --> when parsing GLIF files with lxml
2019-12-16 12:19:09 +00:00
Cosimo Lupo
337bb66211
glifLib: strip comments when parsing with lxml
they are already ignored when parsing via built-in ElementTree
2019-12-16 12:05:13 +00:00
Cosimo Lupo
70c3eccb4e
glifLib_test: test xml containing <!-- comment --> 2019-12-16 12:01:40 +00:00
Cosimo Lupo
fd606ae813
Bump version: 4.2.2 → 4.2.3.dev0 2019-12-12 16:48:53 +00:00
Cosimo Lupo
632e065bcd
Release 4.2.2 2019-12-12 16:48:52 +00:00
Cosimo Lupo
0649663ebc
Update changelog 2019-12-12 16:48:42 +00:00
Cosimo Lupo
3b9a94d659
Merge pull request #1782 from anthrotype/subset-feature-vars-remap-indices
[subset] remap FeatureVariations SubstitutionRecord.FeatureIndex
2019-12-12 13:51:59 +00:00
Just van Rossum
cf0e43d6e5
[ttLib.glyf] make glyph.draw() skip redundant final lineTo() (#1775)
* [ttLib.glyf] make glyph.draw() skip redundant final lineTo()

This ensures that g.draw(pen) and g.drawPoints(PointToSegmentPen(pen)) are now 100% equivalent.
2019-12-12 13:44:10 +01:00
Cosimo Lupo
d68a59a2f2
subset: remap FeatureVariations SubstitutionRecord.FeatureIndex
Fixes #1777
2019-12-12 12:38:31 +00:00
Cosimo Lupo
9c0c3a1375
subset_test: Add (failing) test to repro #1777
the 'rvrn' feature is being incorrectly dropped because the feature indexes
change if some other feature occuring before 'rvrn' is dropped, like
in this test case.
2019-12-12 12:29:08 +00:00
Cosimo Lupo
3d7b3d835c
Merge pull request #1781 from anthrotype/font-builder-add-feature-vars
fontBuilder: add FontBuilder.addFeatureVariations method
2019-12-12 12:22:12 +00:00
Cosimo Lupo
a9dd94a566
Merge pull request #1776 from ln-north/master
fix requirements in svg2glif.py
2019-12-12 12:10:03 +00:00
Nikolaus Waxweiler
980f7f54c8
Merge pull request #1780 from fonttools/varlib-add_avar-legible-error-message
Legible error message for axis mapping duplicate check
2019-12-12 12:09:31 +00:00
Nikolaus Waxweiler
0d0fe2faac Add NEWS entry
[ci skip]
2019-12-12 12:09:16 +00:00
Cosimo Lupo
e821f1fb9e
fontBuilder: add FontBuilder.addFeatureVariations method
like the existing addOpenTypeFeatures
it simply forwards to featureVars.addFeatureVariations
2019-12-12 11:55:13 +00:00
Nikolaus Waxweiler
2d33117c95 Legible error message for axis mapping duplicate check 2019-12-12 11:39:38 +00:00
ln_north
9a49b01ec1 fix requirements in svg2glif.py
- Remove unused `ufoLib` package
- FontTools => fontTools
2019-12-10 09:39:53 +09:00
Just van Rossum
e2c60e3dcb
[ttLib.glyf] Fix flag bug in glyph.drawPoints() (#1774)
This was the same problem as glyph.draw() had, as reported in #1771.
2019-12-08 21:55:30 +01:00
Cosimo Lupo
a4b0992472
Bump version: 4.2.1 → 4.2.2.dev0 2019-12-06 09:42:19 +00:00
Cosimo Lupo
12a1da6de3
Release 4.2.1 2019-12-06 09:42:18 +00:00
Cosimo Lupo
15732894d8
Update changelog 2019-12-06 09:42:07 +00:00
Just van Rossum
46a06cabf2
[ttLib.glyf] Make sure to use the flagOnCurve mask in glyph.draw() (#1772)
* When drawing glyf outlines to a pen, make sure to use the flagOnCurve mask, so we don't trip over the overlap flag, that is set when instantiating variable fonts to indicate that overlaps are ok.

Fixes #1771.
2019-12-06 10:27:31 +01:00
Cosimo Lupo
cfc5b44c65
change all scripts' shebangs to use python3 2019-12-05 15:28:19 +00:00
Behdad Esfahbod
35f2a657ea Update ./fonttools script to use Python 3 2019-12-05 15:17:53 +00:00
Jens Kutilek
bf4fedaa74 Merge branch 'master' into fealib-duplicate-sub-warning 2019-12-03 14:54:03 +01:00
Jens Kutilek
9c6b7d2e7a Log warning instead of raising an error when identical substitutions are added again 2019-12-02 17:05:59 +01:00
Cosimo Lupo
ab2f8d9338
NEWS.rst: fix reStructuredText unordered list formatting 2019-11-28 17:25:40 +00:00
Cosimo Lupo
3af8bf18d2
NEWS.rst: remove stray line 2019-11-28 17:18:28 +00:00
Cosimo Lupo
a91f6047a2
Bump version: 4.2.0 → 4.2.1.dev0 2019-11-28 17:15:49 +00:00
Cosimo Lupo
8e30545a29
Release 4.2.0 2019-11-28 17:15:49 +00:00
Cosimo Lupo
2d13232e7a
Update NEWS.rst 2019-11-28 17:14:43 +00:00
Cosimo Lupo
43599ee3dd
Merge pull request #1766 from anthrotype/more-point-pens
[pointPens] Add {Filter,Recording,Transform,Rounding}PointPen
2019-11-28 16:56:38 +00:00
Cosimo Lupo
d9b6067447
roundingPen: Add RoundingPointPen, like RoundingPen but for point pens 2019-11-28 16:32:40 +00:00
Cosimo Lupo
ae5212f76b
add tests for RecordingPointPen 2019-11-28 16:32:40 +00:00
Cosimo Lupo
b885a852ed
recordingPen: add RecordingPointPen, like RecordingPen but for point pens 2019-11-28 16:29:36 +00:00
Cosimo Lupo
0fef59fd9e
transformPen: add TransformPointPen, like TransformPen but for point pens 2019-11-28 16:29:36 +00:00
Cosimo Lupo
646e26603d
filterPen: add FilterPointPen, like FilterPen but for point pens
the base class simply passes through contours/components unchanged
2019-11-28 16:29:35 +00:00