Fonttools

Latest version: v4.53.0

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

Scan your dependencies

Page 26 of 36

3.28.0

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

- [featureVars] Added experimental module to build ``FeatureVariations``
tables. Still needs to be hooked up to ``varLib.build`` (1240).
- [fixedTools] Added ``otRound`` to round floats to nearest integer towards
positive Infinity. This is now used where we deal with visual data like X/Y
coordinates, advance widths/heights, variation deltas, and similar (1274,
1248).
- [subset] Improved GSUB closure memoize algorithm.
- [varLib.models] Fixed regression in model resolution (180124, 1269).
- [feaLib.ast] Fixed error when converting ``SubtableStatement`` to string
(1275).
- [varLib.mutator] Set ``OS/2.usWeightClass`` and ``usWidthClass``, and
``post.italicAngle`` based on the 'wght', 'wdth' and 'slnt' axis values
(1276, 1264).
- [py23/loggingTools] Don't automatically set ``logging.lastResort`` handler
on py27. Moved ``LastResortLogger`` to the ``loggingTools`` module (1277).

3.27.1

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

- [ttGlyphPen] Issue a warning and skip building non-existing components
(https://github.com/googlei18n/fontmake/issues/411).
- [tests] Fixed issue running ttx_test.py from a tagged commit.

3.27.0

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

- [designspaceLib] Added new ``conditionSet`` element to ``rule`` element in
designspace document. Bumped ``format`` attribute to ``4.0`` (previously,
it was formatted as an integer). Removed ``checkDefault``, ``checkAxes``
methods, and any kind of guessing about the axes when the ``<axes>`` element
is missing. The default master is expected at the intersection of all default
values for each axis (1254, 1255, 1267).
- [cffLib] Fixed issues when compiling CFF2 or converting from CFF when the
font has an FDArray (1211, 1271).
- [varLib] Avoid attempting to build ``cvar`` table when ``glyf`` table is not
present, as is the case for CFF2 fonts.
- [subset] Handle None coverages in MarkGlyphSets; revert commit 02616ab that
sets empty Coverage tables in MarkGlyphSets to None, to make OTS happy.
- [ttFont] Allow to build glyph order from ``maxp.numGlyphs`` when ``post`` or
``cmap`` are missing.
- [ttFont] Added ``__len__`` method to ``_TTGlyphSet``.
- [glyf] Ensure ``GlyphCoordinates`` never overflow signed shorts (1230).
- [py23] Added alias for ``itertools.izip`` shadowing the built-in ``zip``.
- [loggingTools] Memoize ``log`` property of ``LogMixin`` class (fbab12).
- [ttx] Impoved test coverage (1261).
- [Snippets] Addded script to append a suffix to all family names in a font.
- [varLib.plot] Make it work with matplotlib >= 2.1 (b38e2b).

3.26.0

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

- [designspace] Added a new optional ``layer`` attribute to the source element,
and a corresponding ``layerName`` attribute to the ``SourceDescriptor``
object (1253).
Added ``conditionset`` element to the ``rule`` element to the spec, but not
implemented in designspace reader/writer yet (1254).
- [varLib.models] Refine modeling one last time (0ecf5c5).
- [otBase] Fixed sharing of tables referred to by different offset sizes
(795f2f9).
- [subset] Don't drop a GDEF that only has VarStore (fc819d6). Set to None
empty Coverage tables in MarkGlyphSets (02616ab).
- [varLib]: Added ``--master-finder`` command-line option (1249).
- [varLib.mutator] Prune fvar nameIDs from instance's name table (1245).
- [otTables] Allow decompiling bad ClassDef tables with invalid format, with
warning (1236).
- [varLib] Make STAT v1.2 and reuse nameIDs from fvar table (1242).
- [varLib.plot] Show master locations. Set axis limits to -1, +1.
- [subset] Handle HVAR direct mapping. Passthrough 'cvar'.
Added ``--font-number`` command-line option for collections.
- [t1Lib] Allow a text encoding to be specified when parsing a Type 1 font
(1234). Added ``kind`` argument to T1Font constructor (c5c161c).
- [ttLib] Added context manager API to ``TTFont`` class, so it can be used in
``with`` statements to auto-close the file when exiting the context (1232).

3.25.0

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

- [varLib] Improved support-resolution algorithm. Previously, the on-axis
masters would always cut the space. They don't anymore. That's more
consistent, and fixes the main issue Erik showed at TYPO Labs 2017.
Any varfont built that had an unusual master configuration will change
when rebuilt (42bef17, a523a697,
https://github.com/googlei18n/fontmake/issues/264).
- [varLib.models] Added a ``main()`` entry point, that takes positions and
prints model results.
- [varLib.plot] Added new module to plot a designspace's
VariationModel. Requires ``matplotlib``.
- [varLib.mutator] Added -o option to specify output file path (2ef60fa).
- [otTables] Fixed IndexError while pruning of HVAR pre-write (6b6c34a).
- [varLib.models] Convert delta array to floats if values overflows signed
short integer (0055f94).

3.24.2

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

- [otBase] Don't fail during ``ValueRecord`` copy if src has more items.
We drop hinting in the subsetter by simply changing ValueFormat, without
cleaning up the actual ValueRecords. This was causing assertion error if
a variable font was subsetted without hinting and then passed directly to
the mutator for instantiation without first it saving to disk.

Page 26 of 36

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.