Skip to content

Conversation

pyup-bot
Copy link
Contributor

Update fonttools from 4.0.2 to 4.3.0.

Changelog

4.3.0

---------------------------

- [EBLC/CBLC] Fixed incorrect padding length calculation for Format 3 IndexSubTable
(1817, 1818).
- [varLib] Fixed error when merging OTL tables and TTFonts were loaded as ``lazy=True``
(1808, 1809).
- [varLib] Allow to use master fonts containing ``CFF2`` table when building VF (1816).
- [ttLib] Make ``recalcBBoxes`` option work also with ``CFF2`` table (1816).
- [feaLib] Don't reset ``lookupflag`` in lookups defined inside feature blocks.
They will now inherit the current ``lookupflag`` of the feature. This is what
Adobe ``makeotf`` also does in this case (1815).
- [feaLib] Fixed bug with mixed single/multiple substitutions. If a single substitution
involved a glyph class, we were incorrectly using only the first glyph in the class
(1814).

4.2.5

---------------------------

- [feaLib] Do not fail on duplicate multiple substitutions, only warn (1811).
- [subset] Optimize SinglePos subtables to Format 1 if all ValueRecords are the same
(1802).

4.2.4

---------------------------

- [unicodedata] Update RTL_SCRIPTS for Unicode 11 and 12.

4.2.3

---------------------------

- [otTables] Fixed bug when splitting `MarkBasePos` subtables as offsets overflow.
The mark class values in the split subtable were not being updated, leading to
invalid mark-base attachments (1797, googlefonts/noto-source145).
- [feaLib] Only log a warning instead of error when features contain duplicate
substitutions (1767).
- [glifLib] Strip XML comments when parsing with lxml (1784, 1785).

4.2.2

---------------------------

- [subset] Fixed issue with subsetting FeatureVariations table when the index
of features changes as features get dropped. The feature index need to be
remapped to point to index of the remaining features (1777, 1782).
- [fontBuilder] Added `addFeatureVariations` method to `FontBuilder` class. This
is a shorthand for calling `featureVars.addFeatureVariations` on the builder's
TTFont object (1781).
- [glyf] Fixed the flags bug in glyph.drawPoints() like we did for glyph.draw()
(1771, 1774).

4.2.1

---------------------------

- [glyf] Use the ``flagOnCurve`` bit mask in ``glyph.draw()``, so that we ignore
the ``overlap`` flag that may be set when instantiating variable fonts (1771).

4.2.0

---------------------------

- [pens] Added the following pens:

* ``roundingPen.RoundingPen``: filter pen that rounds coordinates and components'
 offsets to integer;
* ``roundingPen.RoundingPointPen``: like the above, but using PointPen protocol.
* ``filterPen.FilterPointPen``: base class for filter point pens;
* ``transformPen.TransformPointPen``: filter point pen to apply affine transform;
* ``recordingPen.RecordingPointPen``: records and replays point-pen commands.

- [ttGlyphPen] Always round float coordinates and component offsets to integers
(1763).
- [ufoLib] When converting kerning groups from UFO2 to UFO3, avoid confusing
groups with the same name as one of the glyphs (1761, 1762,
unified-font-object/ufo-spec98).

4.1.0

---------------------------

- [instancer] Implemented restricting axis ranges (level 3 partial instancing).
You can now pass ``{axis_tag: (min, max)}`` tuples as input to the
``instantiateVariableFont`` function. Note that changing the default axis
position is not supported yet. The command-line script also accepts axis ranges
in the form of colon-separated float values, e.g. ``wght=400:700`` (1753, 1537).
- [instancer] Never drop STAT ``DesignAxis`` records, but only prune out-of-range
``AxisValue`` records.
- [otBase/otTables] Enforce that VarStore.RegionAxisCount == fvar.axisCount, even
when regions list is empty to appease OTS < v8.0 (1752).
- [designspaceLib] Defined new ``processing`` attribute for ``<rules>`` element,
with values "first" or "last", plus other editorial changes to DesignSpace
specification. Bumped format version to 4.1 (1750).
- [varLib] Improved error message when masters' glyph orders do not match (1758,
1759).
- [featureVars] Allow to specify custom feature tag in ``addFeatureVariations``;
allow said feature to already exist, in which case we append new lookup indices
to existing features. Implemented ``<rules>`` attribute ``processing`` according to
DesignSpace specification update in 1750. Depending on this flag, we generate
either an 'rvrn' (always processed first) or a 'rclt' feature (follows lookup order,
therefore last) (1747, 1625, 1371).
- [ttCollection] Added support for context manager auto-closing via ``with`` statement
like with ``TTFont`` (1751).
- [unicodedata] Require unicodedata2 >= 12.1.0.
- [py2.py3] Removed yet more PY2 vestiges (1743).
- [_n_a_m_e] Fixed issue when comparing NameRecords with different string types (1742).
- [fixedTools] Changed ``fixedToFloat`` to not do any rounding but simply return
``value / (1 << precisionBits)``. Added ``floatToFixedToStr`` and
``strToFixedToFloat`` functions to be used when loading from or dumping to XML.
Fixed values (e.g. fvar axes and instance coordinates, avar mappings, etc.) are
are now stored as un-rounded decimal floats upon decompiling (1740, 737).
- [feaLib] Fixed handling of multiple ``LigatureCaret`` statements for the same glyph.
Only the first rule per glyph is used, additional ones are ignored (1733).
Links

@pyup-bot
Copy link
Contributor Author

Closing this in favor of #275

@pyup-bot pyup-bot closed this Feb 17, 2020
@anthrotype anthrotype deleted the pyup-scheduled-update-2020-02-10 branch February 17, 2020 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant