Fonttools

Latest version: v4.53.0

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

Scan your dependencies

Page 27 of 36

3.24.1

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

- [varLib] Don't remap the same ``DeviceTable`` twice in VarStore optimizer
(1206).
- [varLib] Add ``--disable-iup`` option to ``fonttools varLib`` script,
and a ``optimize=True`` keyword argument to ``varLib.build`` function,
to optionally disable IUP optimization while building varfonts.
- [ttCollection] Fixed issue while decompiling ttc with python3 (1207).

3.24.0

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

- [ttGlyphPen] Decompose composite glyphs if any components' transform is too
large to fit a ``F2Dot14`` value, or clamp transform values that are
(almost) equal to +2.0 to make them fit and avoid decomposing (1200,
1204, 1205).
- [ttx] Added new ``-g`` option to dump glyphs from the ``glyf`` table
splitted as individual ttx files (153, 1035, 1132, 1202).
- Copied ``ufoLib.filenames`` module to ``fontTools.misc.filenames``, used
for the ttx split-glyphs option (1202).
- [feaLib] Added support for ``cvParameters`` blocks in Character Variant
feautures ``cv01-cv99`` (860, 1169).
- [Snippets] Added ``checksum.py`` script to generate/check SHA1 hash of
ttx files (1197).
- [varLib.mutator] Fixed issue while instantiating some variable fonts
whereby the horizontal advance width computed from ``gvar`` phantom points
could turn up to be negative (1198).
- [varLib/subset] Fixed issue with subsetting GPOS variation data not
picking up ``ValueRecord`` ``Device`` objects (54fd71f).
- [feaLib/voltLib] In all AST elements, the ``location`` is no longer a
required positional argument, but an optional kewyord argument (defaults
to ``None``). This will make it easier to construct feature AST from
code (1201).

3.23.0

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

- [designspaceLib] Added an optional ``lib`` element to the designspace as a
whole, as well as to the instance elements, to store arbitrary data in a
property list dictionary, similar to the UFO's ``lib``. Added an optional
``font`` attribute to the ``SourceDescriptor``, to allow operating on
in-memory font objects (1175).
- [cffLib] Fixed issue with lazy-loading of attributes when attempting to
set the CFF TopDict.Encoding (1177, 1187).
- [ttx] Fixed regression introduced in 3.22.0 that affected the split tables
``-s`` option (1188).
- [feaLib] Added ``IncludedFeaNotFound`` custom exception subclass, raised
when an included feature file cannot be found (1186).
- [otTables] Changed ``VarIdxMap`` to use glyph names internally instead of
glyph indexes. The old ttx dumps of HVAR/VVAR tables that contain indexes
can still be imported (21cbab8, 38a0ffb).
- [varLib] Implemented VarStore optimizer (1184).
- [subset] Implemented pruning of GDEF VarStore, HVAR and MVAR (1179).
- [sfnt] Restore backward compatiblity with ``numFonts`` attribute of
``SFNTReader`` object (1181).
- [merge] Initial support for merging ``LangSysRecords`` (1180).
- [ttCollection] don't seek(0) when writing to possibly unseekable strems.
- [subset] Keep all ``--name-IDs`` from 0 to 6 by default (1170, 605, 114).
- [cffLib] Added ``width`` module to calculate optimal CFF default and
nominal glyph widths.
- [varLib] Don’t fail if STAT already in the master fonts (1166).

3.22.0

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

- [subset] Support subsetting ``endchar`` acting as ``seac``-like components
in ``CFF`` (fixes 1162).
- [feaLib] Allow to build from pre-parsed ``ast.FeatureFile`` object.
Added ``tables`` argument to only build some tables instead of all (1159,
1163).
- [textTools] Replaced ``safeEval`` with ``ast.literal_eval`` (1139).
- [feaLib] Added option to the parser to not resolve ``include`` statements
(1154).
- [ttLib] Added new ``ttCollection`` module to read/write TrueType and
OpenType Collections. Exports a ``TTCollection`` class with a ``fonts``
attribute containing a list of ``TTFont`` instances, the methods ``save``
and ``saveXML``, plus some list-like methods. The ``importXML`` method is
not implemented yet (17).
- [unicodeadata] Added ``ot_tag_to_script`` function that converts from
OpenType script tag to Unicode script code.
- Added new ``designspaceLib`` subpackage, originally from Erik Van Blokland's
``designSpaceDocument``: https://github.com/LettError/designSpaceDocument
NOTE: this is not yet used internally by varLib, and the API may be subject
to changes (911, 1110, LettError/designSpaceDocument28).
- Added new FontTools icon images (8ee7c32).
- [unicodedata] Added ``script_horizontal_direction`` function that returns
either "LTR" or "RTL" given a unicode script code.
- [otConverters] Don't write descriptive name string as XML comment if the
NameID value is 0 (== NULL) (1151, 1152).
- [unicodedata] Add ``ot_tags_from_script`` function to get the list of
OpenType script tags associated with unicode script code (1150).
- [feaLib] Don't error when "enumerated" kern pairs conflict with preceding
single pairs; emit warning and chose the first value (1147, 1148).
- [loggingTools] In ``CapturingLogHandler.assertRegex`` method, match the
fully formatted log message.
- [sbix] Fixed TypeError when concatenating str and bytes (1154).
- [bezierTools] Implemented cusp support and removed ``approximate_fallback``
arg in ``calcQuadraticArcLength``. Added ``calcCubicArcLength`` (1142).

3.21.2

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

- [varLib] Fixed merging PairPos Format1/2 with missing subtables (1125).

3.21.1

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

- [feaLib] Allow mixed single/multiple substitutions (612)
- Added missing ``*.afm`` test assets to MAINFEST.in (1137).
- Fixed dumping ``SVG`` tables containing color palettes (1124).

Page 27 of 36

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.