Fonttools

Latest version: v4.55.3

Safety actively analyzes 688896 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 23 of 37

3.43.0

Not secure
----------------------------

- [woff2] Added support for compressing/decompressing WOFF2 fonts with non-transformed
``glyf`` and ``loca`` tables, as well as with transformed ``hmtx`` table.
Removed ``Snippets/woff2_compress.py`` and ``Snippets/woff2_decompress.py`` scripts,
and replaced them with a new console entry point ``fonttools ttLib.woff2``
that provides two sub-commands ``compress`` and ``decompress``.
- [varLib.cff] Fixed bug when merging CFF2 ``PrivateDicts``. The ``PrivateDict``
data from the first region font was incorrecty used for all subsequent fonts.
The bug would only affect variable CFF2 fonts with hinting (1643, 1644).
Also, fixed a merging bug when VF masters have no blends or marking glyphs (1632,
1642).
- [loggingTools] Removed unused backport of ``LastResortLogger`` class.
- [subset] Gracefully handle partial MATH table (1635).
- [featureVars] Avoid duplicate references to ``rvrn`` feature record in
``DefaultLangSys`` tables when calling ``addFeatureVariations`` on a font that
does not already have a ``GSUB`` table (aa8a5bc6).
- [varLib] Fixed merging of class-based kerning. Before, the process could introduce
rogue kerning values and variations for random classes against class zero (everything
not otherwise classed).
- [varLib] Fixed merging GPOS tables from master fonts with different number of
``SinglePos`` subtables (1621, 1641).
- [unicodedata] Updated Blocks, Scripts and ScriptExtensions to Unicode 12.1.

3.42.0

Not secure
----------------------------

- [OS/2] Fixed sign of ``fsType``: it should be ``uint16``, not ``int16`` (1619).
- [subset] Skip out-of-range class values in mark attachment (1478).
- [fontBuilder] Add an empty ``DSIG`` table with ``setupDummyDSIG`` method (1621).
- [varLib.merger] Fixed bug whereby ``GDEF.GlyphClassDef`` were being dropped
when generating instance via ``varLib.mutator`` (1614).
- [varLib] Added command-line options ``-v`` and ``-q`` to configure logging (1613).
- [subset] Update font extents in head table (1612).
- [subset] Make --retain-gids truncate empty glyphs after the last non-empty glyph
(1611).
- [requirements] Updated ``unicodedata2`` backport for Unicode 12.0.

3.41.2

Not secure
----------------------------

- [cffLib] Fixed issue when importing a ``CFF2`` variable font from XML, whereby
the VarStore state was not propagated to PrivateDict (1598).
- [varLib] Don't drop ``post`` glyph names when building CFF2 variable font (1609).

3.41.1

Not secure
----------------------------

- [designspaceLib] Added ``loadSourceFonts`` method to load source fonts using
custom opener function (1606).
- [head] Round font bounding box coordinates to integers to fix compile error
if CFF font has float coordinates (1604, 1605).
- [feaLib] Don't write ``None`` in ``ast.ValueRecord.asFea()`` (1599).
- [subset] Fixed issue ``AssertionError`` when using ``--desubroutinize`` option
(1590, 1594).
- [graphite] Fixed bug in ``Silf`` table's ``decompile`` method unmasked by
previous typo fix (1597). Decode languange code as UTF-8 in ``Sill`` table's
``decompile`` method (1600).

3.41.0

Not secure
----------------------------

- [varLib/cffLib] Added support for building ``CFF2`` variable font from sparse
masters, or masters with more than one model (multiple ``VarStore.VarData``).
In ``cffLib.specializer``, added support for ``CFF2`` CharStrings with
``blend`` operators (1547, 1591).
- [subset] Fixed subsetting ``HVAR`` and ``VVAR`` with ``--retain-gids`` option,
and when advances mapping is null while sidebearings mappings are non-null
(1587, 1588).
- Added ``otlLib.maxContextCalc`` module to compute ``OS/2.usMaxContext`` value.
Calculate it automatically when compiling features with feaLib. Added option
``--recalc-max-context`` to ``subset`` module (1582).
- [otBase/otTables] Fixed ``AttributeError`` on missing OT table fields after
importing font from TTX (1584).
- [graphite] Fixed typo ``Silf`` table's ``decompile`` method (1586).
- [otlLib] Better compress ``GPOS`` SinglePos (LookupType 1) subtables (1539).

3.40.0

Not secure
----------------------------

- [subset] Fixed error while subsetting ``VVAR`` with ``--retain-gids``
option (1552).
- [designspaceLib] Use up-to-date default location in ``findDefault`` method
(1554).
- [voltLib] Allow passing file-like object to Parser.
- [arrayTools/glyf] ``calcIntBounds`` (used to compute bounding boxes of glyf
table's glyphs) now uses ``otRound`` instead of ``round3`` (1566).
- [svgLib] Added support for converting more SVG shapes to path ``d`` strings
(ellipse, line, polyline), as well as support for ``transform`` attributes.
Only ``matrix`` transformations are currently supported (1564, 1564).
- [varLib] Added support for building ``VVAR`` table from ``vmtx`` and ``VORG``
tables (1551).
- [fontBuilder] Enable making CFF2 fonts with ``post`` table format 2 (1557).
- Fixed ``DeprecationWarning`` on invalid escape sequences (1562).

Page 23 of 37

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.