14.28.2 (released 2021-11-22) 2---------------------------- 3 4- [otlLib] Remove duplicates when building coverage (#2433). 5- [docs] Add interrogate configuration (#2443). 6- [docs] Remove comment about missing “start” optional argument to ``calcChecksum`` (#2448). 7- [cu2qu/cli] Adapt to the latest ufoLib2. 8- [subset] Support subsetting SVG table and remove it from the list of drop by default tables (#534). 9- [subset] add ``--pretty-svg`` option to pretty print SVG table contents (#2452). 10- [merge] Support merging ``CFF`` tables (CID-keyed ``CFF`` is still not supported) (#2447). 11- [merge] Support --output-file (#2447). 12- [docs] Split table docs into individual pages (#2444). 13- [feaLib] Forbid empty classes (#2446). 14- [docs] Improve documentation for fontTools.ttLib.ttFont (#2442). 15 164.28.1 (released 2021-11-08) 17---------------------------- 18 19- [subset] Fixed AttributeError while traversing a color glyph's Paint graph when there is no 20 LayerList, which is optional (#2441). 21 224.28.0 (released 2021-11-05) 23---------------------------- 24 25- Dropped support for EOL Python 3.6, require Python 3.7 (#2417). 26- [ufoLib/glifLib] Make filename-clash checks faster by using a set instead of a list (#2422). 27- [subset] Don't crash if optional ClipList and LayerList are ``None`` (empty) (#2424, 2439). 28- [OT-SVG] Removed support for old deprecated version 1 and embedded color palettes, 29 which were never officially part of the OpenType SVG spec. Upon compile, reuse offsets 30 to SVG documents that are identical (#2430). 31- [feaLib] Added support for Variable Feature File syntax. This is experimental and subject 32 to change until it is finalized in the Adobe FEA spec (#2432). 33- [unicodedata] Update Scripts/ScriptExtensions/Blocks to UnicodeData 14.0 (#2437). 34 354.27.1 (released 2021-09-23) 36---------------------------- 37 38- [otlLib] Fixed error when chained contextual lookup builder overflows (#2404, #2411). 39- [bezierTools] Fixed two floating-point bugs: one when computing `t` for a point 40 lying on an almost horizontal/vertical line; another when computing the intersection 41 point between a curve and a line (#2413). 42 434.27.0 (released 2021-09-14) 44---------------------------- 45 46- [ttLib/otTables] Cleaned up virtual GID handling: allow virtual GIDs in ``Coverage`` 47 and ``ClassDef`` readers; removed unused ``allowVID`` argument from ``TTFont`` 48 constructor, and ``requireReal`` argument in ``TTFont.getGlyphID`` method. 49 Make ``TTFont.setGlyphOrder`` clear reverse glyphOrder map, and assume ``glyphOrder`` 50 internal attribute is never modified outside setGlyphOrder; added ``TTFont.getGlyphNameMany`` 51 and ``getGlyphIDMany`` (#1536, #1654, #2334, #2398). 52- [py23] Dropped internal use of ``fontTools.py23`` module to fix deprecation warnings 53 in client code that imports from fontTools (#2234, #2399, #2400). 54- [subset] Fix subsetting COLRv1 clip boxes when font is loaded lazily (#2408). 55 564.26.2 (released 2021-08-09) 57---------------------------- 58 59- [otTables] Added missing ``CompositeMode.PLUS`` operator (#2390). 60 614.26.1 (released 2021-08-03) 62---------------------------- 63 64- [transform] Added ``transformVector`` and ``transformVectors`` methods to the 65 ``Transform`` class. Similar to ``transformPoint`` but ignore the translation 66 part (#2386). 67 684.26.0 (released 2021-08-03) 69---------------------------- 70 71- [xmlWriter] Default to ``"\n"`` for ``newlinestr`` instead of platform-specific 72 ``os.linesep`` (#2384). 73- [otData] Define COLRv1 ClipList and ClipBox (#2379). 74- [removeOverlaps/instancer] Added --ignore-overlap-errors option to work around 75 Skia PathOps.Simplify bug (#2382, #2363, google/fonts#3365). 76- NOTE: This will be the last version to support Python 3.6. FontTools will require 77 Python 3.7 or above from the next release (#2350) 78 794.25.2 (released 2021-07-26) 80---------------------------- 81 82- [COLRv1] Various changes to sync with the latest CORLv1 draft spec. In particular: 83 define COLR.VarIndexMap, remove/inline ColorIndex struct, add VarIndexBase to ``PaintVar*`` tables (#2372); 84 add reduced-precicion specialized transform Paints; 85 define Angle as fraction of half circle encoded as F2Dot14; 86 use FWORD (int16) for all Paint center coordinates; 87 change PaintTransform to have an offset to Affine2x3; 88- [ttLib] when importing XML, only set sfntVersion if the font has no reader and is empty (#2376) 89 904.25.1 (released 2021-07-16) 91---------------------------- 92 93- [ttGlyphPen] Fixed bug in ``TTGlyphPointPen``, whereby open contours (i.e. starting 94 with segmentType "move") would throw ``NotImplementedError``. They are now treated 95 as if they are closed, like with the ``TTGlyphPen`` (#2364, #2366). 96 974.25.0 (released 2021-07-05) 98---------------------------- 99 100- [tfmLib] Added new library for parsing TeX Font Metric (TFM) files (#2354). 101- [TupleVariation] Make shared tuples order deterministic on python < 3.7 where 102 Counter (subclass of dict) doesn't remember insertion order (#2351, #2353). 103- [otData] Renamed COLRv1 structs to remove 'v1' suffix and match the updated draft 104 spec: 'LayerV1List' -> 'LayerList', 'BaseGlyphV1List' -> 'BaseGlyphList', 105 'BaseGlyphV1Record' -> 'BaseGlyphPaintRecord' (#2346). 106 Added 8 new ``PaintScale*`` tables: with/without centers, uniform vs non-uniform. 107 Added ``*AroundCenter`` variants to ``PaintRotate`` and ``PaintSkew``: the default 108 versions no longer have centerX/Y, but default to origin. 109 ``PaintRotate``, ``PaintSkew`` and ``PaintComposite`` formats were re-numbered. 110 NOTE: these are breaking changes; clients using the experimental COLRv1 API will 111 have to be updated (#2348). 112- [pointPens] Allow ``GuessSmoothPointPen`` to accept a tolerance. Fixed call to 113 ``math.atan2`` with x/y parameters inverted. Sync the code with fontPens (#2344). 114- [post] Fixed parsing ``post`` table format 2.0 when it contains extra garbage 115 at the end of the stringData array (#2314). 116- [subset] drop empty features unless 'size' with FeatureParams table (#2324). 117- [otlLib] Added ``otlLib.optimize`` module; added GPOS compaction algorithm. 118 The compaction can be run on existing fonts with ``fonttools otlLib.optimize`` 119 or using the snippet ``compact_gpos.py``. There's experimental support for 120 compacting fonts at compilation time using an environment variable, but that 121 might be removed later (#2326). 122 1234.24.4 (released 2021-05-25) 124---------------------------- 125 126- [subset/instancer] Fixed ``AttributeError`` when instantiating a VF that 127 contains GPOS ValueRecords with ``Device`` tables but without the respective 128 non-Device values (e.g. ``XAdvDevice`` without ``XAdvance``). When not 129 explicitly set, the latter are assumed to be 0 (#2323). 130 1314.24.3 (released 2021-05-20) 132---------------------------- 133 134- [otTables] Fixed ``AttributeError`` in methods that split LigatureSubst, 135 MultipleSubst and AlternateSubst subtables when an offset overflow occurs. 136 The ``Format`` attribute was removed in v4.22.0 (#2319). 137 1384.24.2 (released 2021-05-20) 139---------------------------- 140 141- [ttGlyphPen] Fixed typing annotation of TTGlyphPen glyphSet parameter (#2315). 142- Fixed two instances of DeprecationWarning: invalid escape sequence (#2311). 143 1444.24.1 (released 2021-05-20) 145---------------------------- 146 147- [subset] Fixed AttributeError when SinglePos subtable has None Value (ValueFormat 0) 148 (#2312, #2313). 149 1504.24.0 (released 2021-05-17) 151---------------------------- 152 153- [pens] Add ``ttGlyphPen.TTGlyphPointPen`` similar to ``TTGlyphPen`` (#2205). 154 1554.23.1 (released 2021-05-14) 156---------------------------- 157 158- [subset] Fix ``KeyError`` after subsetting ``COLR`` table that initially contains 159 both v0 and v1 color glyphs when the subset only requested v1 glyphs; we were 160 not pruning the v0 portion of the table (#2308). 161- [colorLib] Set ``LayerV1List`` attribute to ``None`` when empty, it's optional 162 in CORLv1 (#2308). 163 1644.23.0 (released 2021-05-13) 165---------------------------- 166 167- [designspaceLib] Allow to use ``\\UNC`` absolute paths on Windows (#2299, #2306). 168- [varLib.merger] Fixed bug where ``VarLibMergeError`` was raised with incorrect 169 parameters (#2300). 170- [feaLib] Allow substituting a glyph class with ``NULL`` to delete multiple glyphs 171 (#2303). 172- [glyf] Fixed ``NameError`` exception in ``getPhantomPoints`` (#2295, #2305). 173- [removeOverlaps] Retry pathops.simplify after rounding path coordinates to integers 174 if it fails the first time using floats, to work around a rare and hard to debug 175 Skia bug (#2288). 176- [varLib] Added support for building, reading, writing and optimizing 32-bit 177 ``ItemVariationStore`` as used in COLRv1 table (#2285). 178- [otBase/otConverters] Add array readers/writers for int types (#2285). 179- [feaLib] Allow more than one lookahead glyph/class in contextual positioning with 180 "value at end" (#2293, #2294). 181- [COLRv1] Default varIdx should be 0xFFFFFFFF (#2297, #2298). 182- [pens] Make RecordingPointPen actually pass on identifiers; replace asserts with 183 explicit ``PenError`` exception (#2284). 184- [mutator] Round lsb for CF2 fonts as well (#2286). 185 1864.22.1 (released 2021-04-26) 187---------------------------- 188 189- [feaLib] Skip references to named lookups if the lookup block definition 190 is empty, similarly to makeotf. This also fixes an ``AttributeError`` while 191 generating ``aalt`` feature (#2276, #2277). 192- [subset] Fixed bug with ``--no-hinting`` implementation for Device tables (#2272, 193 #2275). The previous code was alwyas dropping Device tables if no-hinting was 194 requested, but some Device tables (DeltaFormat=0x8000) are also used to encode 195 variation indices and need to be retained. 196- [otBase] Fixed bug in getting the ValueRecordSize when decompiling ``MVAR`` 197 table with ``lazy=True`` (#2273, #2274). 198- [varLib/glyf/gvar] Optimized and simplified ``GlyphCoordinates`` and 199 ``TupleVariation`` classes, use ``bytearray`` where possible, refactored 200 phantom-points calculations. We measured about 30% speedup in total time 201 of loading master ttfs, building gvar, and saving (#2261, #2266). 202- [subset] Fixed ``AssertionError`` while pruning unused CPAL palettes when 203 ``0xFFFF`` is present (#2257, #2259). 204 2054.22.0 (released 2021-04-01) 206---------------------------- 207 208- [ttLib] Remove .Format from Coverage, ClassDef, SingleSubst, LigatureSubst, 209 AlternateSubst, MultipleSubst (#2238). 210 ATTENTION: This will change your TTX dumps! 211- [misc.arrayTools] move Vector to its own submodule, and rewrite as a tuple 212 subclass (#2201). 213- [docs] Added a terminology section for varLib (#2209). 214- [varLib] Move rounding to VariationModel, to avoid error accumulation from 215 multiple deltas (#2214) 216- [varLib] Explain merge errors in more human-friendly terms (#2223, #2226) 217- [otlLib] Correct some documentation (#2225) 218- [varLib/otlLib] Allow merging into VariationFont without first saving GPOS 219 PairPos2 (#2229) 220- [subset] Improve PairPosFormat2 subsetting (#2221) 221- [ttLib] TTFont.save: create file on disk as late as possible (#2253) 222- [cffLib] Add missing CFF2 dict operators LanguageGroup and ExpansionFactor 223 (#2249) 224 ATTENTION: This will change your TTX dumps! 225 2264.21.1 (released 2021-02-26) 227---------------------------- 228 229- [pens] Reverted breaking change that turned ``AbstractPen`` and ``AbstractPointPen`` 230 into abstract base classes (#2164, #2198). 231 2324.21.0 (released 2021-02-26) 233---------------------------- 234 235- [feaLib] Indent anchor statements in ``asFea()`` to make them more legible and 236 diff-able (#2193). 237- [pens] Turn ``AbstractPen`` and ``AbstractPointPen`` into abstract base classes 238 (#2164). 239- [feaLib] Added support for parsing and building ``STAT`` table from AFDKO feature 240 files (#2039). 241- [instancer] Added option to update name table of generated instance using ``STAT`` 242 table's axis values (#2189). 243- [bezierTools] Added functions to compute bezier point-at-time, as well as line-line, 244 curve-line and curve-curve intersections (#2192). 245 2464.20.0 (released 2021-02-15) 247---------------------------- 248 249- [COLRv1] Added ``unbuildColrV1`` to deconstruct COLRv1 otTables to raw json-able 250 data structure; it does the reverse of ``buildColrV1`` (#2171). 251- [feaLib] Allow ``sub X by NULL`` sequence to delete a glyph (#2170). 252- [arrayTools] Fixed ``Vector`` division (#2173). 253- [COLRv1] Define new ``PaintSweepGradient`` (#2172). 254- [otTables] Moved ``Paint.Format`` enum class outside of ``Paint`` class definition, 255 now named ``PaintFormat``. It was clashing with paint instance ``Format`` attribute 256 and thus was breaking lazy load of COLR table which relies on magic ``__getattr__`` 257 (#2175). 258- [COLRv1] Replace hand-coded builder functions with otData-driven dynamic 259 implementation (#2181). 260- [COLRv1] Define additional static (non-variable) Paint formats (#2181). 261- [subset] Added support for subsetting COLR v1 and CPAL tables (#2174, #2177). 262- [fontBuilder] Allow ``setupFvar`` to optionally take ``designspaceLib.AxisDescriptor`` 263 objects. Added new ``setupAvar`` method. Support localised names for axes and 264 named instances (#2185). 265 2664.19.1 (released 2021-01-28) 267---------------------------- 268 269- [woff2] An initial off-curve point with an overlap flag now stays an off-curve 270 point after compression. 271 2724.19.0 (released 2021-01-25) 273---------------------------- 274 275- [codecs] Handle ``errors`` parameter different from 'strict' for the custom 276 extended mac encodings (#2137, #2132). 277- [featureVars] Raise better error message when a script is missing the required 278 default language system (#2154). 279- [COLRv1] Avoid abrupt change caused by rounding ``PaintRadialGradient.c0`` when 280 the start circle almost touches the end circle's perimeter (#2148). 281- [COLRv1] Support building unlimited lists of paints as 255-ary trees of 282 ``PaintColrLayers`` tables (#2153). 283- [subset] Prune redundant format-12 cmap subtables when all non-BMP characters 284 are dropped (#2146). 285- [basePen] Raise ``MissingComponentError`` instead of bare ``KeyError`` when a 286 referenced component is missing (#2145). 287 2884.18.2 (released 2020-12-16) 289---------------------------- 290 291- [COLRv1] Implemented ``PaintTranslate`` paint format (#2129). 292- [varLib.cff] Fixed unbound local variable error (#1787). 293- [otlLib] Don't crash when creating OpenType class definitions if some glyphs 294 occur more than once (#2125). 295 2964.18.1 (released 2020-12-09) 297---------------------------- 298 299- [colorLib] Speed optimization for ``LayerV1ListBuilder`` (#2119). 300- [mutator] Fixed missing tab in ``interpolate_cff2_metrics`` (0957dc7a). 301 3024.18.0 (released 2020-12-04) 303---------------------------- 304 305- [COLRv1] Update to latest draft: added ``PaintRotate`` and ``PaintSkew`` (#2118). 306- [woff2] Support new ``brotlicffi`` bindings for PyPy (#2117). 307- [glifLib] Added ``expectContentsFile`` parameter to ``GlyphSet``, for use when 308 reading existing UFOs, to comply with the specification stating that a 309 ``contents.plist`` file must exist in a glyph set (#2114). 310- [subset] Allow ``LangSys`` tags in ``--layout-scripts`` option (#2112). For example: 311 ``--layout-scripts=arab.dflt,arab.URD,latn``; this will keep ``DefaultLangSys`` 312 and ``URD`` language for ``arab`` script, and all languages for ``latn`` script. 313- [varLib.interpolatable] Allow UFOs to be checked; report open paths, non existant 314 glyphs; add a ``--json`` option to produce a machine-readable list of 315 incompatibilities 316- [pens] Added ``QuartzPen`` to create ``CGPath`` from glyph outlines on macOS. 317 Requires pyobjc (#2107). 318- [feaLib] You can export ``FONTTOOLS_LOOKUP_DEBUGGING=1`` to enable feature file 319 debugging info stored in ``Debg`` table (#2106). 320- [otlLib] Build more efficient format 1 and format 2 contextual lookups whenever 321 possible (#2101). 322 3234.17.1 (released 2020-11-16) 324---------------------------- 325 326- [colorLib] Fixed regression in 4.17.0 when building COLR v0 table; when color 327 layers are stored in UFO lib plist, we can't distinguish tuples from lists so 328 we need to accept either types (e5439eb9, googlefonts/ufo2ft/issues#426). 329 3304.17.0 (released 2020-11-12) 331---------------------------- 332 333- [colorLib/otData] Updated to latest draft ``COLR`` v1 spec (#2092). 334- [svgLib] Fixed parsing error when arc commands' boolean flags are not separated 335 by space or comma (#2094). 336- [varLib] Interpret empty non-default glyphs as 'missing', if the default glyph is 337 not empty (#2082). 338- [feaLib.builder] Only stash lookup location for ``Debg`` if ``Builder.buildLookups_`` 339 has cooperated (#2065, #2067). 340- [varLib] Fixed bug in VarStore optimizer (#2073, #2083). 341- [varLib] Add designspace lib key for custom feavar feature tag (#2080). 342- Add HashPointPen adapted from psautohint. With this pen, a hash value of a glyph 343 can be computed, which can later be used to detect glyph changes (#2005). 344 3454.16.1 (released 2020-10-05) 346---------------------------- 347 348- [varLib.instancer] Fixed ``TypeError`` exception when instantiating a VF with 349 a GSUB table 1.1 in which ``FeatureVariations`` attribute is present but set to 350 ``None`` -- indicating that optional ``FeatureVariations`` is missing (#2077). 351- [glifLib] Make ``x`` and ``y`` attributes of the ``point`` element required 352 even when validation is turned off, and raise a meaningful ``GlifLibError`` 353 message when that happens (#2075). 354 3554.16.0 (released 2020-09-30) 356---------------------------- 357 358- [removeOverlaps] Added new module and ``removeOverlaps`` function that merges 359 overlapping contours and components in TrueType glyphs. It requires the 360 `skia-pathops <https://github.com/fonttools/skia-pathops>`__ module. 361 Note that removing overlaps invalidates the TrueType hinting (#2068). 362- [varLib.instancer] Added ``--remove-overlaps`` command-line option. 363 The ``overlap`` option in ``instantiateVariableFont`` now takes an ``OverlapMode`` 364 enum: 0: KEEP_AND_DONT_SET_FLAGS, 1: KEEP_AND_SET_FLAGS (default), and 2: REMOVE. 365 The latter is equivalent to calling ``removeOverlaps`` on the generated static 366 instance. The option continues to accept ``bool`` value for backward compatibility. 367 368 3694.15.0 (released 2020-09-21) 370---------------------------- 371 372- [plistlib] Added typing annotations to plistlib module. Set up mypy static 373 typechecker to run automatically on CI (#2061). 374- [ttLib] Implement private ``Debg`` table, a reverse-DNS namespaced JSON dict. 375- [feaLib] Optionally add an entry into the ``Debg`` table with the original 376 lookup name (if any), feature name / script / language combination (if any), 377 and original source filename and line location. Annotate the ttx output for 378 a lookup with the information from the Debg table (#2052). 379- [sfnt] Disabled checksum checking by default in ``SFNTReader`` (#2058). 380- [Docs] Document ``mtiLib`` module (#2027). 381- [varLib.interpolatable] Added checks for contour node count and operation type 382 of each node (#2054). 383- [ttLib] Added API to register custom table packer/unpacker classes (#2055). 384 3854.14.0 (released 2020-08-19) 386---------------------------- 387 388- [feaLib] Allow anonymous classes in LookupFlags definitions (#2037). 389- [Docs] Better document DesignSpace rules processing order (#2041). 390- [ttLib] Fixed 21-year old bug in ``maxp.maxComponentDepth`` calculation (#2044, 391 #2045). 392- [varLib.models] Fixed misspelled argument name in CLI entry point (81d0042a). 393- [subset] When subsetting GSUB v1.1, fixed TypeError by checking whether the 394 optional FeatureVariations table is present (e63ecc5b). 395- [Snippets] Added snippet to show how to decompose glyphs in a TTF (#2030). 396- [otlLib] Generate GSUB type 5 and GPOS type 7 contextual lookups where appropriate 397 (#2016). 398 3994.13.0 (released 2020-07-10) 400---------------------------- 401 402- [feaLib/otlLib] Moved lookup subtable builders from feaLib to otlLib; refactored 403 some common code (#2004, #2007). 404- [docs] Document otlLib module (#2009). 405- [glifLib] Fixed bug with some UFO .glif filenames clashing on case-insensitive 406 filesystems (#2001, #2002). 407- [colorLib] Updated COLRv1 implementation following changes in the draft spec: 408 (#2008, googlefonts/colr-gradients-spec#24). 409 4104.12.1 (released 2020-06-16) 411---------------------------- 412 413- [_n_a_m_e] Fixed error in ``addMultilingualName`` with one-character names. 414 Only attempt to recovered malformed UTF-16 data from a ``bytes`` string, 415 not from unicode ``str`` (#1997, #1998). 416 4174.12.0 (released 2020-06-09) 418---------------------------- 419 420- [otlLib/varLib] Ensure that the ``AxisNameID`` in the ``STAT`` and ``fvar`` 421 tables is grater than 255 as per OpenType spec (#1985, #1986). 422- [docs] Document more modules in ``fontTools.misc`` package: ``filenames``, 423 ``fixedTools``, ``intTools``, ``loggingTools``, ``macCreatorType``, ``macRes``, 424 ``plistlib`` (#1981). 425- [OS/2] Don't calculate whole sets of unicode codepoints, use faster and more memory 426 efficient ranges and bisect lookups (#1984). 427- [voltLib] Support writing back abstract syntax tree as VOLT data (#1983). 428- [voltLib] Accept DO_NOT_TOUCH_CMAP keyword (#1987). 429- [subset/merge] Fixed a namespace clash involving a private helper class (#1955). 430 4314.11.0 (released 2020-05-28) 432---------------------------- 433 434- [feaLib] Introduced ``includeDir`` parameter on Parser and IncludingLexer to 435 explicitly specify the directory to search when ``include()`` statements are 436 encountered (#1973). 437- [ufoLib] Silently delete duplicate glyphs within the same kerning group when reading 438 groups (#1970). 439- [ttLib] Set version of COLR table when decompiling COLRv1 (commit 9d8a7e2). 440 4414.10.2 (released 2020-05-20) 442---------------------------- 443 444- [sfnt] Fixed ``NameError: SimpleNamespace`` while reading TTC header. The regression 445 was introduced with 4.10.1 after removing ``py23`` star import. 446 4474.10.1 (released 2020-05-19) 448---------------------------- 449 450- [sfnt] Make ``SFNTReader`` pickleable even when TTFont is loaded with lazy=True 451 option and thus keeps a reference to an external file (#1962, #1967). 452- [feaLib.ast] Restore backward compatibility (broken in 4.10 with #1905) for 453 ``ChainContextPosStatement`` and ``ChainContextSubstStatement`` classes. 454 Make them accept either list of lookups or list of lists of lookups (#1961). 455- [docs] Document some modules in ``fontTools.misc`` package: ``arrayTools``, 456 ``bezierTools`` ``cliTools`` and ``eexec`` (#1956). 457- [ttLib._n_a_m_e] Fixed ``findMultilingualName()`` when name record's ``string`` is 458 encoded as bytes sequence (#1963). 459 4604.10.0 (released 2020-05-15) 461---------------------------- 462 463- [varLib] Allow feature variations to be active across the entire space (#1957). 464- [ufoLib] Added support for ``formatVersionMinor`` in UFO's ``fontinfo.plist`` and for 465 ``formatMinor`` attribute in GLIF file as discussed in unified-font-object/ufo-spec#78. 466 No changes in reading or writing UFOs until an upcoming (non-0) minor update of the 467 UFO specification is published (#1786). 468- [merge] Fixed merging fonts with different versions of ``OS/2`` table (#1865, #1952). 469- [subset] Fixed ``AttributeError`` while subsetting ``ContextSubst`` and ``ContextPos`` 470 Format 3 subtable (#1879, #1944). 471- [ttLib.table._m_e_t_a] if data happens to be ascii, emit comment in TTX (#1938). 472- [feaLib] Support multiple lookups per glyph position (#1905). 473- [psCharStrings] Use inheritance to avoid repeated code in initializer (#1932). 474- [Doc] Improved documentation for the following modules: ``afmLib`` (#1933), ``agl`` 475 (#1934), ``cffLib`` (#1935), ``cu2qu`` (#1937), ``encodings`` (#1940), ``feaLib`` 476 (#1941), ``merge`` (#1949). 477- [Doc] Split off developer-centric info to new page, making front page of docs more 478 user-focused. List all utilities and sub-modules with brief descriptions. 479 Make README more concise and focused (#1914). 480- [otlLib] Add function to build STAT table from high-level description (#1926). 481- [ttLib._n_a_m_e] Add ``findMultilingualName()`` method (#1921). 482- [unicodedata] Update ``RTL_SCRIPTS`` for Unicode 13.0 (#1925). 483- [gvar] Sort ``gvar`` XML output by glyph name, not glyph order (#1907, #1908). 484- [Doc] Added help options to ``fonttools`` command line tool (#1913, #1920). 485 Ensure all fonttools CLI tools have help documentation (#1948). 486- [ufoLib] Only write fontinfo.plist when there actually is content (#1911). 487 4884.9.0 (released 2020-04-29) 489--------------------------- 490 491- [subset] Fixed subsetting of FeatureVariations table. The subsetter no longer drops 492 FeatureVariationRecords that have empty substitutions as that will keep the search 493 going and thus change the logic. It will only drop empty records that occur at the 494 end of the FeatureVariationRecords array (#1881). 495- [subset] Remove FeatureVariations table and downgrade GSUB/GPOS to version 0x10000 496 when FeatureVariations contain no FeatureVariationRecords after subsetting (#1903). 497- [agl] Add support for legacy Adobe Glyph List of glyph names in ``fontTools.agl`` 498 (#1895). 499- [feaLib] Ignore superfluous script statements (#1883). 500- [feaLib] Hide traceback by default on ``fonttools feaLib`` command line. 501 Use ``--traceback`` option to show (#1898). 502- [feaLib] Check lookup index in chaining sub/pos lookups and print better error 503 message (#1896, #1897). 504- [feaLib] Fix building chained alt substitutions (#1902). 505- [Doc] Included all fontTools modules in the sphinx-generated documentation, and 506 published it to ReadTheDocs for continuous documentation of the fontTools project 507 (#1333). Check it out at https://fonttools.readthedocs.io/. Thanks to Chris Simpkins! 508- [transform] The ``Transform`` class is now subclass of ``typing.NamedTuple``. No 509 change in functionality (#1904). 510 511 5124.8.1 (released 2020-04-17) 513--------------------------- 514 515- [feaLib] Fixed ``AttributeError: 'NoneType' has no attribute 'getAlternateGlyphs'`` 516 when ``aalt`` feature references a chain contextual substitution lookup 517 (googlefonts/fontmake#648, #1878). 518 5194.8.0 (released 2020-04-16) 520--------------------------- 521 522- [feaLib] If Parser is initialized without a ``glyphNames`` parameter, it cannot 523 distinguish between a glyph name containing an hyphen, or a range of glyph names; 524 instead of raising an error, it now interprets them as literal glyph names, while 525 also outputting a logging warning to alert user about the ambiguity (#1768, #1870). 526- [feaLib] When serializing AST to string, emit spaces around hyphens that denote 527 ranges. Also, fixed an issue with CID ranges when round-tripping AST->string->AST 528 (#1872). 529- [Snippets/otf2ttf] In otf2ttf.py script update LSB in hmtx to match xMin (#1873). 530- [colorLib] Added experimental support for building ``COLR`` v1 tables as per 531 the `colr-gradients-spec <https://github.com/googlefonts/colr-gradients-spec/blob/master/colr-gradients-spec.md>`__ 532 draft proposal. **NOTE**: both the API and the XML dump of ``COLR`` v1 are 533 susceptible to change while the proposal is being discussed and formalized (#1822). 534 5354.7.0 (released 2020-04-03) 536--------------------------- 537 538- [cu2qu] Added ``fontTools.cu2qu`` package, imported from the original 539 `cu2qu <https://github.com/googlefonts/cu2qu>`__ project. The ``cu2qu.pens`` module 540 was moved to ``fontTools.pens.cu2quPen``. The optional cu2qu extension module 541 can be compiled by installing `Cython <https://cython.org/>`__ before installing 542 fonttools from source (i.e. git repo or sdist tarball). The wheel package that 543 is published on PyPI (i.e. the one ``pip`` downloads, unless ``--no-binary`` 544 option is used), will continue to be pure-Python for now (#1868). 545 5464.6.0 (released 2020-03-24) 547--------------------------- 548 549- [varLib] Added support for building variable ``BASE`` table version 1.1 (#1858). 550- [CPAL] Added ``fromRGBA`` method to ``Color`` class (#1861). 551 552 5534.5.0 (released 2020-03-20) 554--------------------------- 555 556- [designspaceLib] Added ``add{Axis,Source,Instance,Rule}Descriptor`` methods to 557 ``DesignSpaceDocument`` class, to initialize new descriptor objects using keyword 558 arguments, and at the same time append them to the current document (#1860). 559- [unicodedata] Update to Unicode 13.0 (#1859). 560 5614.4.3 (released 2020-03-13) 562--------------------------- 563 564- [varLib] Always build ``gvar`` table for TrueType-flavored Variable Fonts, 565 even if it contains no variation data. The table is required according to 566 the OpenType spec (#1855, #1857). 567 5684.4.2 (released 2020-03-12) 569--------------------------- 570 571- [ttx] Annotate ``LookupFlag`` in XML dump with comment explaining what bits 572 are set and what they mean (#1850). 573- [feaLib] Added more descriptive message to ``IncludedFeaNotFound`` error (#1842). 574 5754.4.1 (released 2020-02-26) 576--------------------------- 577 578- [woff2] Skip normalizing ``glyf`` and ``loca`` tables if these are missing from 579 a font (e.g. in NotoColorEmoji using ``CBDT/CBLC`` tables). 580- [timeTools] Use non-localized date parsing in ``timestampFromString``, to fix 581 error when non-English ``LC_TIME`` locale is set (#1838, #1839). 582- [fontBuilder] Make sure the CFF table generated by fontBuilder can be used by varLib 583 without having to compile and decompile the table first. This was breaking in 584 converting the CFF table to CFF2 due to some unset attributes (#1836). 585 5864.4.0 (released 2020-02-18) 587--------------------------- 588 589- [colorLib] Added ``fontTools.colorLib.builder`` module, initially with ``buildCOLR`` 590 and ``buildCPAL`` public functions. More color font formats will follow (#1827). 591- [fontBuilder] Added ``setupCOLR`` and ``setupCPAL`` methods (#1826). 592- [ttGlyphPen] Quantize ``GlyphComponent.transform`` floats to ``F2Dot14`` to fix 593 round-trip issue when computing bounding boxes of transformed components (#1830). 594- [glyf] If a component uses reference points (``firstPt`` and ``secondPt``) for 595 alignment (instead of X and Y offsets), compute the effective translation offset 596 *after* having applied any transform (#1831). 597- [glyf] When all glyphs have zero contours, compile ``glyf`` table data as a single 598 null byte in order to pass validation by OTS and Windows (#1829). 599- [feaLib] Parsing feature code now ensures that referenced glyph names are part of 600 the known glyph set, unless a glyph set was not provided. 601- [varLib] When filling in the default axis value for a missing location of a source or 602 instance, correctly map the value forward. 603- [varLib] The avar table can now contain mapping output values that are greater than 604 OR EQUAL to the preceeding value, as the avar specification allows this. 605- [varLib] The errors of the module are now ordered hierarchically below VarLibError. 606 See #1821. 607 6084.3.0 (released 2020-02-03) 609--------------------------- 610 611- [EBLC/CBLC] Fixed incorrect padding length calculation for Format 3 IndexSubTable 612 (#1817, #1818). 613- [varLib] Fixed error when merging OTL tables and TTFonts were loaded as ``lazy=True`` 614 (#1808, #1809). 615- [varLib] Allow to use master fonts containing ``CFF2`` table when building VF (#1816). 616- [ttLib] Make ``recalcBBoxes`` option work also with ``CFF2`` table (#1816). 617- [feaLib] Don't reset ``lookupflag`` in lookups defined inside feature blocks. 618 They will now inherit the current ``lookupflag`` of the feature. This is what 619 Adobe ``makeotf`` also does in this case (#1815). 620- [feaLib] Fixed bug with mixed single/multiple substitutions. If a single substitution 621 involved a glyph class, we were incorrectly using only the first glyph in the class 622 (#1814). 623 6244.2.5 (released 2020-01-29) 625--------------------------- 626 627- [feaLib] Do not fail on duplicate multiple substitutions, only warn (#1811). 628- [subset] Optimize SinglePos subtables to Format 1 if all ValueRecords are the same 629 (#1802). 630 6314.2.4 (released 2020-01-09) 632--------------------------- 633 634- [unicodedata] Update RTL_SCRIPTS for Unicode 11 and 12. 635 6364.2.3 (released 2020-01-07) 637--------------------------- 638 639- [otTables] Fixed bug when splitting `MarkBasePos` subtables as offsets overflow. 640 The mark class values in the split subtable were not being updated, leading to 641 invalid mark-base attachments (#1797, googlefonts/noto-source#145). 642- [feaLib] Only log a warning instead of error when features contain duplicate 643 substitutions (#1767). 644- [glifLib] Strip XML comments when parsing with lxml (#1784, #1785). 645 6464.2.2 (released 2019-12-12) 647--------------------------- 648 649- [subset] Fixed issue with subsetting FeatureVariations table when the index 650 of features changes as features get dropped. The feature index need to be 651 remapped to point to index of the remaining features (#1777, #1782). 652- [fontBuilder] Added `addFeatureVariations` method to `FontBuilder` class. This 653 is a shorthand for calling `featureVars.addFeatureVariations` on the builder's 654 TTFont object (#1781). 655- [glyf] Fixed the flags bug in glyph.drawPoints() like we did for glyph.draw() 656 (#1771, #1774). 657 6584.2.1 (released 2019-12-06) 659--------------------------- 660 661- [glyf] Use the ``flagOnCurve`` bit mask in ``glyph.draw()``, so that we ignore 662 the ``overlap`` flag that may be set when instantiating variable fonts (#1771). 663 6644.2.0 (released 2019-11-28) 665--------------------------- 666 667- [pens] Added the following pens: 668 669 * ``roundingPen.RoundingPen``: filter pen that rounds coordinates and components' 670 offsets to integer; 671 * ``roundingPen.RoundingPointPen``: like the above, but using PointPen protocol. 672 * ``filterPen.FilterPointPen``: base class for filter point pens; 673 * ``transformPen.TransformPointPen``: filter point pen to apply affine transform; 674 * ``recordingPen.RecordingPointPen``: records and replays point-pen commands. 675 676- [ttGlyphPen] Always round float coordinates and component offsets to integers 677 (#1763). 678- [ufoLib] When converting kerning groups from UFO2 to UFO3, avoid confusing 679 groups with the same name as one of the glyphs (#1761, #1762, 680 unified-font-object/ufo-spec#98). 681 6824.1.0 (released 2019-11-18) 683--------------------------- 684 685- [instancer] Implemented restricting axis ranges (level 3 partial instancing). 686 You can now pass ``{axis_tag: (min, max)}`` tuples as input to the 687 ``instantiateVariableFont`` function. Note that changing the default axis 688 position is not supported yet. The command-line script also accepts axis ranges 689 in the form of colon-separated float values, e.g. ``wght=400:700`` (#1753, #1537). 690- [instancer] Never drop STAT ``DesignAxis`` records, but only prune out-of-range 691 ``AxisValue`` records. 692- [otBase/otTables] Enforce that VarStore.RegionAxisCount == fvar.axisCount, even 693 when regions list is empty to appease OTS < v8.0 (#1752). 694- [designspaceLib] Defined new ``processing`` attribute for ``<rules>`` element, 695 with values "first" or "last", plus other editorial changes to DesignSpace 696 specification. Bumped format version to 4.1 (#1750). 697- [varLib] Improved error message when masters' glyph orders do not match (#1758, 698 #1759). 699- [featureVars] Allow to specify custom feature tag in ``addFeatureVariations``; 700 allow said feature to already exist, in which case we append new lookup indices 701 to existing features. Implemented ``<rules>`` attribute ``processing`` according to 702 DesignSpace specification update in #1750. Depending on this flag, we generate 703 either an 'rvrn' (always processed first) or a 'rclt' feature (follows lookup order, 704 therefore last) (#1747, #1625, #1371). 705- [ttCollection] Added support for context manager auto-closing via ``with`` statement 706 like with ``TTFont`` (#1751). 707- [unicodedata] Require unicodedata2 >= 12.1.0. 708- [py2.py3] Removed yet more PY2 vestiges (#1743). 709- [_n_a_m_e] Fixed issue when comparing NameRecords with different string types (#1742). 710- [fixedTools] Changed ``fixedToFloat`` to not do any rounding but simply return 711 ``value / (1 << precisionBits)``. Added ``floatToFixedToStr`` and 712 ``strToFixedToFloat`` functions to be used when loading from or dumping to XML. 713 Fixed values (e.g. fvar axes and instance coordinates, avar mappings, etc.) are 714 are now stored as un-rounded decimal floats upon decompiling (#1740, #737). 715- [feaLib] Fixed handling of multiple ``LigatureCaret`` statements for the same glyph. 716 Only the first rule per glyph is used, additional ones are ignored (#1733). 717 7184.0.2 (released 2019-09-26) 719--------------------------- 720 721- [voltLib] Added support for ``ALL`` and ``NONE`` in ``PROCESS_MARKS`` (#1732). 722- [Silf] Fixed issue in ``Silf`` table compilation and decompilation regarding str vs 723 bytes in python3 (#1728). 724- [merge] Handle duplicate glyph names better: instead of appending font index to 725 all glyph names, use similar code like we use in ``post`` and ``CFF`` tables (#1729). 726 7274.0.1 (released 2019-09-11) 728--------------------------- 729 730- [otTables] Support fixing offset overflows in ``MultipleSubst`` lookup subtables 731 (#1706). 732- [subset] Prune empty strikes in ``EBDT`` and ``CBDT`` table data (#1698, #1633). 733- [pens] Fixed issue in ``PointToSegmentPen`` when last point of closed contour has 734 same coordinates as the starting point and was incorrectly dropped (#1720). 735- [Graphite] Fixed ``Sill`` table output to pass OTS (#1705). 736- [name] Added ``removeNames`` method to ``table__n_a_m_e`` class (#1719). 737- [ttLib] Added aliases for renamed entries ``ascender`` and ``descender`` in 738 ``hhea`` table (#1715). 739 7404.0.0 (released 2019-08-22) 741--------------------------- 742 743- NOTE: The v4.x version series only supports Python 3.6 or greater. You can keep 744 using fonttools 3.x if you need support for Python 2. 745- [py23] Removed all the python2-only code since it is no longer reachable, thus 746 unused; only the Python3 symbols were kept, but these are no-op. The module is now 747 DEPRECATED and will removed in the future. 748- [ttLib] Fixed UnboundLocalError for empty loca/glyph tables (#1680). Also, allow 749 the glyf table to be incomplete when dumping to XML (#1681). 750- [varLib.models] Fixed KeyError while sorting masters and there are no on-axis for 751 a given axis (38a8eb0e). 752- [cffLib] Make sure glyph names are unique (#1699). 753- [feaLib] Fix feature parser to correctly handle octal numbers (#1700). 754 7553.44.0 (released 2019-08-02) 756---------------------------- 757 758- NOTE: This is the last scheduled release to support Python 2.7. The upcoming fonttools 759 v4.x series is going to require Python 3.6 or greater. 760- [varLib] Added new ``varLib.instancer`` module for partially instantiating variable 761 fonts. This extends (and will eventually replace) ``varLib.mutator`` module, as 762 it allows to create not just full static instances from a variable font, but also 763 "partial" or "less variable" fonts where some of the axes are dropped or 764 instantiated at a particular value. 765 Also available from the command-line as `fonttools varLib.instancer --help` 766 (#1537, #1628). 767- [cffLib] Added support for ``FDSelect`` format 4 (#1677). 768- [subset] Added support for subsetting ``sbix`` (Apple bitmap color font) table. 769- [t1Lib] Fixed issue parsing ``eexec`` section in Type1 fonts when whitespace 770 characters are interspersed among the trailing zeros (#1676). 771- [cffLib.specializer] Fixed bug in ``programToCommands`` with CFF2 charstrings (#1669). 772 7733.43.2 (released 2019-07-10) 774---------------------------- 775 776- [featureVars] Fixed region-merging code on python3 (#1659). 777- [varLib.cff] Fixed merging of sparse PrivateDict items (#1653). 778 7793.43.1 (released 2019-06-19) 780---------------------------- 781 782- [subset] Fixed regression when passing ``--flavor=woff2`` option with an input font 783 that was already compressed as WOFF 1.0 (#1650). 784 7853.43.0 (released 2019-06-18) 786---------------------------- 787 788- [woff2] Added support for compressing/decompressing WOFF2 fonts with non-transformed 789 ``glyf`` and ``loca`` tables, as well as with transformed ``hmtx`` table. 790 Removed ``Snippets/woff2_compress.py`` and ``Snippets/woff2_decompress.py`` scripts, 791 and replaced them with a new console entry point ``fonttools ttLib.woff2`` 792 that provides two sub-commands ``compress`` and ``decompress``. 793- [varLib.cff] Fixed bug when merging CFF2 ``PrivateDicts``. The ``PrivateDict`` 794 data from the first region font was incorrecty used for all subsequent fonts. 795 The bug would only affect variable CFF2 fonts with hinting (#1643, #1644). 796 Also, fixed a merging bug when VF masters have no blends or marking glyphs (#1632, 797 #1642). 798- [loggingTools] Removed unused backport of ``LastResortLogger`` class. 799- [subset] Gracefully handle partial MATH table (#1635). 800- [featureVars] Avoid duplicate references to ``rvrn`` feature record in 801 ``DefaultLangSys`` tables when calling ``addFeatureVariations`` on a font that 802 does not already have a ``GSUB`` table (aa8a5bc6). 803- [varLib] Fixed merging of class-based kerning. Before, the process could introduce 804 rogue kerning values and variations for random classes against class zero (everything 805 not otherwise classed). 806- [varLib] Fixed merging GPOS tables from master fonts with different number of 807 ``SinglePos`` subtables (#1621, #1641). 808- [unicodedata] Updated Blocks, Scripts and ScriptExtensions to Unicode 12.1. 809 8103.42.0 (released 2019-05-28) 811---------------------------- 812 813- [OS/2] Fixed sign of ``fsType``: it should be ``uint16``, not ``int16`` (#1619). 814- [subset] Skip out-of-range class values in mark attachment (#1478). 815- [fontBuilder] Add an empty ``DSIG`` table with ``setupDummyDSIG`` method (#1621). 816- [varLib.merger] Fixed bug whereby ``GDEF.GlyphClassDef`` were being dropped 817 when generating instance via ``varLib.mutator`` (#1614). 818- [varLib] Added command-line options ``-v`` and ``-q`` to configure logging (#1613). 819- [subset] Update font extents in head table (#1612). 820- [subset] Make --retain-gids truncate empty glyphs after the last non-empty glyph 821 (#1611). 822- [requirements] Updated ``unicodedata2`` backport for Unicode 12.0. 823 8243.41.2 (released 2019-05-13) 825---------------------------- 826 827- [cffLib] Fixed issue when importing a ``CFF2`` variable font from XML, whereby 828 the VarStore state was not propagated to PrivateDict (#1598). 829- [varLib] Don't drop ``post`` glyph names when building CFF2 variable font (#1609). 830 831 8323.41.1 (released 2019-05-13) 833---------------------------- 834 835- [designspaceLib] Added ``loadSourceFonts`` method to load source fonts using 836 custom opener function (#1606). 837- [head] Round font bounding box coordinates to integers to fix compile error 838 if CFF font has float coordinates (#1604, #1605). 839- [feaLib] Don't write ``None`` in ``ast.ValueRecord.asFea()`` (#1599). 840- [subset] Fixed issue ``AssertionError`` when using ``--desubroutinize`` option 841 (#1590, #1594). 842- [graphite] Fixed bug in ``Silf`` table's ``decompile`` method unmasked by 843 previous typo fix (#1597). Decode languange code as UTF-8 in ``Sill`` table's 844 ``decompile`` method (#1600). 845 8463.41.0 (released 2019-04-29) 847---------------------------- 848 849- [varLib/cffLib] Added support for building ``CFF2`` variable font from sparse 850 masters, or masters with more than one model (multiple ``VarStore.VarData``). 851 In ``cffLib.specializer``, added support for ``CFF2`` CharStrings with 852 ``blend`` operators (#1547, #1591). 853- [subset] Fixed subsetting ``HVAR`` and ``VVAR`` with ``--retain-gids`` option, 854 and when advances mapping is null while sidebearings mappings are non-null 855 (#1587, #1588). 856- Added ``otlLib.maxContextCalc`` module to compute ``OS/2.usMaxContext`` value. 857 Calculate it automatically when compiling features with feaLib. Added option 858 ``--recalc-max-context`` to ``subset`` module (#1582). 859- [otBase/otTables] Fixed ``AttributeError`` on missing OT table fields after 860 importing font from TTX (#1584). 861- [graphite] Fixed typo ``Silf`` table's ``decompile`` method (#1586). 862- [otlLib] Better compress ``GPOS`` SinglePos (LookupType 1) subtables (#1539). 863 8643.40.0 (released 2019-04-08) 865---------------------------- 866 867- [subset] Fixed error while subsetting ``VVAR`` with ``--retain-gids`` 868 option (#1552). 869- [designspaceLib] Use up-to-date default location in ``findDefault`` method 870 (#1554). 871- [voltLib] Allow passing file-like object to Parser. 872- [arrayTools/glyf] ``calcIntBounds`` (used to compute bounding boxes of glyf 873 table's glyphs) now uses ``otRound`` instead of ``round3`` (#1566). 874- [svgLib] Added support for converting more SVG shapes to path ``d`` strings 875 (ellipse, line, polyline), as well as support for ``transform`` attributes. 876 Only ``matrix`` transformations are currently supported (#1564, #1564). 877- [varLib] Added support for building ``VVAR`` table from ``vmtx`` and ``VORG`` 878 tables (#1551). 879- [fontBuilder] Enable making CFF2 fonts with ``post`` table format 2 (#1557). 880- Fixed ``DeprecationWarning`` on invalid escape sequences (#1562). 881 8823.39.0 (released 2019-03-19) 883---------------------------- 884 885- [ttLib/glyf] Raise more specific error when encountering recursive 886 component references (#1545, #1546). 887- [Doc/designspaceLib] Defined new ``public.skipExportGlyphs`` lib key (#1534, 888 unified-font-object/ufo-spec#84). 889- [varLib] Use ``vmtx`` to compute vertical phantom points; or ``hhea.ascent`` 890 and ``head.unitsPerEM`` if ``vmtx`` is missing (#1528). 891- [gvar/cvar] Sort XML element's min/value/max attributes in TupleVariation 892 toXML to improve readability of TTX dump (#1527). 893- [varLib.plot] Added support for 2D plots with only 1 variation axis (#1522). 894- [designspaceLib] Use axes maps when normalizing locations in 895 DesignSpaceDocument (#1226, #1521), and when finding default source (#1535). 896- [mutator] Set ``OVERLAP_SIMPLE`` and ``OVERLAP_COMPOUND`` glyf flags by 897 default in ``instantiateVariableFont``. Added ``--no-overlap`` cli option 898 to disable this (#1518). 899- [subset] Fixed subsetting ``VVAR`` table (#1516, #1517). 900 Fixed subsetting an ``HVAR`` table that has an ``AdvanceWidthMap`` when the 901 option ``--retain-gids`` is used. 902- [feaLib] Added ``forceChained`` in MultipleSubstStatement (#1511). 903 Fixed double indentation of ``subtable`` statement (#1512). 904 Added support for ``subtable`` statement in more places than just PairPos 905 lookups (#1520). 906 Handle lookupflag 0 and lookupflag without a value (#1540). 907- [varLib] In ``load_designspace``, provide a default English name for the 908 ``ital`` axis tag. 909- Remove pyftinspect because it is unmaintained and bitrotted. 910 9113.38.0 (released 2019-02-18) 912---------------------------- 913 914- [cffLib] Fixed RecursionError when unpickling or deepcopying TTFont with 915 CFF table (#1488, 649dc49). 916- [subset] Fixed AttributeError when using --desubroutinize option (#1490). 917 Also, fixed desubroutinizing bug when subrs contain hints (#1499). 918- [CPAL] Make Color a subclass of namedtuple (173a0f5). 919- [feaLib] Allow hyphen in glyph class names. 920- [feaLib] Added 'tables' option to __main__.py (#1497). 921- [feaLib] Add support for special-case contextual positioning formatting 922 (#1501). 923- [svgLib] Support converting SVG basic shapes (rect, circle, etc.) into 924 equivalent SVG paths (#1500, #1508). 925- [Snippets] Added name-viewer.ipynb Jupyter notebook. 926 927 9283.37.3 (released 2019-02-05) 929---------------------------- 930 931- The previous release accidentally changed several files from Unix to DOS 932 line-endings. Fix that. 933 9343.37.2 (released 2019-02-05) 935---------------------------- 936 937- [varLib] Temporarily revert the fix to ``load_masters()``, which caused a 938 crash in ``interpolate_layout()`` when ``deepcopy``-ing OTFs. 939 9403.37.1 (released 2019-02-05) 941---------------------------- 942 943- [varLib] ``load_masters()`` now actually assigns the fonts it loads to the 944 source.font attributes. 945- [varLib] Fixed an MVAR table generation crash when sparse masters were 946 involved. 947- [voltLib] ``parse_coverage_()`` returns a tuple instead of an ast.Enum. 948- [feaLib] A MarkClassDefinition inside a block is no longer doubly indented 949 compared to the rest of the block. 950 9513.37.0 (released 2019-01-28) 952---------------------------- 953 954- [svgLib] Added support for converting elliptical arcs to cubic bezier curves 955 (#1464). 956- [py23] Added backport for ``math.isfinite``. 957- [varLib] Apply HIDDEN flag to fvar axis if designspace axis has attribute 958 ``hidden=1``. 959- Fixed "DeprecationWarning: invalid escape sequence" in Python 3.7. 960- [voltLib] Fixed parsing glyph groups. Distinguish different PROCESS_MARKS. 961 Accept COMPONENT glyph type. 962- [feaLib] Distinguish missing value and explicit ``<NULL>`` for PairPos2 963 format A (#1459). Round-trip ``useExtension`` keyword. Implemented 964 ``ValueRecord.asFea`` method. 965- [subset] Insert empty widths into hdmx when retaining gids (#1458). 966 9673.36.0 (released 2019-01-17) 968---------------------------- 969 970- [ttx] Added ``--no-recalc-timestamp`` option to keep the original font's 971 ``head.modified`` timestamp (#1455, #46). 972- [ttx/psCharStrings] Fixed issues while dumping and round-tripping CFF2 table 973 with ttx (#1451, #1452, #1456). 974- [voltLib] Fixed check for duplicate anchors (#1450). Don't try to read past 975 the ``END`` operator in .vtp file (#1453). 976- [varLib] Use sentinel value -0x8000 (-32768) to ignore post.underlineThickness 977 and post.underlinePosition when generating MVAR deltas (#1449, 978 googlei18n/ufo2ft#308). 979- [subset] Added ``--retain-gids`` option to subset font without modifying the 980 current glyph indices (#1443, #1447). 981- [ufoLib] Replace deprecated calls to ``getbytes`` and ``setbytes`` with new 982 equivalent ``readbytes`` and ``writebytes`` calls. ``fs`` >= 2.2 no required. 983- [varLib] Allow loading masters from TTX files as well (#1441). 984 9853.35.2 (released 2019-01-14) 986---------------------------- 987 988- [hmtx/vmtx]: Allow to compile/decompile ``hmtx`` and ``vmtx`` tables even 989 without the corresponding (required) metrics header tables, ``hhea`` and 990 ``vhea`` (#1439). 991- [varLib] Added support for localized axes' ``labelname`` and named instances' 992 ``stylename`` (#1438). 993 9943.35.1 (released 2019-01-09) 995---------------------------- 996 997- [_m_a_x_p] Include ``maxComponentElements`` in ``maxp`` table's recalculation. 998 9993.35.0 (released 2019-01-07) 1000---------------------------- 1001 1002- [psCharStrings] In ``encodeFloat`` function, use float's "general format" with 1003 8 digits of precision (i.e. ``%8g``) instead of ``str()``. This works around 1004 a macOS rendering issue when real numbers in CFF table are too long, and 1005 also makes sure that floats are encoded with the same precision in python 2.7 1006 and 3.x (#1430, googlei18n/ufo2ft#306). 1007- [_n_a_m_e/fontBuilder] Make ``_n_a_m_e_table.addMultilingualName`` also add 1008 Macintosh (platformID=1) names by default. Added options to ``FontBuilder`` 1009 ``setupNameTable`` method to optionally disable Macintosh or Windows names. 1010 (#1359, #1431). 1011- [varLib] Make ``build`` optionally accept a ``DesignSpaceDocument`` object, 1012 instead of a designspace file path. The caller can now set the ``font`` 1013 attribute of designspace's sources to a TTFont object, thus allowing to 1014 skip filenames manipulation altogether (#1416, #1425). 1015- [sfnt] Allow SFNTReader objects to be deep-copied. 1016- Require typing>=3.6.4 on py27 to fix issue with singledispatch (#1423). 1017- [designspaceLib/t1Lib/macRes] Fixed some cases where pathlib.Path objects were 1018 not accepted (#1421). 1019- [varLib] Fixed merging of multiple PairPosFormat2 subtables (#1411). 1020- [varLib] The default STAT table version is now set to 1.1, to improve 1021 compatibility with legacy applications (#1413). 1022 10233.34.2 (released 2018-12-17) 1024---------------------------- 1025 1026- [merge] Fixed AssertionError when none of the script tables in GPOS/GSUB have 1027 a DefaultLangSys record (#1408, 135a4a1). 1028 10293.34.1 (released 2018-12-17) 1030---------------------------- 1031 1032- [varLib] Work around macOS rendering issue for composites without gvar entry (#1381). 1033 10343.34.0 (released 2018-12-14) 1035---------------------------- 1036 1037- [varLib] Support generation of CFF2 variable fonts. ``model.reorderMasters()`` 1038 now supports arbitrary mapping. Fix handling of overlapping ranges for feature 1039 variations (#1400). 1040- [cffLib, subset] Code clean-up and fixing related to CFF2 support. 1041- [ttLib.tables.ttProgram] Use raw strings for regex patterns (#1389). 1042- [fontbuilder] Initial support for building CFF2 fonts. Set CFF's 1043 ``FontMatrix`` automatically from unitsPerEm. 1044- [plistLib] Accept the more general ``collections.Mapping`` instead of the 1045 specific ``dict`` class to support custom data classes that should serialize 1046 to dictionaries. 1047 10483.33.0 (released 2018-11-30) 1049---------------------------- 1050- [subset] subsetter bug fix with variable fonts. 1051- [varLib.featureVar] Improve FeatureVariations generation with many rules. 1052- [varLib] Enable sparse masters when building variable fonts: 1053 https://github.com/fonttools/fonttools/pull/1368#issuecomment-437257368 1054- [varLib.mutator] Add IDEF for GETVARIATION opcode, for handling hints in an 1055 instance. 1056- [ttLib] Ignore the length of kern table subtable format 0 1057 10583.32.0 (released 2018-11-01) 1059---------------------------- 1060 1061- [ufoLib] Make ``UFOWriter`` a subclass of ``UFOReader``, and use mixins 1062 for shared methods (#1344). 1063- [featureVars] Fixed normalization error when a condition's minimum/maximum 1064 attributes are missing in designspace ``<rule>`` (#1366). 1065- [setup.py] Added ``[plot]`` to extras, to optionally install ``matplotlib``, 1066 needed to use the ``fonTools.varLib.plot`` module. 1067- [varLib] Take total bounding box into account when resolving model (7ee81c8). 1068 If multiple axes have the same range ratio, cut across both (62003f4). 1069- [subset] Don't error if ``STAT`` has no ``AxisValue`` tables. 1070- [fontBuilder] Added a new submodule which contains a ``FontBuilder`` wrapper 1071 class around ``TTFont`` that makes it easier to create a working TTF or OTF 1072 font from scratch with code. NOTE: the API is still experimental and may 1073 change in future versions. 1074 10753.31.0 (released 2018-10-21) 1076---------------------------- 1077 1078- [ufoLib] Merged the `ufoLib <https://github.com/unified-font-objects/ufoLib>`__ 1079 master branch into a new ``fontTools.ufoLib`` package (#1335, #1095). 1080 Moved ``ufoLib.pointPen`` module to ``fontTools.pens.pointPen``. 1081 Moved ``ufoLib.etree`` module to ``fontTools.misc.etree``. 1082 Moved ``ufoLib.plistlib`` module to ``fontTools.misc.plistlib``. 1083 To use the new ``fontTools.ufoLib`` module you need to install fonttools 1084 with the ``[ufo]`` extra, or you can manually install the required additional 1085 dependencies (cf. README.rst). 1086- [morx] Support AAT action type to insert glyphs and clean up compilation 1087 of AAT action tables (4a1871f, 2011ccf). 1088- [subset] The ``--no-hinting`` on a CFF font now also drops the optional 1089 hinting keys in Private dict: ``ForceBold``, ``LanguageGroup``, and 1090 ``ExpansionFactor`` (#1322). 1091- [subset] Include nameIDs referenced by STAT table (#1327). 1092- [loggingTools] Added ``msg=None`` argument to 1093 ``CapturingLogHandler.assertRegex`` (0245f2c). 1094- [varLib.mutator] Implemented ``FeatureVariations`` instantiation (#1244). 1095- [g_l_y_f] Added PointPen support to ``_TTGlyph`` objects (#1334). 1096 10973.30.0 (released 2018-09-18) 1098---------------------------- 1099 1100- [feaLib] Skip building noop class PairPos subtables when Coverage is NULL 1101 (#1318). 1102- [ttx] Expose the previously reserved bit flag ``OVERLAP_SIMPLE`` of 1103 glyf table's contour points in the TTX dump. This is used in some 1104 implementations to specify a non-zero fill with overlapping contours (#1316). 1105- [ttLib] Added support for decompiling/compiling ``TS1C`` tables containing 1106 VTT sources for ``cvar`` variation table (#1310). 1107- [varLib] Use ``fontTools.designspaceLib`` to read DesignSpaceDocument. The 1108 ``fontTools.varLib.designspace`` module is now deprecated and will be removed 1109 in future versions. The presence of an explicit ``axes`` element is now 1110 required in order to build a variable font (#1224, #1313). 1111- [varLib] Implemented building GSUB FeatureVariations table from the ``rules`` 1112 element of DesignSpace document (#1240, #713, #1314). 1113- [subset] Added ``--no-layout-closure`` option to not expand the subset with 1114 the glyphs produced by OpenType layout features. Instead, OpenType features 1115 will be subset to only rules that are relevant to the otherwise-specified 1116 glyph set (#43, #1121). 1117 11183.29.1 (released 2018-09-10) 1119---------------------------- 1120 1121- [feaLib] Fixed issue whereby lookups from DFLT/dflt were not included in the 1122 DFLT/non-dflt language systems (#1307). 1123- [graphite] Fixed issue on big-endian architectures (e.g. ppc64) (#1311). 1124- [subset] Added ``--layout-scripts`` option to add/exclude set of OpenType 1125 layout scripts that will be preserved. By default all scripts are retained 1126 (``'*'``) (#1303). 1127 11283.29.0 (released 2018-07-26) 1129---------------------------- 1130 1131- [feaLib] In the OTL table builder, when the ``name`` table is excluded 1132 from the list of tables to be build, skip compiling ``featureNames`` blocks, 1133 as the records referenced in ``FeatureParams`` table don't exist (68951b7). 1134- [otBase] Try ``ExtensionLookup`` if other offset-overflow methods fail 1135 (05f95f0). 1136- [feaLib] Added support for explicit ``subtable;`` break statements in 1137 PairPos lookups; previously these were ignored (#1279, #1300, #1302). 1138- [cffLib.specializer] Make sure the stack depth does not exceed maxstack - 1, 1139 so that a subroutinizer can insert subroutine calls (#1301, 1140 https://github.com/googlei18n/ufo2ft/issues/266). 1141- [otTables] Added support for fixing offset overflow errors occurring inside 1142 ``MarkBasePos`` subtables (#1297). 1143- [subset] Write the default output file extension based on ``--flavor`` option, 1144 or the value of ``TTFont.sfntVersion`` (d7ac0ad). 1145- [unicodedata] Updated Blocks, Scripts and ScriptExtensions for Unicode 11 1146 (452c85e). 1147- [xmlWriter] Added context manager to XMLWriter class to autoclose file 1148 descriptor on exit (#1290). 1149- [psCharStrings] Optimize the charstring's bytecode by encoding as integers 1150 all float values that have no decimal portion (8d7774a). 1151- [ttFont] Fixed missing import of ``TTLibError`` exception (#1285). 1152- [feaLib] Allow any languages other than ``dflt`` under ``DFLT`` script 1153 (#1278, #1292). 1154 11553.28.0 (released 2018-06-19) 1156---------------------------- 1157 1158- [featureVars] Added experimental module to build ``FeatureVariations`` 1159 tables. Still needs to be hooked up to ``varLib.build`` (#1240). 1160- [fixedTools] Added ``otRound`` to round floats to nearest integer towards 1161 positive Infinity. This is now used where we deal with visual data like X/Y 1162 coordinates, advance widths/heights, variation deltas, and similar (#1274, 1163 #1248). 1164- [subset] Improved GSUB closure memoize algorithm. 1165- [varLib.models] Fixed regression in model resolution (180124, #1269). 1166- [feaLib.ast] Fixed error when converting ``SubtableStatement`` to string 1167 (#1275). 1168- [varLib.mutator] Set ``OS/2.usWeightClass`` and ``usWidthClass``, and 1169 ``post.italicAngle`` based on the 'wght', 'wdth' and 'slnt' axis values 1170 (#1276, #1264). 1171- [py23/loggingTools] Don't automatically set ``logging.lastResort`` handler 1172 on py27. Moved ``LastResortLogger`` to the ``loggingTools`` module (#1277). 1173 11743.27.1 (released 2018-06-11) 1175---------------------------- 1176 1177- [ttGlyphPen] Issue a warning and skip building non-existing components 1178 (https://github.com/googlei18n/fontmake/issues/411). 1179- [tests] Fixed issue running ttx_test.py from a tagged commit. 1180 11813.27.0 (released 2018-06-11) 1182---------------------------- 1183 1184- [designspaceLib] Added new ``conditionSet`` element to ``rule`` element in 1185 designspace document. Bumped ``format`` attribute to ``4.0`` (previously, 1186 it was formatted as an integer). Removed ``checkDefault``, ``checkAxes`` 1187 methods, and any kind of guessing about the axes when the ``<axes>`` element 1188 is missing. The default master is expected at the intersection of all default 1189 values for each axis (#1254, #1255, #1267). 1190- [cffLib] Fixed issues when compiling CFF2 or converting from CFF when the 1191 font has an FDArray (#1211, #1271). 1192- [varLib] Avoid attempting to build ``cvar`` table when ``glyf`` table is not 1193 present, as is the case for CFF2 fonts. 1194- [subset] Handle None coverages in MarkGlyphSets; revert commit 02616ab that 1195 sets empty Coverage tables in MarkGlyphSets to None, to make OTS happy. 1196- [ttFont] Allow to build glyph order from ``maxp.numGlyphs`` when ``post`` or 1197 ``cmap`` are missing. 1198- [ttFont] Added ``__len__`` method to ``_TTGlyphSet``. 1199- [glyf] Ensure ``GlyphCoordinates`` never overflow signed shorts (#1230). 1200- [py23] Added alias for ``itertools.izip`` shadowing the built-in ``zip``. 1201- [loggingTools] Memoize ``log`` property of ``LogMixin`` class (fbab12). 1202- [ttx] Impoved test coverage (#1261). 1203- [Snippets] Addded script to append a suffix to all family names in a font. 1204- [varLib.plot] Make it work with matplotlib >= 2.1 (b38e2b). 1205 12063.26.0 (released 2018-05-03) 1207---------------------------- 1208 1209- [designspace] Added a new optional ``layer`` attribute to the source element, 1210 and a corresponding ``layerName`` attribute to the ``SourceDescriptor`` 1211 object (#1253). 1212 Added ``conditionset`` element to the ``rule`` element to the spec, but not 1213 implemented in designspace reader/writer yet (#1254). 1214- [varLib.models] Refine modeling one last time (0ecf5c5). 1215- [otBase] Fixed sharing of tables referred to by different offset sizes 1216 (795f2f9). 1217- [subset] Don't drop a GDEF that only has VarStore (fc819d6). Set to None 1218 empty Coverage tables in MarkGlyphSets (02616ab). 1219- [varLib]: Added ``--master-finder`` command-line option (#1249). 1220- [varLib.mutator] Prune fvar nameIDs from instance's name table (#1245). 1221- [otTables] Allow decompiling bad ClassDef tables with invalid format, with 1222 warning (#1236). 1223- [varLib] Make STAT v1.2 and reuse nameIDs from fvar table (#1242). 1224- [varLib.plot] Show master locations. Set axis limits to -1, +1. 1225- [subset] Handle HVAR direct mapping. Passthrough 'cvar'. 1226 Added ``--font-number`` command-line option for collections. 1227- [t1Lib] Allow a text encoding to be specified when parsing a Type 1 font 1228 (#1234). Added ``kind`` argument to T1Font constructor (c5c161c). 1229- [ttLib] Added context manager API to ``TTFont`` class, so it can be used in 1230 ``with`` statements to auto-close the file when exiting the context (#1232). 1231 12323.25.0 (released 2018-04-03) 1233---------------------------- 1234 1235- [varLib] Improved support-resolution algorithm. Previously, the on-axis 1236 masters would always cut the space. They don't anymore. That's more 1237 consistent, and fixes the main issue Erik showed at TYPO Labs 2017. 1238 Any varfont built that had an unusual master configuration will change 1239 when rebuilt (42bef17, a523a697, 1240 https://github.com/googlei18n/fontmake/issues/264). 1241- [varLib.models] Added a ``main()`` entry point, that takes positions and 1242 prints model results. 1243- [varLib.plot] Added new module to plot a designspace's 1244 VariationModel. Requires ``matplotlib``. 1245- [varLib.mutator] Added -o option to specify output file path (2ef60fa). 1246- [otTables] Fixed IndexError while pruning of HVAR pre-write (6b6c34a). 1247- [varLib.models] Convert delta array to floats if values overflows signed 1248 short integer (0055f94). 1249 12503.24.2 (released 2018-03-26) 1251---------------------------- 1252 1253- [otBase] Don't fail during ``ValueRecord`` copy if src has more items. 1254 We drop hinting in the subsetter by simply changing ValueFormat, without 1255 cleaning up the actual ValueRecords. This was causing assertion error if 1256 a variable font was subsetted without hinting and then passed directly to 1257 the mutator for instantiation without first it saving to disk. 1258 12593.24.1 (released 2018-03-06) 1260---------------------------- 1261 1262- [varLib] Don't remap the same ``DeviceTable`` twice in VarStore optimizer 1263 (#1206). 1264- [varLib] Add ``--disable-iup`` option to ``fonttools varLib`` script, 1265 and a ``optimize=True`` keyword argument to ``varLib.build`` function, 1266 to optionally disable IUP optimization while building varfonts. 1267- [ttCollection] Fixed issue while decompiling ttc with python3 (#1207). 1268 12693.24.0 (released 2018-03-01) 1270---------------------------- 1271 1272- [ttGlyphPen] Decompose composite glyphs if any components' transform is too 1273 large to fit a ``F2Dot14`` value, or clamp transform values that are 1274 (almost) equal to +2.0 to make them fit and avoid decomposing (#1200, 1275 #1204, #1205). 1276- [ttx] Added new ``-g`` option to dump glyphs from the ``glyf`` table 1277 splitted as individual ttx files (#153, #1035, #1132, #1202). 1278- Copied ``ufoLib.filenames`` module to ``fontTools.misc.filenames``, used 1279 for the ttx split-glyphs option (#1202). 1280- [feaLib] Added support for ``cvParameters`` blocks in Character Variant 1281 feautures ``cv01-cv99`` (#860, #1169). 1282- [Snippets] Added ``checksum.py`` script to generate/check SHA1 hash of 1283 ttx files (#1197). 1284- [varLib.mutator] Fixed issue while instantiating some variable fonts 1285 whereby the horizontal advance width computed from ``gvar`` phantom points 1286 could turn up to be negative (#1198). 1287- [varLib/subset] Fixed issue with subsetting GPOS variation data not 1288 picking up ``ValueRecord`` ``Device`` objects (54fd71f). 1289- [feaLib/voltLib] In all AST elements, the ``location`` is no longer a 1290 required positional argument, but an optional kewyord argument (defaults 1291 to ``None``). This will make it easier to construct feature AST from 1292 code (#1201). 1293 1294 12953.23.0 (released 2018-02-26) 1296---------------------------- 1297 1298- [designspaceLib] Added an optional ``lib`` element to the designspace as a 1299 whole, as well as to the instance elements, to store arbitrary data in a 1300 property list dictionary, similar to the UFO's ``lib``. Added an optional 1301 ``font`` attribute to the ``SourceDescriptor``, to allow operating on 1302 in-memory font objects (#1175). 1303- [cffLib] Fixed issue with lazy-loading of attributes when attempting to 1304 set the CFF TopDict.Encoding (#1177, #1187). 1305- [ttx] Fixed regression introduced in 3.22.0 that affected the split tables 1306 ``-s`` option (#1188). 1307- [feaLib] Added ``IncludedFeaNotFound`` custom exception subclass, raised 1308 when an included feature file cannot be found (#1186). 1309- [otTables] Changed ``VarIdxMap`` to use glyph names internally instead of 1310 glyph indexes. The old ttx dumps of HVAR/VVAR tables that contain indexes 1311 can still be imported (21cbab8, 38a0ffb). 1312- [varLib] Implemented VarStore optimizer (#1184). 1313- [subset] Implemented pruning of GDEF VarStore, HVAR and MVAR (#1179). 1314- [sfnt] Restore backward compatiblity with ``numFonts`` attribute of 1315 ``SFNTReader`` object (#1181). 1316- [merge] Initial support for merging ``LangSysRecords`` (#1180). 1317- [ttCollection] don't seek(0) when writing to possibly unseekable strems. 1318- [subset] Keep all ``--name-IDs`` from 0 to 6 by default (#1170, #605, #114). 1319- [cffLib] Added ``width`` module to calculate optimal CFF default and 1320 nominal glyph widths. 1321- [varLib] Don’t fail if STAT already in the master fonts (#1166). 1322 13233.22.0 (released 2018-02-04) 1324---------------------------- 1325 1326- [subset] Support subsetting ``endchar`` acting as ``seac``-like components 1327 in ``CFF`` (fixes #1162). 1328- [feaLib] Allow to build from pre-parsed ``ast.FeatureFile`` object. 1329 Added ``tables`` argument to only build some tables instead of all (#1159, 1330 #1163). 1331- [textTools] Replaced ``safeEval`` with ``ast.literal_eval`` (#1139). 1332- [feaLib] Added option to the parser to not resolve ``include`` statements 1333 (#1154). 1334- [ttLib] Added new ``ttCollection`` module to read/write TrueType and 1335 OpenType Collections. Exports a ``TTCollection`` class with a ``fonts`` 1336 attribute containing a list of ``TTFont`` instances, the methods ``save`` 1337 and ``saveXML``, plus some list-like methods. The ``importXML`` method is 1338 not implemented yet (#17). 1339- [unicodeadata] Added ``ot_tag_to_script`` function that converts from 1340 OpenType script tag to Unicode script code. 1341- Added new ``designspaceLib`` subpackage, originally from Erik Van Blokland's 1342 ``designSpaceDocument``: https://github.com/LettError/designSpaceDocument 1343 NOTE: this is not yet used internally by varLib, and the API may be subject 1344 to changes (#911, #1110, LettError/designSpaceDocument#28). 1345- Added new FontTools icon images (8ee7c32). 1346- [unicodedata] Added ``script_horizontal_direction`` function that returns 1347 either "LTR" or "RTL" given a unicode script code. 1348- [otConverters] Don't write descriptive name string as XML comment if the 1349 NameID value is 0 (== NULL) (#1151, #1152). 1350- [unicodedata] Add ``ot_tags_from_script`` function to get the list of 1351 OpenType script tags associated with unicode script code (#1150). 1352- [feaLib] Don't error when "enumerated" kern pairs conflict with preceding 1353 single pairs; emit warning and chose the first value (#1147, #1148). 1354- [loggingTools] In ``CapturingLogHandler.assertRegex`` method, match the 1355 fully formatted log message. 1356- [sbix] Fixed TypeError when concatenating str and bytes (#1154). 1357- [bezierTools] Implemented cusp support and removed ``approximate_fallback`` 1358 arg in ``calcQuadraticArcLength``. Added ``calcCubicArcLength`` (#1142). 1359 13603.21.2 (released 2018-01-08) 1361---------------------------- 1362 1363- [varLib] Fixed merging PairPos Format1/2 with missing subtables (#1125). 1364 13653.21.1 (released 2018-01-03) 1366---------------------------- 1367 1368- [feaLib] Allow mixed single/multiple substitutions (#612) 1369- Added missing ``*.afm`` test assets to MAINFEST.in (#1137). 1370- Fixed dumping ``SVG`` tables containing color palettes (#1124). 1371 13723.21.0 (released 2017-12-18) 1373---------------------------- 1374 1375- [cmap] when compiling format6 subtable, don't assume gid0 is always called 1376 '.notdef' (1e42224). 1377- [ot] Allow decompiling fonts with bad Coverage format number (1aafae8). 1378- Change FontTools licence to MIT (#1127). 1379- [post] Prune extra names already in standard Mac set (df1e8c7). 1380- [subset] Delete empty SubrsIndex after subsetting (#994, #1118). 1381- [varLib] Don't share points in cvar by default, as it currently fails on 1382 some browsers (#1113). 1383- [afmLib] Make poor old afmLib work on python3. 1384 13853.20.1 (released 2017-11-22) 1386---------------------------- 1387 1388- [unicodedata] Fixed issue with ``script`` and ``script_extension`` functions 1389 returning inconsistent short vs long names. They both return the short four- 1390 letter script codes now. Added ``script_name`` and ``script_code`` functions 1391 to look up the long human-readable script name from the script code, and 1392 viceversa (#1109, #1111). 1393 13943.20.0 (released 2017-11-21) 1395---------------------------- 1396 1397- [unicodedata] Addded new module ``fontTools.unicodedata`` which exports the 1398 same interface as the built-in ``unicodedata`` module, with the addition of 1399 a few functions that are missing from the latter, such as ``script``, 1400 ``script_extension`` and ``block``. Added a ``MetaTools/buildUCD.py`` script 1401 to download and parse data files from the Unicode Character Database and 1402 generate python modules containing lists of ranges and property values. 1403- [feaLib] Added ``__str__`` method to all ``ast`` elements (delegates to the 1404 ``asFea`` method). 1405- [feaLib] ``Parser`` constructor now accepts a ``glyphNames`` iterable 1406 instead of ``glyphMap`` dict. The latter still works but with a pending 1407 deprecation warning (#1104). 1408- [bezierTools] Added arc length calculation functions originally from 1409 ``pens.perimeterPen`` module (#1101). 1410- [varLib] Started generating STAT table (8af4309). Right now it just reflects 1411 the axes, and even that with certain limitations: 1412 * AxisOrdering is set to the order axes are defined, 1413 * Name-table entries are not shared with fvar. 1414- [py23] Added backports for ``redirect_stdout`` and ``redirect_stderr`` 1415 context managers (#1097). 1416- [Graphite] Fixed some round-trip bugs (#1093). 1417 14183.19.0 (released 2017-11-06) 1419---------------------------- 1420 1421- [varLib] Try set of used points instead of all points when testing whether to 1422 share points between tuples (#1090). 1423- [CFF2] Fixed issue with reading/writing PrivateDict BlueValues to TTX file. 1424 Read the commit message 8b02b5a and issue #1030 for more details. 1425 NOTE: this change invalidates all the TTX files containing CFF2 tables 1426 that where dumped with previous verisons of fonttools. 1427 CFF2 Subr items can have values on the stack after the last operator, thus 1428 a ``CFF2Subr`` class was added to accommodate this (#1091). 1429- [_k_e_r_n] Fixed compilation of AAT kern version=1.0 tables (#1089, #1094) 1430- [ttLib] Added getBestCmap() convenience method to TTFont class and cmap table 1431 class that returns a preferred Unicode cmap subtable given a list of options 1432 (#1092). 1433- [morx] Emit more meaningful subtable flags. Implement InsertionMorphAction 1434 14353.18.0 (released 2017-10-30) 1436---------------------------- 1437 1438- [feaLib] Fixed writing back nested glyph classes (#1086). 1439- [TupleVariation] Reactivated shared points logic, bugfixes (#1009). 1440- [AAT] Implemented ``morx`` ligature subtables (#1082). 1441- [reverseContourPen] Keep duplicate lineTo following a moveTo (#1080, 1442 https://github.com/googlei18n/cu2qu/issues/51). 1443- [varLib.mutator] Suport instantiation of GPOS, GDEF and MVAR (#1079). 1444- [sstruct] Fixed issue with ``unicode_literals`` and ``struct`` module in 1445 old versions of python 2.7 (#993). 1446 14473.17.0 (released 2017-10-16) 1448---------------------------- 1449 1450- [svgPathPen] Added an ``SVGPathPen`` that translates segment pen commands 1451 into SVG path descriptions. Copied from Tal Leming's ``ufo2svg.svgPathPen`` 1452 https://github.com/typesupply/ufo2svg/blob/d69f992/Lib/ufo2svg/svgPathPen.py 1453- [reverseContourPen] Added ``ReverseContourPen``, a filter pen that draws 1454 contours with the winding direction reversed, while keeping the starting 1455 point (#1071). 1456- [filterPen] Added ``ContourFilterPen`` to manipulate contours as a whole 1457 rather than segment by segment. 1458- [arrayTools] Added ``Vector`` class to apply math operations on an array 1459 of numbers, and ``pairwise`` function to loop over pairs of items in an 1460 iterable. 1461- [varLib] Added support for building and interpolation of ``cvar`` table 1462 (f874cf6, a25a401). 1463 14643.16.0 (released 2017-10-03) 1465---------------------------- 1466 1467- [head] Try using ``SOURCE_DATE_EPOCH`` environment variable when setting 1468 the ``head`` modified timestamp to ensure reproducible builds (#1063). 1469 See https://reproducible-builds.org/specs/source-date-epoch/ 1470- [VTT] Decode VTT's ``TSI*`` tables text as UTF-8 (#1060). 1471- Added support for Graphite font tables: Feat, Glat, Gloc, Silf and Sill. 1472 Thanks @mhosken! (#1054). 1473- [varLib] Default to using axis "name" attribute if "labelname" element 1474 is missing (588f524). 1475- [merge] Added support for merging Script records. Remove unused features 1476 and lookups after merge (d802580, 556508b). 1477- Added ``fontTools.svgLib`` package. Includes a parser for SVG Paths that 1478 supports the Pen protocol (#1051). Also, added a snippet to convert SVG 1479 outlines to UFO GLIF (#1053). 1480- [AAT] Added support for ``ankr``, ``bsln``, ``mort``, ``morx``, ``gcid``, 1481 and ``cidg``. 1482- [subset] Implemented subsetting of ``prop``, ``opbd``, ``bsln``, ``lcar``. 1483 14843.15.1 (released 2017-08-18) 1485---------------------------- 1486 1487- [otConverters] Implemented ``__add__`` and ``__radd__`` methods on 1488 ``otConverters._LazyList`` that decompile a lazy list before adding 1489 it to another list or ``_LazyList`` instance. Fixes an ``AttributeError`` 1490 in the ``subset`` module when attempting to sum ``_LazyList`` objects 1491 (6ef48bd2, 1aef1683). 1492- [AAT] Support the `opbd` table with optical bounds (a47f6588). 1493- [AAT] Support `prop` table with glyph properties (d05617b4). 1494 1495 14963.15.0 (released 2017-08-17) 1497---------------------------- 1498 1499- [AAT] Added support for AAT lookups. The ``lcar`` table can be decompiled 1500 and recompiled; futher work needed to handle ``morx`` table (#1025). 1501- [subset] Keep (empty) DefaultLangSys for Script 'DFLT' (6eb807b5). 1502- [subset] Support GSUB/GPOS.FeatureVariations (fe01d87b). 1503- [varLib] In ``models.supportScalars``, ignore an axis when its peak value 1504 is 0 (fixes #1020). 1505- [varLib] Add default mappings to all axes in avar to fix rendering issue 1506 in some rasterizers (19c4b377, 04eacf13). 1507- [varLib] Flatten multiple tail PairPosFormat2 subtables before merging 1508 (c55ef525). 1509- [ttLib] Added support for recalculating font bounding box in ``CFF`` and 1510 ``head`` tables, and min/max values in ``hhea`` and ``vhea`` tables (#970). 1511 15123.14.0 (released 2017-07-31) 1513---------------------------- 1514 1515- [varLib.merger] Remove Extensions subtables before merging (f7c20cf8). 1516- [varLib] Initialize the avar segment map with required default entries 1517 (#1014). 1518- [varLib] Implemented optimal IUP optmiziation (#1019). 1519- [otData] Add ``AxisValueFormat4`` for STAT table v1.2 from OT v1.8.2 1520 (#1015). 1521- [name] Fixed BCP46 language tag for Mac langID=9: 'si' -> 'sl'. 1522- [subset] Return value from ``_DehintingT2Decompiler.op_hintmask`` 1523 (c0d672ba). 1524- [cffLib] Allow to get TopDict by index as well as by name (dca96c9c). 1525- [cffLib] Removed global ``isCFF2`` state; use one set of classes for 1526 both CFF and CFF2, maintaining backward compatibility existing code (#1007). 1527- [cffLib] Deprecated maxstack operator, per OpenType spec update 1.8.1. 1528- [cffLib] Added missing default (-100) for UnderlinePosition (#983). 1529- [feaLib] Enable setting nameIDs greater than 255 (#1003). 1530- [varLib] Recalculate ValueFormat when merging SinglePos (#996). 1531- [varLib] Do not emit MVAR if there are no entries in the variation store 1532 (#987). 1533- [ttx] For ``-x`` option, pad with space if table tag length is < 4. 1534 15353.13.1 (released 2017-05-30) 1536---------------------------- 1537 1538- [feaLib.builder] Removed duplicate lookups optimization. The original 1539 lookup order and semantics of the feature file are preserved (#976). 1540 15413.13.0 (released 2017-05-24) 1542---------------------------- 1543 1544- [varLib.mutator] Implement IUP optimization (#969). 1545- [_g_l_y_f.GlyphCoordinates] Changed ``__bool__()`` semantics to match those 1546 of other iterables (e46f949). Removed ``__abs__()`` (3db5be2). 1547- [varLib.interpolate_layout] Added ``mapped`` keyword argument to 1548 ``interpolate_layout`` to allow disabling avar mapping: if False (default), 1549 the location is mapped using the map element of the axes in designspace file; 1550 if True, it is assumed that location is in designspace's internal space and 1551 no mapping is performed (#950, #975). 1552- [varLib.interpolate_layout] Import designspace-loading logic from varLib. 1553- [varLib] Fixed bug with recombining PairPosClass2 subtables (81498e5, #914). 1554- [cffLib.specializer] When copying iterables, cast to list (462b7f86). 1555 15563.12.1 (released 2017-05-18) 1557---------------------------- 1558 1559- [pens.t2CharStringPen] Fixed AttributeError when calling addComponent in 1560 T2CharStringPen (#965). 1561 15623.12.0 (released 2017-05-17) 1563---------------------------- 1564 1565- [cffLib.specializer] Added new ``specializer`` module to optimize CFF 1566 charstrings, used by the T2CharStringPen (#948). 1567- [varLib.mutator] Sort glyphs by component depth before calculating composite 1568 glyphs' bounding boxes to ensure deltas are correctly caclulated (#945). 1569- [_g_l_y_f] Fixed loss of precision in GlyphCoordinates by using 'd' (double) 1570 instead of 'f' (float) as ``array.array`` typecode (#963, #964). 1571 15723.11.0 (released 2017-05-03) 1573---------------------------- 1574 1575- [t2CharStringPen] Initial support for specialized Type2 path operators: 1576 vmoveto, hmoveto, vlineto, hlineto, vvcurveto, hhcurveto, vhcurveto and 1577 hvcurveto. This should produce more compact charstrings (#940, #403). 1578- [Doc] Added Sphinx sources for the documentation. Thanks @gferreira (#935). 1579- [fvar] Expose flags in XML (#932) 1580- [name] Add helper function for building multi-lingual names (#921) 1581- [varLib] Fixed kern merging when a PairPosFormat2 has ClassDef1 with glyphs 1582 that are NOT present in the Coverage (1b5e1c4, #939). 1583- [varLib] Fixed non-deterministic ClassDef order with PY3 (f056c12, #927). 1584- [feLib] Throw an error when the same glyph is defined in multiple mark 1585 classes within the same lookup (3e3ff00, #453). 1586 15873.10.0 (released 2017-04-14) 1588---------------------------- 1589 1590- [varLib] Added support for building ``avar`` table, using the designspace 1591 ``<map>`` elements. 1592- [varLib] Removed unused ``build(..., axisMap)`` argument. Axis map should 1593 be specified in designspace file now. We do not accept nonstandard axes 1594 if ``<axes>`` element is not present. 1595- [varLib] Removed "custom" axis from the ``standard_axis_map``. This was 1596 added before when glyphsLib was always exporting the (unused) custom axis. 1597- [varLib] Added partial support for building ``MVAR`` table; does not 1598 implement ``gasp`` table variations yet. 1599- [pens] Added FilterPen base class, for pens that control another pen; 1600 factored out ``addComponent`` method from BasePen into a separate abstract 1601 DecomposingPen class; added DecomposingRecordingPen, which records 1602 components decomposed as regular contours. 1603- [TSI1] Fixed computation of the textLength of VTT private tables (#913). 1604- [loggingTools] Added ``LogMixin`` class providing a ``log`` property to 1605 subclasses, which returns a ``logging.Logger`` named after the latter. 1606- [loggingTools] Added ``assertRegex`` method to ``CapturingLogHandler``. 1607- [py23] Added backport for python 3's ``types.SimpleNamespace`` class. 1608- [EBLC] Fixed issue with python 3 ``zip`` iterator. 1609 16103.9.2 (released 2017-04-08) 1611--------------------------- 1612 1613- [pens] Added pen to draw glyphs using WxPython ``GraphicsPath`` class: 1614 https://wxpython.org/docs/api/wx.GraphicsPath-class.html 1615- [varLib.merger] Fixed issue with recombining multiple PairPosFormat2 1616 subtables (#888) 1617- [varLib] Do not encode gvar deltas that are all zeroes, or if all values 1618 are smaller than tolerance. 1619- [ttLib] _TTGlyphSet glyphs now also have ``height`` and ``tsb`` (top 1620 side bearing) attributes from the ``vmtx`` table, if present. 1621- [glyf] In ``GlyphCoordintes`` class, added ``__bool__`` / ``__nonzero__`` 1622 methods, and ``array`` property to get raw array. 1623- [ttx] Support reading TTX files with BOM (#896) 1624- [CFF2] Fixed the reporting of the number of regions in the font. 1625 16263.9.1 (released 2017-03-20) 1627--------------------------- 1628 1629- [varLib.merger] Fixed issue while recombining multiple PairPosFormat2 1630 subtables if they were split because of offset overflows (9798c30). 1631- [varLib.merger] Only merge multiple PairPosFormat1 subtables if there is 1632 at least one of the fonts with a non-empty Format1 subtable (0f5a46b). 1633- [varLib.merger] Fixed IndexError with empty ClassDef1 in PairPosFormat2 1634 (aad0d46). 1635- [varLib.merger] Avoid reusing Class2Record (mutable) objects (e6125b3). 1636- [varLib.merger] Calculate ClassDef1 and ClassDef2's Format when merging 1637 PairPosFormat2 (23511fd). 1638- [macUtils] Added missing ttLib import (b05f203). 1639 16403.9.0 (released 2017-03-13) 1641--------------------------- 1642 1643- [feaLib] Added (partial) support for parsing feature file comments ``# ...`` 1644 appearing in between statements (#879). 1645- [feaLib] Cleaned up syntax tree for FeatureNames. 1646- [ttLib] Added support for reading/writing ``CFF2`` table (thanks to 1647 @readroberts at Adobe), and ``TTFA`` (ttfautohint) table. 1648- [varLib] Fixed regression introduced with 3.8.0 in the calculation of 1649 ``NumShorts``, i.e. the number of deltas in ItemVariationData's delta sets 1650 that use a 16-bit representation (b2825ff). 1651 16523.8.0 (released 2017-03-05) 1653--------------------------- 1654 1655- New pens: MomentsPen, StatisticsPen, RecordingPen, and TeePen. 1656- [misc] Added new ``fontTools.misc.symfont`` module, for symbolic font 1657 statistical analysis; requires ``sympy`` (http://www.sympy.org/en/index.html) 1658- [varLib] Added experimental ``fontTools.varLib.interpolatable`` module for 1659 finding wrong contour order between different masters 1660- [varLib] designspace.load() now returns a dictionary, instead of a tuple, 1661 and supports <axes> element (#864); the 'masters' item was renamed 'sources', 1662 like the <sources> element in the designspace document 1663- [ttLib] Fixed issue with recalculating ``head`` modified timestamp when 1664 saving CFF fonts 1665- [ttLib] In TupleVariation, round deltas before compiling (#861, fixed #592) 1666- [feaLib] Ignore duplicate glyphs in classes used as MarkFilteringSet and 1667 MarkAttachmentType (#863) 1668- [merge] Changed the ``gasp`` table merge logic so that only the one from 1669 the first font is retained, similar to other hinting tables (#862) 1670- [Tests] Added tests for the ``varLib`` package, as well as test fonts 1671 from the "Annotated OpenType Specification" (AOTS) to exercise ``ttLib``'s 1672 table readers/writers (<https://github.com/adobe-type-tools/aots>) 1673 16743.7.2 (released 2017-02-17) 1675--------------------------- 1676 1677- [subset] Keep advance widths when stripping ".notdef" glyph outline in 1678 CID-keyed CFF fonts (#845) 1679- [feaLib] Zero values now produce the same results as makeotf (#633, #848) 1680- [feaLib] More compact encoding for “Contextual positioning with in-line 1681 single positioning rules” (#514) 1682 16833.7.1 (released 2017-02-15) 1684--------------------------- 1685 1686- [subset] Fixed issue with ``--no-hinting`` option whereby advance widths in 1687 Type 2 charstrings were also being stripped (#709, #343) 1688- [feaLib] include statements now resolve relative paths like makeotf (#838) 1689- [feaLib] table ``name`` now handles Unicode codepoints beyond the Basic 1690 Multilingual Plane, also supports old-style MacOS platform encodings (#842) 1691- [feaLib] correctly escape string literals when emitting feature syntax (#780) 1692 16933.7.0 (released 2017-02-11) 1694--------------------------- 1695 1696- [ttx, mtiLib] Preserve ordering of glyph alternates in GSUB type 3 (#833). 1697- [feaLib] Glyph names can have dashes, as per new AFDKO syntax v1.20 (#559). 1698- [feaLib] feaLib.Parser now needs the font's glyph map for parsing. 1699- [varLib] Fix regression where GPOS values were stored as 0. 1700- [varLib] Allow merging of class-based kerning when ClassDefs are different 1701 17023.6.3 (released 2017-02-06) 1703--------------------------- 1704 1705- [varLib] Fix building variation of PairPosFormat2 (b5c34ce). 1706- Populate defaults even for otTables that have postRead (e45297b). 1707- Fix compiling of MultipleSubstFormat1 with zero 'out' glyphs (b887860). 1708 17093.6.2 (released 2017-01-30) 1710--------------------------- 1711 1712- [varLib.merger] Fixed "TypeError: reduce() of empty sequence with no 1713 initial value" (3717dc6). 1714 17153.6.1 (released 2017-01-28) 1716--------------------------- 1717 1718- [py23] Fixed unhandled exception occurring at interpreter shutdown in 1719 the "last resort" logging handler (972b3e6). 1720- [agl] Ensure all glyph names are of native 'str' type; avoid mixing 1721 'str' and 'unicode' in TTFont.glyphOrder (d8c4058). 1722- Fixed inconsistent title levels in README.rst that caused PyPI to 1723 incorrectly render the reStructuredText page. 1724 17253.6.0 (released 2017-01-26) 1726--------------------------- 1727 1728- [varLib] Refactored and improved the variation-font-building process. 1729- Assembly code in the fpgm, prep, and glyf tables is now indented in 1730 XML output for improved readability. The ``instruction`` element is 1731 written as a simple tag if empty (#819). 1732- [ttx] Fixed 'I/O operation on closed file' error when dumping 1733 multiple TTXs to standard output with the '-o -' option. 1734- The unit test modules (``*_test.py``) have been moved outside of the 1735 fontTools package to the Tests folder, thus they are no longer 1736 installed (#811). 1737 17383.5.0 (released 2017-01-14) 1739--------------------------- 1740 1741- Font tables read from XML can now be written back to XML with no 1742 loss. 1743- GSUB/GPOS LookupType is written out in XML as an element, not 1744 comment. (#792) 1745- When parsing cmap table, do not store items mapped to glyph id 0. 1746 (#790) 1747- [otlLib] Make ClassDef sorting deterministic. Fixes #766 (7d1ddb2) 1748- [mtiLib] Added unit tests (#787) 1749- [cvar] Implemented cvar table 1750- [gvar] Renamed GlyphVariation to TupleVariation to match OpenType 1751 terminology. 1752- [otTables] Handle gracefully empty VarData.Item array when compiling 1753 XML. (#797) 1754- [varLib] Re-enabled generation of ``HVAR`` table for fonts with 1755 TrueType outlines; removed ``--build-HVAR`` command-line option. 1756- [feaLib] The parser can now be extended to support non-standard 1757 statements in FEA code by using a customized Abstract Syntax Tree. 1758 See, for example, ``feaLib.builder_test.test_extensions`` and 1759 baseClass.feax (#794, fixes #773). 1760- [feaLib] Added ``feaLib`` command to the 'fonttools' command-line 1761 tool; applies a feature file to a font. ``fonttools feaLib -h`` for 1762 help. 1763- [pens] The ``T2CharStringPen`` now takes an optional 1764 ``roundTolerance`` argument to control the rounding of coordinates 1765 (#804, fixes #769). 1766- [ci] Measure test coverage on all supported python versions and OSes, 1767 combine coverage data and upload to 1768 https://codecov.io/gh/fonttools/fonttools (#786) 1769- [ci] Configured Travis and Appveyor for running tests on Python 3.6 1770 (#785, 55c03bc) 1771- The manual pages installation directory can be customized through 1772 ``FONTTOOLS_MANPATH`` environment variable (#799, fixes #84). 1773- [Snippets] Added otf2ttf.py, for converting fonts from CFF to 1774 TrueType using the googlei18n/cu2qu module (#802) 1775 17763.4.0 (released 2016-12-21) 1777--------------------------- 1778 1779- [feaLib] Added support for generating FEA text from abstract syntax 1780 tree (AST) objects (#776). Thanks @mhosken 1781- Added ``agl.toUnicode`` function to convert AGL-compliant glyph names 1782 to Unicode strings (#774) 1783- Implemented MVAR table (b4d5381) 1784 17853.3.1 (released 2016-12-15) 1786--------------------------- 1787 1788- [setup] We no longer use versioneer.py to compute fonttools version 1789 from git metadata, as this has caused issues for some users (#767). 1790 Now we bump the version strings manually with a custom ``release`` 1791 command of setup.py script. 1792 17933.3.0 (released 2016-12-06) 1794--------------------------- 1795 1796- [ttLib] Implemented STAT table from OpenType 1.8 (#758) 1797- [cffLib] Fixed decompilation of CFF fonts containing non-standard 1798 key/value pairs in FontDict (issue #740; PR #744) 1799- [py23] minor: in ``round3`` function, allow the second argument to be 1800 ``None`` (#757) 1801- The standalone ``sstruct`` and ``xmlWriter`` modules, deprecated 1802 since vesion 3.2.0, have been removed. They can be imported from the 1803 ``fontTools.misc`` package. 1804 18053.2.3 (released 2016-12-02) 1806--------------------------- 1807 1808- [py23] optimized performance of round3 function; added backport for 1809 py35 math.isclose() (9d8dacb) 1810- [subset] fixed issue with 'narrow' (UCS-2) Python 2 builds and 1811 ``--text``/``--text-file`` options containing non-BMP chararcters 1812 (16d0e5e) 1813- [varLib] fixed issuewhen normalizing location values (8fa2ee1, #749) 1814- [inspect] Made it compatible with both python2 and python3 (167ee60, 1815 #748). Thanks @pnemade 1816 18173.2.2 (released 2016-11-24) 1818--------------------------- 1819 1820- [varLib] Do not emit null axes in fvar (1bebcec). Thanks @robmck-ms 1821- [varLib] Handle fonts without GPOS (7915a45) 1822- [merge] Ignore LangSys if None (a11bc56) 1823- [subset] Fix subsetting MathVariants (78d3cbe) 1824- [OS/2] Fix "Private Use (plane 15)" range (08a0d55). Thanks @mashabow 1825 18263.2.1 (released 2016-11-03) 1827--------------------------- 1828 1829- [OS/2] fix checking ``fsSelection`` bits matching ``head.macStyle`` 1830 bits 1831- [varLib] added ``--build-HVAR`` option to generate ``HVAR`` table for 1832 fonts with TrueType outlines. For ``CFF2``, it is enabled by default. 1833 18343.2.0 (released 2016-11-02) 1835--------------------------- 1836 1837- [varLib] Improve support for OpenType 1.8 Variable Fonts: 1838- Implement GDEF's VariationStore 1839- Implement HVAR/VVAR tables 1840- Partial support for loading MutatorMath .designspace files with 1841 varLib.designspace module 1842- Add varLib.models with Variation fonts interpolation models 1843- Implement GSUB/GPOS FeatureVariations 1844- Initial support for interpolating and merging OpenType Layout tables 1845 (see ``varLib.interpolate_layout`` and ``varLib.merger`` modules) 1846- [API change] Change version to be an integer instead of a float in 1847 XML output for GSUB, GPOS, GDEF, MATH, BASE, JSTF, HVAR, VVAR, feat, 1848 hhea and vhea tables. Scripts that set the Version for those to 1.0 1849 or other float values also need fixing. A warning is emitted when 1850 code or XML needs fix. 1851- several bug fixes to the cffLib module, contributed by Adobe's 1852 @readroberts 1853- The XML output for CFF table now has a 'major' and 'minor' elements 1854 for specifying whether it's version 1.0 or 2.0 (support for CFF2 is 1855 coming soon) 1856- [setup.py] remove undocumented/deprecated ``extra_path`` Distutils 1857 argument. This means that we no longer create a "FontTools" subfolder 1858 in site-packages containing the actual fontTools package, as well as 1859 the standalone xmlWriter and sstruct modules. The latter modules are 1860 also deprecated, and scheduled for removal in upcoming releases. 1861 Please change your import statements to point to from fontTools.misc 1862 import xmlWriter and from fontTools.misc import sstruct. 1863- [scripts] Add a 'fonttools' command-line tool that simply runs 1864 ``fontTools.*`` sub-modules: e.g. ``fonttools ttx``, 1865 ``fonttools subset``, etc. 1866- [hmtx/vmts] Read advance width/heights as unsigned short (uint16); 1867 automatically round float values to integers. 1868- [ttLib/xmlWriter] add 'newlinestr=None' keyword argument to 1869 ``TTFont.saveXML`` for overriding os-specific line endings (passed on 1870 to ``XMLWriter`` instances). 1871- [versioning] Use versioneer instead of ``setuptools_scm`` to 1872 dynamically load version info from a git checkout at import time. 1873- [feaLib] Support backslash-prefixed glyph names. 1874 18753.1.2 (released 2016-09-27) 1876--------------------------- 1877 1878- restore Makefile as an alternative way to build/check/install 1879- README.md: update instructions for installing package from source, 1880 and for running test suite 1881- NEWS: Change log was out of sync with tagged release 1882 18833.1.1 (released 2016-09-27) 1884--------------------------- 1885 1886- Fix ``ttLibVersion`` attribute in TTX files still showing '3.0' 1887 instead of '3.1'. 1888- Use ``setuptools_scm`` to manage package versions. 1889 18903.1.0 (released 2016-09-26) 1891--------------------------- 1892 1893- [feaLib] New library to parse and compile Adobe FDK OpenType Feature 1894 files. 1895- [mtiLib] New library to parse and compile Monotype 'FontDame' 1896 OpenType Layout Tables files. 1897- [voltLib] New library to parse Microsoft VOLT project files. 1898- [otlLib] New library to work with OpenType Layout tables. 1899- [varLib] New library to work with OpenType Font Variations. 1900- [pens] Add ttGlyphPen to draw to TrueType glyphs, and t2CharStringPen 1901 to draw to Type 2 Charstrings (CFF); add areaPen and perimeterPen. 1902- [ttLib.tables] Implement 'meta' and 'trak' tables. 1903- [ttx] Add --flavor option for compiling to 'woff' or 'woff2'; add 1904 ``--with-zopfli`` option to use Zopfli to compress WOFF 1.0 fonts. 1905- [subset] Support subsetting 'COLR'/'CPAL' and 'CBDT'/'CBLC' color 1906 fonts tables, and 'gvar' table for variation fonts. 1907- [Snippets] Add ``symfont.py``, for symbolic font statistics analysis; 1908 interpolatable.py, a preliminary script for detecting interpolation 1909 errors; ``{merge,dump}_woff_metadata.py``. 1910- [classifyTools] Helpers to classify things into classes. 1911- [CI] Run tests on Windows, Linux and macOS using Appveyor and Travis 1912 CI; check unit test coverage with Coverage.py/Coveralls; automatic 1913 deployment to PyPI on tags. 1914- [loggingTools] Use Python built-in logging module to print messages. 1915- [py23] Make round() behave like Python 3 built-in round(); define 1916 round2() and round3(). 1917 19183.0 (released 2015-09-01) 1919------------------------- 1920 1921- Add Snippet scripts for cmap subtable format conversion, printing 1922 GSUB/GPOS features, building a GX font from two masters 1923- TTX WOFF2 support and a ``-f`` option to overwrite output file(s) 1924- Support GX tables: ``avar``, ``gvar``, ``fvar``, ``meta`` 1925- Support ``feat`` and gzip-compressed SVG tables 1926- Upgrade Mac East Asian encodings to native implementation if 1927 available 1928- Add Roman Croatian and Romanian encodings, codecs for mac-extended 1929 East Asian encodings 1930- Implement optimal GLYF glyph outline packing; disabled by default 1931 19322.5 (released 2014-09-24) 1933------------------------- 1934 1935- Add a Qt pen 1936- Add VDMX table converter 1937- Load all OpenType sub-structures lazily 1938- Add support for cmap format 13. 1939- Add pyftmerge tool 1940- Update to Unicode 6.3.0d3 1941- Add pyftinspect tool 1942- Add support for Google CBLC/CBDT color bitmaps, standard EBLC/EBDT 1943 embedded bitmaps, and ``SVG`` table (thanks to Read Roberts at Adobe) 1944- Add support for loading, saving and ttx'ing WOFF file format 1945- Add support for Microsoft COLR/CPAL layered color glyphs 1946- Support PyPy 1947- Support Jython, by replacing numpy with array/lists modules and 1948 removed it, pure-Python StringIO, not cStringIO 1949- Add pyftsubset and Subsetter object, supporting CFF and TTF 1950- Add to ttx args for -q for quiet mode, -z to choose a bitmap dump 1951 format 1952 19532.4 (released 2013-06-22) 1954------------------------- 1955 1956- Option to write to arbitrary files 1957- Better dump format for DSIG 1958- Better detection of OTF XML 1959- Fix issue with Apple's kern table format 1960- Fix mangling of TT glyph programs 1961- Fix issues related to mona.ttf 1962- Fix Windows Installer instructions 1963- Fix some modern MacOS issues 1964- Fix minor issues and typos 1965 19662.3 (released 2009-11-08) 1967------------------------- 1968 1969- TrueType Collection (TTC) support 1970- Python 2.6 support 1971- Update Unicode data to 5.2.0 1972- Couple of bug fixes 1973 19742.2 (released 2008-05-18) 1975------------------------- 1976 1977- ClearType support 1978- cmap format 1 support 1979- PFA font support 1980- Switched from Numeric to numpy 1981- Update Unicode data to 5.1.0 1982- Update AGLFN data to 1.6 1983- Many bug fixes 1984 19852.1 (released 2008-01-28) 1986------------------------- 1987 1988- Many years worth of fixes and features 1989 19902.0b2 (released 2002-??-??) 1991--------------------------- 1992 1993- Be "forgiving" when interpreting the maxp table version field: 1994 interpret any value as 1.0 if it's not 0.5. Fixes dumping of these 1995 GPL fonts: http://www.freebsd.org/cgi/pds.cgi?ports/chinese/wangttf 1996- Fixed ttx -l: it turned out this part of the code didn't work with 1997 Python 2.2.1 and earlier. My bad to do most of my testing with a 1998 different version than I shipped TTX with :-( 1999- Fixed bug in ClassDef format 1 subtable (Andreas Seidel bumped into 2000 this one). 2001 20022.0b1 (released 2002-09-10) 2003--------------------------- 2004 2005- Fixed embarrassing bug: the master checksum in the head table is now 2006 calculated correctly even on little-endian platforms (such as Intel). 2007- Made the cmap format 4 compiler smarter: the binary data it creates 2008 is now more or less as compact as possible. TTX now makes more 2009 compact data than in any shipping font I've tested it with. 2010- Dump glyph names as a separate "GlyphOrder" pseudo table as opposed 2011 to as part of the glyf table (obviously needed for CFF-OTF's). 2012- Added proper support for the CFF table. 2013- Don't barf on empty tables (questionable, but "there are font out 2014 there...") 2015- When writing TT glyf data, align glyphs on 4-byte boundaries. This 2016 seems to be the current recommendation by MS. Also: don't barf on 2017 fonts which are already 4-byte aligned. 2018- Windows installer contributed bu Adam Twardoch! Yay! 2019- Changed the command line interface again, now by creating one new 2020 tool replacing the old ones: ttx It dumps and compiles, depending on 2021 input file types. The options have changed somewhat. 2022- The -d option is back (output dir) 2023- ttcompile's -i options is now called -m (as in "merge"), to avoid 2024 clash with dump's -i. 2025- The -s option ("split tables") no longer creates a directory, but 2026 instead outputs a small .ttx file containing references to the 2027 individual table files. This is not a true link, it's a simple file 2028 name, and the referenced file should be in the same directory so 2029 ttcompile can find them. 2030- compile no longer accepts a directory as input argument. Instead it 2031 can parse the new "mini-ttx" format as output by "ttx -s". 2032- all arguments are input files 2033- Renamed the command line programs and moved them to the Tools 2034 subdirectory. They are now installed by the setup.py install script. 2035- Added OpenType support. BASE, GDEF, GPOS, GSUB and JSTF are (almost) 2036 fully supported. The XML output is not yet final, as I'm still 2037 considering to output certain subtables in a more human-friendly 2038 manner. 2039- Fixed 'kern' table to correctly accept subtables it doesn't know 2040 about, as well as interpreting Apple's definition of the 'kern' table 2041 headers correctly. 2042- Fixed bug where glyphnames were not calculated from 'cmap' if it was 2043 (one of the) first tables to be decompiled. More specifically: it 2044 cmap was the first to ask for a glyphID -> glyphName mapping. 2045- Switched XML parsers: use expat instead of xmlproc. Should be faster. 2046- Removed my UnicodeString object: I now require Python 2.0 or up, 2047 which has unicode support built in. 2048- Removed assert in glyf table: redundant data at the end of the table 2049 is now ignored instead of raising an error. Should become a warning. 2050- Fixed bug in hmtx/vmtx code that only occured if all advances were 2051 equal. 2052- Fixed subtle bug in TT instruction disassembler. 2053- Couple of fixes to the 'post' table. 2054- Updated OS/2 table to latest spec. 2055 20561.0b1 (released 2001-08-10) 2057--------------------------- 2058 2059- Reorganized the command line interface for ttDump.py and 2060 ttCompile.py, they now behave more like "normal" command line tool, 2061 in that they accept multiple input files for batch processing. 2062- ttDump.py and ttCompile.py don't silently override files anymore, but 2063 ask before doing so. Can be overridden by -f. 2064- Added -d option to both ttDump.py and ttCompile.py. 2065- Installation is now done with distutils. (Needs work for environments 2066 without compilers.) 2067- Updated installation instructions. 2068- Added some workarounds so as to handle certain buggy fonts more 2069 gracefully. 2070- Updated Unicode table to Unicode 3.0 (Thanks Antoine!) 2071- Included a Python script by Adam Twardoch that adds some useful stuff 2072 to the Windows registry. 2073- Moved the project to SourceForge. 2074 20751.0a6 (released 2000-03-15) 2076--------------------------- 2077 2078- Big reorganization: made ttLib a subpackage of the new fontTools 2079 package, changed several module names. Called the entire suite 2080 "FontTools" 2081- Added several submodules to fontTools, some new, some older. 2082- Added experimental CFF/GPOS/GSUB support to ttLib, read-only (but XML 2083 dumping of GPOS/GSUB is for now disabled) 2084- Fixed hdmx endian bug 2085- Added -b option to ttCompile.py, it disables recalculation of 2086 bounding boxes, as requested by Werner Lemberg. 2087- Renamed tt2xml.pt to ttDump.py and xml2tt.py to ttCompile.py 2088- Use ".ttx" as file extension instead of ".xml". 2089- TTX is now the name of the XML-based *format* for TT fonts, and not 2090 just an application. 2091 20921.0a5 2093----- 2094 2095Never released 2096 2097- More tables supported: hdmx, vhea, vmtx 2098 20991.0a3 & 1.0a4 2100------------- 2101 2102Never released 2103 2104- fixed most portability issues 2105- retracted the "Euro_or_currency" change from 1.0a2: it was 2106 nonsense! 2107 21081.0a2 (released 1999-05-02) 2109--------------------------- 2110 2111- binary release for MacOS 2112- genenates full FOND resources: including width table, PS font name 2113 info and kern table if applicable. 2114- added cmap format 4 support. Extra: dumps Unicode char names as XML 2115 comments! 2116- added cmap format 6 support 2117- now accepts true type files starting with "true" (instead of just 2118 0x00010000 and "OTTO") 2119- 'glyf' table support is now complete: I added support for composite 2120 scale, xy-scale and two-by-two for the 'glyf' table. For now, 2121 component offset scale behaviour defaults to Apple-style. This only 2122 affects the (re)calculation of the glyph bounding box. 2123- changed "Euro" to "Euro_or_currency" in the Standard Apple Glyph 2124 order list, since we cannot tell from the 'post' table which is 2125 meant. I should probably doublecheck with a Unicode encoding if 2126 available. (This does not affect the output!) 2127 2128Fixed bugs: - 'hhea' table is now recalculated correctly - fixed wrong 2129assumption about sfnt resource names 2130 21311.0a1 (released 1999-04-27) 2132--------------------------- 2133 2134- initial binary release for MacOS 2135