pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/fonts/py-fonttools py-fonttools: updated to 4.2.2

branches:  trunk
changeset: 345544:c82dae434408
user:      adam <>
date:      Sat Dec 14 10:35:17 2019 +0000

py-fonttools: updated to 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.
- [fontBuilder] Added `addFeatureVariations` method to `FontBuilder` class. This
  is a shorthand for calling `featureVars.addFeatureVariations` on the builder's
  TTFont object.
- [glyf] Fixed the flags bug in glyph.drawPoints() like we did for glyph.draw()

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

- [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
- [ufoLib] When converting kerning groups from UFO2 to UFO3, avoid confusing
  groups with the same name as one of the glyphs

- [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``.
- [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.
- [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.
- [varLib] Improved error message when masters' glyph orders do not match
- [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. Depending on this flag, we generate
  either an 'rvrn' (always processed first) or a 'rclt' feature (follows lookup order,
  therefore last).
- [ttCollection] Added support for context manager auto-closing via ``with`` statement
  like with ``TTFont``.
- [unicodedata] Require unicodedata2 >= 12.1.0.
- [py2.py3] Removed yet more PY2 vestiges.
- [_n_a_m_e] Fixed issue when comparing NameRecords with different string types.
- [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.
- [feaLib] Fixed handling of multiple ``LigatureCaret`` statements for the same glyph.
  Only the first rule per glyph is used, additional ones are ignored.

- [voltLib] Added support for ``ALL`` and ``NONE`` in ``PROCESS_MARKS``.
- [Silf] Fixed issue in ``Silf`` table compilation and decompilation regarding str vs
  bytes in python3.
- [merge] Handle duplicate glyph names better: instead of appending font index to
  all glyph names, use similar code like we use in ``post`` and ``CFF`` tables.

- [otTables] Support fixing offset overflows in ``MultipleSubst`` lookup subtables
- [subset] Prune empty strikes in ``EBDT`` and ``CBDT`` table data.
- [pens] Fixed issue in ``PointToSegmentPen`` when last point of closed contour has
  same coordinates as the starting point and was incorrectly dropped.
- [Graphite] Fixed ``Sill`` table output to pass OTS.
- [name] Added ``removeNames`` method to ``table__n_a_m_e`` class.
- [ttLib] Added aliases for renamed entries ``ascender`` and ``descender`` in
  ``hhea`` table.

- NOTE: The v4.x version series only supports Python 3.6 or greater. You can keep
  using fonttools 3.x if you need support for Python 2.
- [py23] Removed all the python2-only code since it is no longer reachable, thus
  unused; only the Python3 symbols were kept, but these are no-op. The module is now
  DEPRECATED and will removed in the future.
- [ttLib] Fixed UnboundLocalError for empty loca/glyph tables. Also, allow
  the glyf table to be incomplete when dumping to XML.
- [varLib.models] Fixed KeyError while sorting masters and there are no on-axis for
  a given axis (38a8eb0e).
- [cffLib] Make sure glyph names are unique.
- [feaLib] Fix feature parser to correctly handle octal numbers


 fonts/py-fonttools/Makefile |   6 ++++--
 fonts/py-fonttools/PLIST    |   8 +++++++-
 fonts/py-fonttools/distinfo |  10 +++++-----
 3 files changed, 16 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r 634e33289366 -r c82dae434408 fonts/py-fonttools/Makefile
--- a/fonts/py-fonttools/Makefile       Sat Dec 14 10:27:04 2019 +0000
+++ b/fonts/py-fonttools/Makefile       Sat Dec 14 10:35:17 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.58 2019/07/04 12:09:08 adam Exp $
+# $NetBSD: Makefile,v 1.59 2019/12/14 10:35:17 adam Exp $
-DISTNAME=      fonttools-3.43.1
+DISTNAME=      fonttools-4.2.2
 CATEGORIES=    fonts python
@@ -20,6 +20,8 @@
 SUBST_CLASSES+=                man       pre-configure     Fixing man page installation path.
diff -r 634e33289366 -r c82dae434408 fonts/py-fonttools/PLIST
--- a/fonts/py-fonttools/PLIST  Sat Dec 14 10:27:04 2019 +0000
+++ b/fonts/py-fonttools/PLIST  Sat Dec 14 10:35:17 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.26 2019/04/30 07:55:33 adam Exp $
+@comment $NetBSD: PLIST,v 1.27 2019/12/14 10:35:17 adam Exp $
@@ -213,6 +213,9 @@
@@ -637,6 +640,9 @@
diff -r 634e33289366 -r c82dae434408 fonts/py-fonttools/distinfo
--- a/fonts/py-fonttools/distinfo       Sat Dec 14 10:27:04 2019 +0000
+++ b/fonts/py-fonttools/distinfo       Sat Dec 14 10:35:17 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.38 2019/07/04 12:09:08 adam Exp $
+$NetBSD: distinfo,v 1.39 2019/12/14 10:35:17 adam Exp $
-SHA1 ( = d1e9204262298983088e2fdffe1154b8ff20cda7
-RMD160 ( = dacfc694e2dd4297a2e20db6a665afcbd78b7d7b
-SHA512 ( = 3cb44b084f8ed2c2a948e89022656095928821bd323d698c6c393d15bae837ae149105c7e95ff8761e9735f5f777c00db5ed5e4f917b1289e6c33f4e406b3b46
-Size ( = 3037094 bytes
+SHA1 ( = 8425da95bd6e375c56e00b822bfc211b8bc21935
+RMD160 ( = 193eeb85f40a8cc814be9392f8130dee1a25dc88
+SHA512 ( = 2534eacbd2dc844de34b5d422cc89e66ed7ce58e36df2f9de59414d9fe8743744cd82faa1de6da3849d0bc07d6ba1bc4b8bd709b2db42a53afb9c2e131e9cf33
+Size ( = 3739029 bytes

Home | Main Index | Thread Index | Old Index