Nikolaus Waxweiler
d381609885
Update RTL_SCRIPTS for Unicode 11 and 12
...
Information taken from https://docs.google.com/spreadsheets/d/1Y90M0Ie3MUJ6UVCRDOypOtijlMDLNNyyLk36T6iMu0o .
2020-01-09 14:21:49 +00:00
Cosimo Lupo
a311e76338
Bump version: 4.2.3 → 4.2.4.dev0
2020-01-07 16:28:13 +00:00
Cosimo Lupo
e2de0a36da
Release 4.2.3
2020-01-07 16:28:12 +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
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
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
b858f7bb3e
Change log message, remove comments
2019-12-18 10:03:08 +01: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
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
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
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
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
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
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
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
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
d9b6067447
roundingPen: Add RoundingPointPen, like RoundingPen but for point pens
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
Cosimo Lupo
3d4fb2b371
add RoundingPen, a filter pen to round coordinates and comp offsets
2019-11-27 11:01:09 +00:00
Cosimo Lupo
f6e69af7ba
Merge pull request #1763 from anthrotype/ttpen-float-coords
...
ttGlyphPen must round float coordinates and offsets
2019-11-26 16:31:25 +00:00
Cosimo Lupo
97fce155ad
ttGlyphPen: always round float coordinates and offsets to integers
...
Fixes googlefonts/fontmake#593
2019-11-26 16:16:48 +00:00
Nikolaus Waxweiler
a1f4d609e6
[varLib] fix logging typo about setting OS/2.usWeightClass
2019-11-26 16:03:26 +00:00
Jens Kutilek
6c3edaded2
ufoLib groupnames conversion 2 → 3 ( #1762 )
...
* If a group name is the same as a glyph name, it cannot be a kerning group name
* Add test
2019-11-22 09:51:35 +01:00
Cosimo Lupo
9d3b14dd5f
Bump version: 4.1.0 → 4.1.1.dev0
2019-11-18 16:29:17 +00:00
Cosimo Lupo
4076060344
Release 4.1.0
2019-11-18 16:29:16 +00:00
Cosimo Lupo
dbe20b7217
minor: typos and variable names
2019-11-18 10:51:30 +00:00
Cosimo Lupo
0b9404d7a4
instancer: rename parameters to more generic 'axisLimits'
...
I use the term 'location' for map of {axis_tag: float} coordinates, 'axisRanges'
for a map of {axis_tag: Tuple[float, float]} ranges, and 'axisLimits' to include
either single-float coordinates or range tuples.
2019-11-15 19:36:57 +00:00
Cosimo Lupo
12e1a6de37
instancer: catch early if input range doesn't include current default
2019-11-15 19:02:12 +00:00
Cosimo Lupo
6142825d7b
instancer: document case when peak is < 1.0 but outer limit exceeds 2.0
2019-11-15 18:35:37 +00:00
Cosimo Lupo
7d136da836
remove stale comment
...
a featureVars' range(0,0) is perfectly valid.
2019-11-15 18:01:02 +00:00
Cosimo Lupo
599d24a9e1
instancer: add comments to instantiateAvar
2019-11-15 17:43:22 +00:00
Cosimo Lupo
7c695d411f
Merge remote-tracking branch 'origin/master' into l3-instancer
2019-11-15 17:05:47 +00:00
justvanrossum
4de5fb800c
improve error when glyph orders don't match; fixes #1758
2019-11-12 10:02:27 +01:00
Just van Rossum
b8fafdd259
[WIP] [designspaceLib] designspace docs edits ( #1750 )
...
Various changes in the designspaceLib readme.rst
- added docs for DesignSpaceDocument object, methods and attributes
- removed comments on validation, localisation and generating UFO instances.
- added note that axis minimum, default and maximum are in userspace coordinates.
- added clarification to map input (userpace!) / output (designspace!) values.
- added note that sourceDescriptor location is in designspace coordinates.
- moved comment on rule subs to rule descriptor object.
- added proposed "processing" flag to rules element
- move note on sub element
- implementation differences
- varlib vs. mutatormath
- older versions
- rules and generating static ufo instances
- Updated the description of the `copyInfo` flag of the sourceDescriptor.
- Change the example import.
- Remove additional mention of copyInfo.
2019-11-07 19:30:51 +01:00
Behdad Esfahbod
9df78f303b
[otData] Support BASE table version 1.1
2019-10-31 11:45:49 -07:00
Just van Rossum
07140c12bd
[pens] Improve error message if pen.moveTo() is omitted. ( #1757 )
...
Improve error message if pen.moveTo() is omitted. See also robotools/fontParts#470
2019-10-30 14:45:55 +01:00
Cosimo Lupo
ebadcd96e6
set pre-initialized CountReference in VarRegionList.preWrite with fvar.axisCount
...
so we can reuse CountReference class, as suggested in https://github.com/fonttools/fonttools/pull/1752#issuecomment-547113944
The patch is no shorter though.
2019-10-29 12:52:42 +00:00
Cosimo Lupo
8bf82539bb
instancer: update module-level docstring for L3 instancing
2019-10-28 17:39:21 +00:00
Cosimo Lupo
f861c68873
instancer: keep emptied HVAR table
...
Even if HVAR no longer contains any variations, it's better to keep it because
otherwise one would have to check the glyphs' phantom points to confirm that
the advance widths (or heights for VVAR) don't vary
2019-10-24 17:37:49 +01:00