METADATA 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316
  1. Metadata-Version: 2.4
  2. Name: fonttools
  3. Version: 4.62.1
  4. Summary: Tools to manipulate font files
  5. Home-page: http://github.com/fonttools/fonttools
  6. Author: Just van Rossum
  7. Author-email: just@letterror.com
  8. Maintainer: Behdad Esfahbod
  9. Maintainer-email: behdad@behdad.org
  10. License: MIT
  11. Platform: Any
  12. Classifier: Development Status :: 5 - Production/Stable
  13. Classifier: Environment :: Console
  14. Classifier: Environment :: Other Environment
  15. Classifier: Intended Audience :: Developers
  16. Classifier: Intended Audience :: End Users/Desktop
  17. Classifier: Natural Language :: English
  18. Classifier: Operating System :: OS Independent
  19. Classifier: Programming Language :: Python
  20. Classifier: Programming Language :: Python :: 3.10
  21. Classifier: Programming Language :: Python :: 3.11
  22. Classifier: Programming Language :: Python :: 3.12
  23. Classifier: Programming Language :: Python :: 3.13
  24. Classifier: Programming Language :: Python :: 3.14
  25. Classifier: Programming Language :: Python :: 3
  26. Classifier: Topic :: Text Processing :: Fonts
  27. Classifier: Topic :: Multimedia :: Graphics
  28. Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
  29. Requires-Python: >=3.10
  30. Description-Content-Type: text/x-rst
  31. License-File: LICENSE
  32. License-File: LICENSE.external
  33. Provides-Extra: ufo
  34. Provides-Extra: lxml
  35. Requires-Dist: lxml>=4.0; extra == "lxml"
  36. Provides-Extra: woff
  37. Requires-Dist: brotli>=1.0.1; platform_python_implementation == "CPython" and extra == "woff"
  38. Requires-Dist: brotlicffi>=0.8.0; platform_python_implementation != "CPython" and extra == "woff"
  39. Requires-Dist: zopfli>=0.1.4; extra == "woff"
  40. Provides-Extra: unicode
  41. Requires-Dist: unicodedata2>=17.0.0; python_version <= "3.14" and extra == "unicode"
  42. Provides-Extra: graphite
  43. Requires-Dist: lz4>=1.7.4.2; extra == "graphite"
  44. Provides-Extra: interpolatable
  45. Requires-Dist: scipy; platform_python_implementation != "PyPy" and extra == "interpolatable"
  46. Requires-Dist: munkres; platform_python_implementation == "PyPy" and extra == "interpolatable"
  47. Requires-Dist: pycairo; extra == "interpolatable"
  48. Provides-Extra: plot
  49. Requires-Dist: matplotlib; extra == "plot"
  50. Provides-Extra: symfont
  51. Requires-Dist: sympy; extra == "symfont"
  52. Provides-Extra: type1
  53. Requires-Dist: xattr; sys_platform == "darwin" and extra == "type1"
  54. Provides-Extra: pathops
  55. Requires-Dist: skia-pathops>=0.5.0; extra == "pathops"
  56. Provides-Extra: repacker
  57. Requires-Dist: uharfbuzz>=0.45.0; extra == "repacker"
  58. Provides-Extra: all
  59. Requires-Dist: lxml>=4.0; extra == "all"
  60. Requires-Dist: brotli>=1.0.1; platform_python_implementation == "CPython" and extra == "all"
  61. Requires-Dist: brotlicffi>=0.8.0; platform_python_implementation != "CPython" and extra == "all"
  62. Requires-Dist: zopfli>=0.1.4; extra == "all"
  63. Requires-Dist: unicodedata2>=17.0.0; python_version <= "3.14" and extra == "all"
  64. Requires-Dist: lz4>=1.7.4.2; extra == "all"
  65. Requires-Dist: scipy; platform_python_implementation != "PyPy" and extra == "all"
  66. Requires-Dist: munkres; platform_python_implementation == "PyPy" and extra == "all"
  67. Requires-Dist: pycairo; extra == "all"
  68. Requires-Dist: matplotlib; extra == "all"
  69. Requires-Dist: sympy; extra == "all"
  70. Requires-Dist: xattr; sys_platform == "darwin" and extra == "all"
  71. Requires-Dist: skia-pathops>=0.5.0; extra == "all"
  72. Requires-Dist: uharfbuzz>=0.45.0; extra == "all"
  73. Dynamic: author
  74. Dynamic: author-email
  75. Dynamic: classifier
  76. Dynamic: description
  77. Dynamic: description-content-type
  78. Dynamic: home-page
  79. Dynamic: license
  80. Dynamic: license-file
  81. Dynamic: maintainer
  82. Dynamic: maintainer-email
  83. Dynamic: platform
  84. Dynamic: provides-extra
  85. Dynamic: requires-python
  86. Dynamic: summary
  87. |CI Build Status| |Coverage Status| |PyPI| |Gitter Chat|
  88. What is this?
  89. ~~~~~~~~~~~~~
  90. | fontTools is a library for manipulating fonts, written in Python. The
  91. project includes the TTX tool, that can convert TrueType and OpenType
  92. fonts to and from an XML text format, which is also called TTX. It
  93. supports TrueType, OpenType, AFM and to an extent Type 1 and some
  94. Mac-specific formats. The project has an `MIT open-source
  95. license <LICENSE>`__.
  96. | Among other things this means you can use it free of charge.
  97. `User documentation <https://fonttools.readthedocs.io/en/latest/>`_ and
  98. `developer documentation <https://fonttools.readthedocs.io/en/latest/developer.html>`_
  99. are available at `Read the Docs <https://fonttools.readthedocs.io/>`_.
  100. Installation
  101. ~~~~~~~~~~~~
  102. FontTools requires `Python <http://www.python.org/download/>`__ 3.10
  103. or later. We try to follow the same schedule of minimum Python version support as
  104. NumPy (see `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`__).
  105. The package is listed in the Python Package Index (PyPI), so you can
  106. install it with `pip <https://pip.pypa.io>`__:
  107. .. code:: sh
  108. pip install fonttools
  109. If you would like to contribute to its development, you can clone the
  110. repository from GitHub, install the package in 'editable' mode and
  111. modify the source code in place. We recommend creating a virtual
  112. environment, using `virtualenv <https://virtualenv.pypa.io>`__ or
  113. Python 3 `venv <https://docs.python.org/3/library/venv.html>`__ module.
  114. .. code:: sh
  115. # download the source code to 'fonttools' folder
  116. git clone https://github.com/fonttools/fonttools.git
  117. cd fonttools
  118. # create new virtual environment called e.g. 'fonttools-venv', or anything you like
  119. python -m virtualenv fonttools-venv
  120. # source the `activate` shell script to enter the environment (Unix-like); to exit, just type `deactivate`
  121. . fonttools-venv/bin/activate
  122. # to activate the virtual environment in Windows `cmd.exe`, do
  123. fonttools-venv\Scripts\activate.bat
  124. # install in 'editable' mode
  125. pip install -e .
  126. Optional Requirements
  127. ---------------------
  128. The ``fontTools`` package currently has no (required) external dependencies
  129. besides the modules included in the Python Standard Library.
  130. However, a few extra dependencies are required by some of its modules, which
  131. are needed to unlock optional features.
  132. The ``fonttools`` PyPI distribution also supports so-called "extras", i.e. a
  133. set of keywords that describe a group of additional dependencies, which can be
  134. used when installing via pip, or when specifying a requirement.
  135. For example:
  136. .. code:: sh
  137. pip install fonttools[ufo,lxml,woff,unicode]
  138. This command will install fonttools, as well as the optional dependencies that
  139. are required to unlock the extra features named "ufo", etc.
  140. - ``Lib/fontTools/misc/etree.py``
  141. The module exports a ElementTree-like API for reading/writing XML files, and
  142. allows to use as the backend either the built-in ``xml.etree`` module or
  143. `lxml <https://lxml.de>`__. The latter is preferred whenever present,
  144. as it is generally faster and more secure.
  145. *Extra:* ``lxml``
  146. - ``Lib/fontTools/ttLib/woff2.py``
  147. Module to compress/decompress WOFF 2.0 web fonts; it requires:
  148. * `brotli <https://pypi.python.org/pypi/Brotli>`__: Python bindings of
  149. the Brotli compression library.
  150. *Extra:* ``woff``
  151. - ``Lib/fontTools/ttLib/sfnt.py``
  152. To better compress WOFF 1.0 web fonts, the following module can be used
  153. instead of the built-in ``zlib`` library:
  154. * `zopfli <https://pypi.python.org/pypi/zopfli>`__: Python bindings of
  155. the Zopfli compression library.
  156. *Extra:* ``woff``
  157. - ``Lib/fontTools/unicode.py``
  158. To display the Unicode character names when dumping the ``cmap`` table
  159. with ``ttx`` we use the ``unicodedata`` module in the Standard Library.
  160. The version included in there varies between different Python versions.
  161. To use the latest available data, you can install:
  162. * `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__:
  163. ``unicodedata`` backport for Python 3.x updated to the latest Unicode
  164. version 17.0.
  165. *Extra:* ``unicode``
  166. - ``Lib/fontTools/varLib/interpolatable.py``
  167. Module for finding wrong contour/component order between different masters.
  168. It requires one of the following packages in order to solve the so-called
  169. "minimum weight perfect matching problem in bipartite graphs", or
  170. the Assignment problem:
  171. * `scipy <https://pypi.python.org/pypi/scipy>`__: the Scientific Library
  172. for Python, which internally uses `NumPy <https://pypi.python.org/pypi/numpy>`__
  173. arrays and hence is very fast;
  174. * `munkres <https://pypi.python.org/pypi/munkres>`__: a pure-Python
  175. module that implements the Hungarian or Kuhn-Munkres algorithm. Slower than
  176. SciPy, but useful for minimalistic systems where adding SciPy is undesirable.
  177. This ensures both performance (via SciPy) and minimal footprint (via Munkres)
  178. are possible.
  179. To plot the results to a PDF or HTML format, you also need to install:
  180. * `pycairo <https://pypi.org/project/pycairo/>`__: Python bindings for the
  181. Cairo graphics library. Note that wheels are currently only available for
  182. Windows, for other platforms see pycairo's `installation instructions
  183. <https://pycairo.readthedocs.io/en/latest/getting_started.html>`__.
  184. *Extra:* ``interpolatable``
  185. - ``Lib/fontTools/varLib/plot.py``
  186. Module for visualizing DesignSpaceDocument and resulting VariationModel.
  187. * `matplotlib <https://pypi.org/pypi/matplotlib>`__: 2D plotting library.
  188. *Extra:* ``plot``
  189. - ``Lib/fontTools/misc/symfont.py``
  190. Advanced module for symbolic font statistics analysis; it requires:
  191. * `sympy <https://pypi.python.org/pypi/sympy>`__: the Python library for
  192. symbolic mathematics.
  193. *Extra:* ``symfont``
  194. - ``Lib/fontTools/t1Lib.py``
  195. To get the file creator and type of Macintosh PostScript Type 1 fonts
  196. on Python 3 you need to install the following module, as the old ``MacOS``
  197. module is no longer included in Mac Python:
  198. * `xattr <https://pypi.python.org/pypi/xattr>`__: Python wrapper for
  199. extended filesystem attributes (macOS platform only).
  200. *Extra:* ``type1``
  201. - ``Lib/fontTools/ttLib/removeOverlaps.py``
  202. Simplify TrueType glyphs by merging overlapping contours and components.
  203. * `skia-pathops <https://pypi.python.org/pypi/skia-pathops>`__: Python
  204. bindings for the Skia library's PathOps module, performing boolean
  205. operations on paths (union, intersection, etc.).
  206. *Extra:* ``pathops``
  207. - ``Lib/fontTools/ufoLib``
  208. Package for reading and writing UFO source files; if available, it will use:
  209. * `fs <https://pypi.org/pypi/fs>`__: (aka ``pyfilesystem2``) filesystem abstraction layer
  210. for reading and writing UFOs to the local filesystem or zip files (.ufoz), instead of
  211. the built-in ``fontTools.misc.filesystem`` package.
  212. The reader and writer classes can in theory also accept any object compatible the
  213. ``fs.base.FS`` interface, although not all have been tested.
  214. - ``Lib/fontTools/pens/cocoaPen.py`` and ``Lib/fontTools/pens/quartzPen.py``
  215. Pens for drawing glyphs with Cocoa ``NSBezierPath`` or ``CGPath`` require:
  216. * `PyObjC <https://pypi.python.org/pypi/pyobjc>`__: the bridge between
  217. Python and the Objective-C runtime (macOS platform only).
  218. - ``Lib/fontTools/pens/qtPen.py``
  219. Pen for drawing glyphs with Qt's ``QPainterPath``, requires:
  220. * `PyQt5 <https://pypi.python.org/pypi/PyQt5>`__: Python bindings for
  221. the Qt cross platform UI and application toolkit.
  222. - ``Lib/fontTools/pens/reportLabPen.py``
  223. Pen to drawing glyphs as PNG images, requires:
  224. * `reportlab <https://pypi.python.org/pypi/reportlab>`__: Python toolkit
  225. for generating PDFs and graphics.
  226. - ``Lib/fontTools/pens/freetypePen.py``
  227. Pen to drawing glyphs with FreeType as raster images, requires:
  228. * `freetype-py <https://pypi.python.org/pypi/freetype-py>`__: Python binding
  229. for the FreeType library.
  230. - ``Lib/fontTools/ttLib/tables/otBase.py``
  231. Use the Harfbuzz library to serialize GPOS/GSUB using ``hb_repack`` method, requires:
  232. * `uharfbuzz <https://pypi.python.org/pypi/uharfbuzz>`__: Streamlined Cython
  233. bindings for the harfbuzz shaping engine
  234. *Extra:* ``repacker``
  235. How to make a new release
  236. ~~~~~~~~~~~~~~~~~~~~~~~~~
  237. 1) Update ``NEWS.rst`` with all the changes since the last release. Write a
  238. changelog entry for each PR, with one or two short sentences summarizing it,
  239. as well as links to the PR and relevant issues addressed by the PR. Do not
  240. put a new title, the next command will do it for you.
  241. 2) Use semantic versioning to decide whether the new release will be a 'major',
  242. 'minor' or 'patch' release. It's usually one of the latter two, depending on
  243. whether new backward compatible APIs were added, or simply some bugs were fixed.
  244. 3) From inside a venv, first do ``pip install -r dev-requirements.txt``, then run
  245. the ``python setup.py release`` command from the tip of the ``main`` branch.
  246. By default this bumps the third or 'patch' digit only, unless you pass ``--major``
  247. or ``--minor`` to bump respectively the first or second digit.
  248. This bumps the package version string, extracts the changes since the latest
  249. version from ``NEWS.rst``, and uses that text to create an annotated git tag
  250. (or a signed git tag if you pass the ``--sign`` option and your git and Github
  251. account are configured for `signing commits <https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification/signing-commits>`__
  252. using a GPG key).
  253. It also commits an additional version bump which opens the main branch for
  254. the subsequent developmental cycle
  255. 4) Push both the tag and commit to the upstream repository, by running the command
  256. ``git push --follow-tags``. Note: it may push other local tags as well, be
  257. careful.
  258. 5) Let the CI build the wheel and source distribution packages and verify both
  259. get uploaded to the Python Package Index (PyPI).
  260. 6) [Optional] Go to fonttools `Github Releases <https://github.com/fonttools/fonttools/releases>`__
  261. page and create a new release, copy-pasting the content of the git tag
  262. message. This way, the release notes are nicely formatted as markdown, and
  263. users watching the repo will get an email notification. One day we shall
  264. automate that too.
  265. Acknowledgments
  266. ~~~~~~~~~~~~~~~~
  267. In alphabetical order:
  268. aschmitz, Olivier Berten, Samyak Bhuta, Erik van Blokland, Petr van Blokland,
  269. Jelle Bosma, Sascha Brawer, Tom Byrer, Antonio Cavedoni, Frédéric Coiffier,
  270. Vincent Connare, David Corbett, Simon Cozens, Dave Crossland, Simon Daniels,
  271. Peter Dekkers, Behdad Esfahbod, Behnam Esfahbod, Hannes Famira, Sam Fishman,
  272. Matt Fontaine, Takaaki Fuji, Rob Hagemans, Yannis Haralambous, Greg Hitchcock,
  273. Jeremie Hornus, Khaled Hosny, John Hudson, Denis Moyogo Jacquerye, Jack Jansen,
  274. Tom Kacvinsky, Jens Kutilek, Antoine Leca, Werner Lemberg, Tal Leming, Liang Hai, Peter
  275. Lofting, Cosimo Lupo, Olli Meier, Masaya Nakamura, Dave Opstad, Laurence Penney,
  276. Roozbeh Pournader, Garret Rieger, Read Roberts, Colin Rofls, Guido van Rossum,
  277. Just van Rossum, Andreas Seidel, Georg Seifert, Chris Simpkins, Miguel Sousa,
  278. Adam Twardoch, Adrien Tétar, Vitaly Volkov, Paul Wise.
  279. Copyrights
  280. ~~~~~~~~~~
  281. | Copyright (c) 1999-2004 Just van Rossum, LettError
  282. (just@letterror.com)
  283. | See `LICENSE <LICENSE>`__ for the full license.
  284. Copyright (c) 2000 BeOpen.com. All Rights Reserved.
  285. Copyright (c) 1995-2001 Corporation for National Research Initiatives.
  286. All Rights Reserved.
  287. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All
  288. Rights Reserved.
  289. Have fun!
  290. .. |CI Build Status| image:: https://github.com/fonttools/fonttools/workflows/Test/badge.svg
  291. :target: https://github.com/fonttools/fonttools/actions?query=workflow%3ATest
  292. .. |Coverage Status| image:: https://codecov.io/gh/fonttools/fonttools/branch/main/graph/badge.svg
  293. :target: https://codecov.io/gh/fonttools/fonttools
  294. .. |PyPI| image:: https://img.shields.io/pypi/v/fonttools.svg
  295. :target: https://pypi.org/project/FontTools
  296. .. |Gitter Chat| image:: https://badges.gitter.im/fonttools-dev/Lobby.svg
  297. :alt: Join the chat at https://gitter.im/fonttools-dev/Lobby
  298. :target: https://gitter.im/fonttools-dev/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
  299. Changelog
  300. ~~~~~~~~~
  301. 4.62.1 (released 2026-03-13)
  302. ----------------------------
  303. - [feaLib] Extend contextual rule merging to all rule types: single subst, GSUB/GPOS
  304. named lookups, ignore rules, and chained alternate subst (#4061).
  305. 4.62.0 (released 2026-03-09)
  306. ----------------------------
  307. - [diff] Add new ``fonttools diff`` command for comparing font files, imported from the
  308. ``fdiff`` project and heavily reworked (#1190, #4007, #4009, #4011, #4013, #4019).
  309. - [feaLib] Fix ``VariableScalar`` interpolation bug with non-linear avar mappings. Also
  310. decouple ``VariableScalar`` from compiled fonts, allowing it to work with designspace data
  311. before compilation (#3938, #4054).
  312. - [feaLib] Fix ``VariableScalar`` axis ordering and iterative delta rounding to match fontc
  313. behavior (#4053).
  314. - [feaLib] Merge chained multi subst rules with same context into a single subtable instead of
  315. emitting one subtable per glyph (#4016, #4058).
  316. - [feaLib] Pass location to ``ConditionsetStatement`` to fix glyphsLib round-tripping
  317. (fontra/fontra-glyphs#130, #4057).
  318. - [feaLib] Write ``0xFFFF`` instead of ``0`` for missing nameIDs in ``cv`` feature params
  319. (#4010, #4012).
  320. - [cmap] Fix ``CmapSubtable.__lt__()`` ``TypeError`` on Python 3 when subtables share the
  321. same encoding record, and add compile-time validation for unique encoding records (#4035,
  322. #4055).
  323. - [svgLib] Skip non-element XML nodes (comments, processing instructions) when drawing SVG
  324. paths (#4042, #4043).
  325. - [glifLib] Fix regression reading glyph outlines when ``glyphObject=None`` (#4030, #4031).
  326. - [pointPen] Fix ``SegmentToPointPen`` edge case: only remove a duplicate final point on
  327. ``closePath()`` if it is an on-curve point (#4014, #4015).
  328. - [cffLib] **SECURITY** Replace ``eval()`` with ``safeEval()`` in ``parseBlendList()`` to
  329. prevent arbitrary code execution from crafted TTX files (#4039, #4040).
  330. - [ttLib] Remove defunct Adobe SING Glyphlet tables (``META``, ``SING``, ``GMAP``, ``GPKG``)
  331. (#4044).
  332. - [varLib.interpolatable] Various bugfixes: fix swapped nodeTypes assignment, duplicate
  333. kink-detector condition, typos, CFF2 vsindex parsing, glyph existence check, and plot
  334. helpers (#4046).
  335. - [varLib.models] Fix ``getSubModel`` not forwarding ``extrapolate``/``axisRanges``; check
  336. location uniqueness after stripping zeros (#4047).
  337. - [varLib] Fix ``--variable-fonts`` filter in ``build_many``; remove dead code and fix
  338. comments (#4048).
  339. - [avar] Preserve existing name table in build; keep ``unbuild`` return types consistent;
  340. validate ``map`` CLI coordinates (#4051).
  341. - [cu2qu/qu2cu] Add input validation: reject non-positive tolerances, validate curve inputs
  342. and list lengths (#4052).
  343. - [colorLib] Raise a clear ``ColorLibError`` when base glyphs are missing from glyphMap,
  344. instead of a confusing ``KeyError`` (#4041).
  345. - [glyf] Remove unnecessary ``fvar`` table dependency (#4017).
  346. - [fvar/trak] Remove unnecessary ``name`` table dependency (#4018).
  347. - [ufoLib] Relax guideline validation to follow the updated spec (#3537, #3553).
  348. - [ttFont] Fix ``saveXML`` regression with empty table lists, clarify docstring (#4025, #4026,
  349. #4056).
  350. - [setup.py] Link ``libm`` for Cython extensions using math functions (#4028, #4029).
  351. - Add typing annotations for ``DSIG``, ``DefaultTable``, ``ttProgram`` (#4033).
  352. 4.61.1 (released 2025-12-12)
  353. ----------------------------
  354. - [otlLib] buildCoverage: return empty Coverage instead of None (#4003, #4004).
  355. - [instancer] bug fix in ``avar2`` full instancing (#4002).
  356. - [designspaceLib] Preserve empty conditionsets when serializing to XML (#4001).
  357. - [fontBu ilder] Fix FontBuilder ``setupOS2()`` default params globally polluted (#3996, #3997).
  358. - [ttFont] Add more typing annotations to ttFont, xmlWriter, sfnt, varLib.models and others (#3952, #3826).
  359. - Explicitly test and declare support for Python 3.14, even though we were already shipping pre-built wheels for it (#3990).
  360. 4.60.2 (released 2025-12-09)
  361. ----------------------------
  362. - **Backport release** Same as 4.61.0 but without "Drop support for EOL Python 3.9" change to allow
  363. downstream projects still on Python 3.9 to avail of the security fix for CVE-2025-66034 (#3994, #3999).
  364. 4.61.0 (released 2025-11-28)
  365. ----------------------------
  366. - [varLib.main]: **SECURITY** Only use basename(vf.filename) to prevent path traversal attacks when
  367. running ``fonttools varLib`` command, or code which invokes ``fonttools.varLib.main()``.
  368. Fixes CVE-2025-66034, see:
  369. https://github.com/fonttools/fonttools/security/advisories/GHSA-768j-98cg-p3fv.
  370. - [feaLib] Sort BaseLangSysRecords by tag (#3986).
  371. - Drop support for EOL Python 3.9 (#3982).
  372. - [instancer] Support --remove-overlaps for fonts with CFF2 table (#3975).
  373. - [CFF2ToCFF] Add --remove-overlaps option (#3976).
  374. - [feaLib] Raise an error for rsub with NULL target (#3979).
  375. - [bezierTools] Fix logic bug in curveCurveIntersections (#3963).
  376. - [feaLib] Error when condition sets have the same name (#3958).
  377. - [cu2qu.ufo] skip processing empty glyphs to support sparse kerning masters (#3956).
  378. - [unicodedata] Update to Unicode 17. Require ``unicodedata2 >= 17.0.0`` when installed with 'unicode' extra.
  379. 4.60.1 (released 2025-09-29)
  380. ----------------------------
  381. - [ufoLib] Reverted accidental method name change in ``UFOReader.getKerningGroupConversionRenameMaps``
  382. that broke compatibility with downstream projects like defcon (#3948, #3947, robotools/defcon#478).
  383. - [ufoLib] Added test coverage for ``getKerningGroupConversionRenameMaps`` method (#3950).
  384. - [subset] Don't try to subset BASE table; pass it through by default instead (#3949).
  385. - [subset] Remove empty BaseRecord entries in MarkBasePos lookups (#3897, #3892).
  386. - [subset] Add pruning for MarkLigPos and MarkMarkPos lookups (#3946).
  387. - [subset] Remove duplicate features when subsetting (#3945).
  388. - [Docs] Added documentation for the visitor module (#3944).
  389. 4.60.0 (released 2025-09-17)
  390. ----------------------------
  391. - [pointPen] Allow ``reverseFlipped`` parameter of ``DecomposingPointPen`` to take a ``ReverseFlipped``
  392. enum value to control whether/how to reverse contour direction of flipped components, in addition to
  393. the existing True/False. This allows to set ``ReverseFlipped.ON_CURVE_FIRST`` to ensure that
  394. the decomposed outline starts with an on-curve point before being reversed, for better consistency
  395. with other segment-oriented contour transformations. The change is backward compatible, and the
  396. default behavior hasn't changed (#3934).
  397. - [filterPen] Added ``ContourFilterPointPen``, base pen for buffered contour operations, and
  398. ``OnCurveStartPointPen`` filter to ensure contours start with an on-curve point (#3934).
  399. - [cu2qu] Fixed difference in cython vs pure-python complex division by real number (#3930).
  400. - [varLib.avar] Refactored and added some new sub-modules and scripts (#3926).
  401. * ``varLib.avar.build`` module to build avar (and a missing fvar) binaries into a possibly empty TTFont,
  402. * ``varLib.avar.unbuild`` module to print a .designspace snippet that would generate the same avar binary,
  403. * ``varLib.avar.map`` module to take TTFont and do the mapping, in user/normalized space,
  404. * ``varLib.avar.plan`` module moved from ``varLib.avarPlanner``.
  405. The bare ``fonttools varLib.avar`` script is deprecated, in favour of ``fonttools varLib.avar.build`` (or ``unbuild``).
  406. - [interpolatable] Clarify ``linear_sum_assignment`` backend options and minimal dependency
  407. usage (#3927).
  408. - [post] Speed up ``build_psNameMapping`` (#3923).
  409. - [ufoLib] Added typing annotations to fontTools.ufoLib (#3875).
  410. 4.59.2 (released 2025-08-27)
  411. ----------------------------
  412. - [varLib] Clear ``USE_MY_METRICS`` component flags when inconsistent across masters (#3912).
  413. - [varLib.instancer] Avoid negative advance width/height values when instatiating HVAR/VVAR,
  414. (unlikely in well-behaved fonts) (#3918).
  415. - [subset] Fix shaping behaviour when pruning empty mark sets (#3915, harfbuzz/harfbuzz#5499).
  416. - [cu2qu] Fixed ``dot()`` product of perpendicular vectors not always returning exactly 0.0
  417. in all Python implementations (#3911)
  418. - [varLib.instancer] Implemented fully-instantiating ``avar2`` fonts (#3909).
  419. - [feaLib] Allow float values in ``VariableScalar``'s axis locations (#3906, #3907).
  420. - [cu2qu] Handle special case in ``calc_intersect`` for degenerate cubic curves where 3 to 4
  421. control points are equal (#3904).
  422. 4.59.1 (released 2025-08-14)
  423. ----------------------------
  424. - [featureVars] Update OS/2.usMaxContext if possible after addFeatureVariationsRaw (#3894).
  425. - [vhmtx] raise TTLibError('not enough data...') when hmtx/vmtx are truncated (#3843, #3901).
  426. - [feaLib] Combine duplicate features that have the same set of lookups regardless of the order in which those lookups are added to the feature (#3895).
  427. - [varLib] Deprecate ``varLib.mutator`` in favor of ``varLib.instancer``. The latter
  428. provides equivalent full (static font) instancing in addition to partial VF instancing.
  429. CLI users should replace ``fonttools varLib.mutator`` with ``fonttools varLib.instancer``.
  430. API users should migrate to ``fontTools.varLib.instancer.instantiateVariableFont`` (#2680).
  431. 4.59.0 (released 2025-07-16)
  432. ----------------------------
  433. - Removed hard-dependency on pyfilesystem2 (``fs`` package) from ``fonttools[ufo]`` extra.
  434. This is replaced by the `fontTools.misc.filesystem` package, a stdlib-only, drop-in
  435. replacement for the subset of the pyfilesystem2's API used by ``fontTools.ufoLib``.
  436. The latter should continue to work with the upstream ``fs`` (we even test with/without).
  437. Clients who wish to continue using ``fs`` can do so by depending on it directly instead
  438. of via the ``fonttools[ufo]`` extra (#3885, #3620).
  439. - [xmlWriter] Replace illegal XML characters (e.g. control or non-characters) with "?"
  440. when dumping to ttx (#3868, #71).
  441. - [varLib.hvar] Fixed vertical metrics fields copy/pasta error (#3884).
  442. - Micro optimizations in ttLib and sstruct modules (#3878, #3879).
  443. - [unicodedata] Add Garay script to RTL_SCRIPTS (#3882).
  444. - [roundingPen] Remove unreliable kwarg usage. Argument names aren’t consistent among
  445. point pens’ ``.addComponent()`` implementations, in particular ``baseGlyphName``
  446. vs ``glyphName`` (#3880).
  447. 4.58.5 (released 2025-07-03)
  448. ----------------------------
  449. - [feaLib] Don't try to combine ligature & multisub rules (#3874).
  450. - [feaLib/ast] Use weakref proxies to avoid cycles in visitor (#3873).
  451. - [varLib.instancer] Fixed instancing CFF2 fonts where VarData contains more than 64k items (#3858).
  452. 4.58.4 (released 2025-06-13)
  453. ----------------------------
  454. - [feaLib] Allow for empty MarkFilter & MarkAttach sets (#3856).
  455. 4.58.3 (released 2025-06-13)
  456. ----------------------------
  457. - [feaLib] Fixed iterable check for Python 3.13.4 and newer (#3854, #3855).
  458. 4.58.2 (released 2025-06-06)
  459. ----------------------------
  460. - [ttLib.reorderGlyphs] Handle CFF2 when reordering glyphs (#3852)
  461. - [subset] Copy name IDs in use before scrapping or scrambling them for webfonts (#3853)
  462. 4.58.1 (released 2025-05-28)
  463. ----------------------------
  464. - [varLib] Make sure that fvar named instances only reuse name ID 2 or 17 if they are at the default location across all axes, to match OT spec requirement (#3831).
  465. - [feaLib] Improve single substitution promotion to multiple/ligature substitutions, fixing a few bugs as well (#3849).
  466. - [loggingTools] Make ``Timer._time`` a static method that doesn't take self, makes it easier to override (#3836).
  467. - [featureVars] Use ``None`` for empty ConditionSet, which translates to a null offset in the compiled table (#3850).
  468. - [feaLib] Raise an error on conflicting ligature substitution rules instead of silently taking the last one (#3835).
  469. - Add typing annotations to T2CharStringPen (#3837).
  470. - [feaLib] Add single substitutions that were promoted to multiple or ligature substitutions to ``aalt`` feature (#3847).
  471. - [featureVars] Create a default ``LangSys`` in a ``ScriptRecord`` if missing when adding feature variations to existing GSUB later in the build (#3838).
  472. - [symfont] Added a ``main()``.
  473. - [cffLib.specializer] Fix rmoveto merging when blends used (#3839, #3840).
  474. - [pyftmerge] Add support for cmap format 14 in the merge tool (#3830).
  475. - [varLib.instancer/cff2] Fix vsindex of Private dicts when instantiating (#3828, #3232).
  476. - Update text file read to use UTF-8 with optional BOM so it works with e.g. Windows Notepad.exe (#3824).
  477. - [varLib] Ensure that instances only reuse name ID 2 or 17 if they are at the default location across all axes (#3831).
  478. - [varLib] Create a dflt LangSys in a ScriptRecord when adding variations later, to fix an avoidable crash in an edge case (#3838).
  479. 4.58.0 (released 2025-05-10)
  480. ----------------------------
  481. - Drop Python 3.8, require 3.9+ (#3819)
  482. - [HVAR, VVAR] Prune unused regions when using a direct mapping (#3797)
  483. - [Docs] Improvements to ufoLib documentation (#3721)
  484. - [Docs] Improvements to varLib documentation (#3727)
  485. - [Docs] Improvements to Pens and pen-module documentation (#3724)
  486. - [Docs] Miscellany updates to docs (misc modules and smaller modules) (#3730)
  487. - [subset] Close codepoints over BiDi mirror variants. (#3801)
  488. - [feaLib] Fix serializing ChainContextPosStatement and
  489. ChainContextSubstStatement in some rare cases (#3788)
  490. - [designspaceLib] Clarify user expectations for getStatNames (#2892)
  491. - [GVAR] Add support for new `GVAR` table (#3728)
  492. - [TSI0, TSI5] Derive number of entries to decompile from data length (#2477)
  493. - [ttLib] Fix `AttributeError` when reporting table overflow (#3808)
  494. - [ttLib] Apply rounding more often in getCoordinates (#3798)
  495. - [ttLib] Ignore component bounds if empty (#3799)
  496. - [ttLib] Change the separator for duplicate glyph names from "#" to "." (#3809)
  497. - [feaLib] Support subtable breaks in CursivePos, MarkBasePos, MarkToLigPos and
  498. MarkToMarkPos lookups (#3800, #3807)
  499. - [feaLib] If the same lookup has single substitutions and ligature
  500. substitutions, upgrade single substitutions to ligature substitutions with
  501. one input glyph (#3805)
  502. - [feaLib] Correctly handle <NULL> in single pos lookups (#3803)
  503. - [feaLib] Remove duplicates from class pair pos classes instead of raising an
  504. error (#3804)
  505. - [feaLib] Support creating extension lookups using useExtenion lookup flag
  506. instead of silently ignoring it (#3811)
  507. - [STAT] Add typing for the simpler STAT arguments (#3812)
  508. - [otlLib.builder] Add future import for annotations (#3814)
  509. - [cffLib] Fix reading supplement encoding (#3813)
  510. - [voltLib] Add some missing functionality and fixes to voltLib and VoltToFea,
  511. making the conversion to feature files more robust. Add also `fonttools
  512. voltLib` command line tool to compile VOLT sources directly (doing an
  513. intermediate fea conversion internally) (#3818)
  514. - [pens] Add some PointPen annotations (#3820)
  515. 4.57.0 (released 2025-04-03)
  516. ----------------------------
  517. - [ttLib.__main__] Add `--no-recalc-timestamp` flag (#3771)
  518. - [ttLib.__main__] Add `-b` (recalcBBoxes=False) flag (#3772)
  519. - [cmap] Speed up glyphOrder loading from cmap (#3774)
  520. - [ttLib.__main__] Improvements around the `-t` flag (#3776)
  521. - [Debg] Fix parsing from XML; add roundtrip tests (#3781)
  522. - [fealib] Support \*Base.MinMax tables (#3783, #3786)
  523. - [config] Add OPTIMIZE_FONT_SPEED (#3784)
  524. - [varLib.hvar] New module to add HVAR table to the font (#3780)
  525. - [otlLib.optimize] Fix crash when the provided TTF does not contain a `GPOS` (#3794)
  526. 4.56.0 (released 2025-02-07)
  527. ----------------------------
  528. - [varStore] Sort the input todo list with the same sorting key used for the opimizer's output (#3767).
  529. - [otData] Fix DeviceTable's ``DeltaValue`` repeat value which caused a crash after importing from XML and then compiling a GPOS containing Device tables (#3758).
  530. - [feaLib] Make ``FeatureLibError`` pickleable, so client can e.g. use feaLib to can compile features in parallel with multiprocessing (#3762).
  531. - [varLib/gvar] Removed workaround for old, long-fixed macOS bug about composite glyphs with all zero deltas (#1381, #1788).
  532. - [Docs] Updated ttLib documentation, beefed up TTFont and TTGlyphSet explanations (#3720).
  533. 4.55.8 (released 2025-01-29)
  534. ----------------------------
  535. - [MetaTools] Fixed bug in buildUCD.py script whereby the first non-header line of some UCD text file was being skipped. This affected in particular the U+00B7 (MIDDLE DOT) entry of ScriptExtensions.txt (#3756).
  536. 4.55.7 (released 2025-01-28)
  537. ----------------------------
  538. - Shorten the changelog included in PyPI package description to accommodate maximum length limit imposed by Azure DevOps. No actual code changes since v4.55.6 (#3754).
  539. 4.55.6 (released 2025-01-24)
  540. ----------------------------
  541. - [glyf] Fixed regression introduced in 4.55.5 when computing bounds of nested composite glyphs with transformed components (#3752).
  542. 4.55.5 (released 2025-01-23)
  543. ----------------------------
  544. - [glyf] Fixed recalcBounds of transformed components with unrounded coordinates (#3750).
  545. - [feaLib] Allow duplicate script/language statements (#3749).
  546. 4.55.4 (released 2025-01-21)
  547. ----------------------------
  548. - [bezierTools] Fixed ``splitCubicAtT`` sometimes not returning identical start/end points as result of numerical precision (#3742, #3743).
  549. - [feaLib/ast] Fixed docstring of ``AlternateSubstStatement`` (#3735).
  550. - [transform] Typing fixes (#3734).
  551. 4.55.3 (released 2024-12-10)
  552. ----------------------------
  553. - [Docs] fill out ttLib table section [#3716]
  554. - [feaLib] More efficient inline format 4 lookups [#3726]
  555. 4.55.2 (released 2024-12-05)
  556. ----------------------------
  557. - [Docs] update Sphinx config (#3712)
  558. - [designspaceLib] Allow axisOrdering to be set to zero (#3715)
  559. - [feaLib] Don’t modify variable anchors in place (#3717)
  560. 4.55.1 (released 2024-12-02)
  561. ----------------------------
  562. - [ttGlyphSet] Support VARC CFF2 fonts (#3683)
  563. - [DecomposedTransform] Document and implement always skewY == 0 (#3697)
  564. - [varLib] "Fix" cython iup issue? (#3704)
  565. - Cython minor refactor (#3705)
  566. 4.55.0 (released 2024-11-14)
  567. ----------------------------
  568. - [cffLib.specializer] Adjust stack use calculation (#3689)
  569. - [varLib] Lets not add mac names if the rest of name doesn't have them (#3688)
  570. - [ttLib.reorderGlyphs] Update CFF table charstrings and charset (#3682)
  571. - [cffLib.specializer] Add cmdline to specialize a CFF2 font (#3675, #3679)
  572. - [CFF2] Lift uint16 VariationStore.length limitation (#3674)
  573. - [subset] consider variation selectors subsetting cmap14 (#3672)
  574. - [varLib.interpolatable] Support CFF2 fonts (#3670)
  575. - Set isfinal to true in XML parser for proper resource cleanup (#3669)
  576. - [removeOverlaps] Fix CFF CharString width (#3659)
  577. - [glyf] Add optimizeSize option (#3657)
  578. - Python 3.13 support (#3656)
  579. - [TupleVariation] Optimize for loading speed, not size (#3650, #3653)
  580. 4.54.1 (released 2024-09-24)
  581. ----------------------------
  582. - [unicodedata] Update to Unicode 16
  583. - [subset] Escape ``\\`` in doc string
  584. 4.54.0 (released 2024-09-23)
  585. ----------------------------
  586. - [Docs] Small docs cleanups by @n8willis (#3611)
  587. - [Docs] cleanup code blocks by @n8willis (#3627)
  588. - [Docs] fix Sphinx builds by @n8willis (#3625)
  589. - [merge] Minor fixes to documentation for merge by @drj11 (#3588)
  590. - [subset] Small tweaks to pyftsubset documentation by @RoelN (#3633)
  591. - [Tests] Do not require fonttools command to be available by @behdad (#3612)
  592. - [Tests] subset_test: add failing test to reproduce issue #3616 by @anthrotype (#3622)
  593. - [ttLib] NameRecordVisitor: include whole sequence of character variants' UI labels, not just the first by @anthrotype (#3617)
  594. - [varLib.avar] Reconstruct mappings from binary by @behdad (#3598)
  595. - [varLib.instancer] Fix visual artefacts with partial L2 instancing by @Hoolean (#3635)
  596. - [varLib.interpolatable] Support discrete axes in .designspace by @behdad (#3599)
  597. - [varLib.models] By default, assume OpenType-like normalized space by @behdad (#3601)
  598. 4.53.1 (released 2024-07-05)
  599. ----------------------------
  600. - [feaLib] Improve the sharing of inline chained lookups (#3559)
  601. - [otlLib] Correct the calculation of OS/2.usMaxContext with reversed chaining contextual single substitutions (#3569)
  602. - [misc.visitor] Visitors search the inheritance chain of objects they are visiting (#3581)
  603. 4.53.0 (released 2024-05-31)
  604. ----------------------------
  605. - [ttLib.removeOverlaps] Support CFF table to aid in downconverting CFF2 fonts (#3528)
  606. - [avar] Fix crash when accessing not-yet-existing attribute (#3550)
  607. - [docs] Add buildMathTable to otlLib.builder documentation (#3540)
  608. - [feaLib] Allow UTF-8 with BOM when reading features (#3495)
  609. - [SVGPathPen] Revert rounding coordinates to two decimal places by default (#3543)
  610. - [varLib.instancer] Refix output filename decision-making (#3545, #3544, #3548)
  611. 4.52.4 (released 2024-05-27)
  612. ----------------------------
  613. - [varLib.cff] Restore and deprecate convertCFFtoCFF2 that was removed in 4.52.0
  614. release as it is used by downstream projects (#3535).
  615. 4.52.3 (released 2024-05-27)
  616. ----------------------------
  617. - Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file
  618. which caused the upload to PyPI to fail for 4.52.2. No other code changes.
  619. 4.52.2 (released 2024-05-27)
  620. ----------------------------
  621. - [varLib.interpolatable] Ensure that scipy/numpy output is JSON-serializable
  622. (#3522, #3526).
  623. - [housekeeping] Regenerate table lists, to fix pyinstaller packaging of the new
  624. ``VARC`` table (#3531, #3529).
  625. - [cffLib] Make CFFToCFF2 and CFF2ToCFF more robust (#3521, #3525).
  626. 4.52.1 (released 2024-05-24)
  627. ----------------------------
  628. - Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file
  629. which caused the upload to PyPI to fail for 4.52.0. No other code changes.
  630. 4.52.0 (released 2024-05-24)
  631. ----------------------------
  632. - Added support for the new ``VARC`` (Variable Composite) table that is being
  633. proposed to OpenType spec (#3395). For more info:
  634. https://github.com/harfbuzz/boring-expansion-spec/blob/main/VARC.md
  635. - [ttLib.__main__] Fixed decompiling all tables (90fed08).
  636. - [feaLib] Don't reference the same lookup index multiple times within the same
  637. feature record, it is only applied once anyway (#3520).
  638. - [cffLib] Moved methods to desubroutinize, remove hints and unused subroutines
  639. from subset module to cffLib (#3517).
  640. - [varLib.instancer] Added support for partial-instancing CFF2 tables! Also, added
  641. method to down-convert from CFF2 to CFF 1.0, and CLI entry points to convert
  642. CFF<->CFF2 (#3506).
  643. - [subset] Prune unused user name IDs even with --name-IDs='*' (#3410).
  644. - [ttx] use GNU-style getopt to intermix options and positional arguments (#3509).
  645. - [feaLib.variableScalar] Fixed ``value_at_location()`` method (#3491)
  646. - [psCharStrings] Shorten output of ``encodeFloat`` (#3492).
  647. - [bezierTools] Fix infinite-recursion in ``calcCubicArcLength`` (#3502).
  648. - [avar2] Implement ``avar2`` support in ``TTFont.getGlyphSet()`` (#3473).
  649. 4.51.0 (released 2024-04-05)
  650. ----------------------------
  651. - [ttLib] Optimization on loading aux fields (#3464).
  652. - [ttFont] Add reorderGlyphs (#3468).
  653. 4.50.0 (released 2024-03-15)
  654. ----------------------------
  655. - [pens] Added decomposing filter pens that draw components as regular contours (#3460).
  656. - [instancer] Drop explicit no-op axes from TupleVariations (#3457).
  657. - [cu2qu/ufo] Return set of modified glyph names from fonts_to_quadratic (#3456).
  658. 4.49.0 (released 2024-02-15)
  659. ----------------------------
  660. - [otlLib] Add API for building ``MATH`` table (#3446)
  661. 4.48.1 (released 2024-02-06)
  662. ----------------------------
  663. - Fixed uploading wheels to PyPI, no code changes since v4.48.0.
  664. 4.48.0 (released 2024-02-06)
  665. ----------------------------
  666. - [varLib] Do not log when there are no OTL tables to be merged.
  667. - [setup.py] Do not restrict lxml<5 any more, tests pass just fine with lxml>=5.
  668. - [feaLib] Remove glyph and class names length restrictions in FEA (#3424).
  669. - [roundingPens] Added ``transformRoundFunc`` parameter to the rounding pens to allow
  670. for custom rounding of the components' transforms (#3426).
  671. - [feaLib] Keep declaration order of ligature components within a ligature set, instead
  672. of sorting by glyph name (#3429).
  673. - [feaLib] Fixed ordering of alternates in ``aalt`` lookups, following the declaration
  674. order of feature references within the ``aalt`` feature block (#3430).
  675. - [varLib.instancer] Fixed a bug in the instancer's IUP optimization (#3432).
  676. - [sbix] Support sbix glyphs with new graphicType "flip" (#3433).
  677. - [svgPathPen] Added ``--glyphs`` option to dump the SVG paths for the named glyphs
  678. in the font (0572f78).
  679. - [designspaceLib] Added "description" attribute to ``<mappings>`` and ``<mapping>``
  680. elements, and allow multiple ``<mappings>`` elements to group ``<mapping>`` elements
  681. that are logically related (#3435, #3437).
  682. - [otlLib] Correctly choose the most compact GSUB contextual lookup format (#3439).
  683. 4.47.2 (released 2024-01-11)
  684. ----------------------------
  685. Minor release to fix uploading wheels to PyPI.
  686. 4.47.1 (released 2024-01-11)
  687. ----------------------------
  688. - [merge] Improve help message and add standard command line options (#3408)
  689. - [otlLib] Pass ``ttFont`` to ``name.addName`` in ``buildStatTable`` (#3406)
  690. - [featureVars] Re-use ``FeatureVariationRecord``'s when possible (#3413)
  691. 4.47.0 (released 2023-12-18)
  692. ----------------------------
  693. - [varLib.models] New API for VariationModel: ``getMasterScalars`` and
  694. ``interpolateFromValuesAndScalars``.
  695. - [varLib.interpolatable] Various bugfixes and rendering improvements. In particular,
  696. add a Summary page in the front, and an Index and Table-of-Contents in the back.
  697. Change the page size to Letter.
  698. - [Docs/designspaceLib] Defined a new ``public.fontInfo`` lib key, not used anywhere yet (#3358).
  699. 4.46.0 (released 2023-12-02)
  700. ----------------------------
  701. - [featureVars] Allow to register the same set of substitution rules to multiple features.
  702. The ``addFeatureVariations`` function can now take a list of featureTags; similarly, the
  703. lib key 'com.github.fonttools.varLib.featureVarsFeatureTag' can now take a
  704. comma-separateed string of feature tags (e.g. "salt,ss01") instead of a single tag (#3360).
  705. - [featureVars] Don't overwrite GSUB FeatureVariations, but append new records to it
  706. for features which are not already there. But raise ``VarLibError`` if the feature tag
  707. already has feature variations associated with it (#3363).
  708. - [varLib] Added ``addGSUBFeatureVariations`` function to add GSUB Feature Variations
  709. to an existing variable font from rules defined in a DesignSpace document (#3362).
  710. - [varLib.interpolatable] Various bugfixes and rendering improvements. In particular,
  711. a new test for "underweight" glyphs. The new test reports quite a few false-positives
  712. though. Please send feedback.
  713. 4.45.1 (released 2023-11-23)
  714. ----------------------------
  715. - [varLib.interpolatable] Various bugfixes and improvements, better reporting, reduced
  716. false positives.
  717. - [ttGlyphSet] Added option to not recalculate glyf bounds (#3348).
  718. 4.45.0 (released 2023-11-20)
  719. ----------------------------
  720. - [varLib.interpolatable] Vastly improved algorithms. Also available now is ``--pdf``
  721. and ``--html`` options to generate a PDF or HTML report of the interpolation issues.
  722. The PDF/HTML report showcases the problematic masters, the interpolated broken
  723. glyph, as well as the proposed fixed version.
  724. 4.44.3 (released 2023-11-15)
  725. ----------------------------
  726. - [subset] Only prune codepage ranges for OS/2.version >= 1, ignore otherwise (#3334).
  727. - [instancer] Ensure hhea vertical metrics stay in sync with OS/2 ones after instancing
  728. MVAR table containing 'hasc', 'hdsc' or 'hlgp' tags (#3297).
  729. 4.44.2 (released 2023-11-14)
  730. ----------------------------
  731. - [glyf] Have ``Glyph.recalcBounds`` skip empty components (base glyph with no contours)
  732. when computing the bounding box of composite glyphs. This simply restores the existing
  733. behavior before some changes were introduced in fonttools 4.44.0 (#3333).
  734. 4.44.1 (released 2023-11-14)
  735. ----------------------------
  736. - [feaLib] Ensure variable mark anchors are deep-copied while building since they
  737. get modified in-place and later reused (#3330).
  738. - [OS/2|subset] Added method to ``recalcCodePageRanges`` to OS/2 table class; added
  739. ``--prune-codepage-ranges`` to `fonttools subset` command (#3328, #2607).
  740. 4.44.0 (released 2023-11-03)
  741. ----------------------------
  742. - [instancer] Recalc OS/2 AvgCharWidth after instancing if default changes (#3317).
  743. - [otlLib] Make ClassDefBuilder class order match varLib.merger's, i.e. large
  744. classes first, then glyph lexicographic order (#3321, #3324).
  745. - [instancer] Allow not specifying any of min:default:max values and let be filled
  746. up with fvar's values (#3322, #3323).
  747. - [instancer] When running --update-name-table ignore axes that have no STAT axis
  748. values (#3318, #3319).
  749. - [Debg] When dumping to ttx, write the embedded JSON as multi-line string with
  750. indentation (92cbfee0d).
  751. - [varStore] Handle > 65535 items per encoding by splitting VarData subtable (#3310).
  752. - [subset] Handle null-offsets in MarkLigPos subtables.
  753. - [subset] Keep East Asian spacing fatures vhal, halt, chws, vchw by default (#3305).
  754. - [instancer.solver] Fixed case where axisDef < lower and upper < axisMax (#3304).
  755. - [glyf] Speed up compilation, mostly around ``recalcBounds`` (#3301).
  756. - [varLib.interpolatable] Speed it up when working on variable fonts, plus various
  757. micro-optimizations (#3300).
  758. - Require unicodedata2 >= 15.1.0 when installed with 'unicode' extra, contains UCD 15.1.
  759. 4.43.1 (released 2023-10-06)
  760. ----------------------------
  761. - [EBDT] Fixed TypeError exception in `_reverseBytes` method triggered when dumping
  762. some bitmap fonts with `ttx -z bitwise` option (#3162).
  763. - [v/hhea] Fixed UnboundLocalError exception in ``recalc`` method when no vmtx or hmtx
  764. tables are present (#3290).
  765. - [bezierTools] Fixed incorrectly typed cython local variable leading to TypeError when
  766. calling ``calcQuadraticArcLength`` (#3288).
  767. - [feaLib/otlLib] Better error message when building Coverage table with missing glyph (#3286).
  768. 4.43.0 (released 2023-09-29)
  769. ----------------------------
  770. - [subset] Set up lxml ``XMLParser(resolve_entities=False)`` when parsing OT-SVG documents
  771. to prevent XML External Entity (XXE) attacks (9f61271dc):
  772. https://codeql.github.com/codeql-query-help/python/py-xxe/
  773. - [varLib.iup] Added workaround for a Cython bug in ``iup_delta_optimize`` that was
  774. leading to IUP tolerance being incorrectly initialised, resulting in sub-optimal deltas
  775. (60126435d, cython/cython#5732).
  776. - [varLib] Added new command-line entry point ``fonttools varLib.avar`` to add an
  777. ``avar`` table to an existing VF from axes mappings in a .designspace file (0a3360e52).
  778. - [instancer] Fixed bug whereby no longer used variation regions were not correctly pruned
  779. after VarData optimization (#3268).
  780. - Added support for Python 3.12 (#3283).
  781. 4.42.1 (released 2023-08-20)
  782. ----------------------------
  783. - [t1Lib] Fixed several Type 1 issues (#3238, #3240).
  784. - [otBase/packer] Allow sharing tables reached by different offset sizes (#3241, #3236).
  785. - [varLib/merger] Fix Cursive attachment merging error when all anchors are NULL (#3248, #3247).
  786. - [ttLib] Fixed warning when calling ``addMultilingualName`` and ``ttFont`` parameter was not
  787. passed on to ``findMultilingualName`` (#3253).
  788. 4.42.0 (released 2023-08-02)
  789. ----------------------------
  790. - [varLib] Use sentinel value 0xFFFF to mark a glyph advance in hmtx/vmtx as non
  791. participating, allowing sparse masters to contain glyphs for variation purposes other
  792. than {H,V}VAR (#3235).
  793. - [varLib/cff] Treat empty glyphs in non-default masters as missing, thus not participating
  794. in CFF2 delta computation, similarly to how varLib already treats them for gvar (#3234).
  795. - Added varLib.avarPlanner script to deduce 'correct' avar v1 axis mappings based on
  796. glyph average weights (#3223).
  797. 4.41.1 (released 2023-07-21)
  798. ----------------------------
  799. - [subset] Fixed perf regression in v4.41.0 by making ``NameRecordVisitor`` only visit
  800. tables that do contain nameID references (#3213, #3214).
  801. - [varLib.instancer] Support instancing fonts containing null ConditionSet offsets in
  802. FeatureVariationRecords (#3211, #3212).
  803. - [statisticsPen] Report font glyph-average weight/width and font-wide slant.
  804. - [fontBuilder] Fixed head.created date incorrectly set to 0 instead of the current
  805. timestamp, regression introduced in v4.40.0 (#3210).
  806. - [varLib.merger] Support sparse ``CursivePos`` masters (#3209).
  807. 4.41.0 (released 2023-07-12)
  808. ----------------------------
  809. - [fontBuilder] Fixed bug in setupOS2 with default panose attribute incorrectly being
  810. set to a dict instead of a Panose object (#3201).
  811. - [name] Added method to ``removeUnusedNameRecords`` in the user range (#3185).
  812. - [varLib.instancer] Fixed issue with L4 instancing (moving default) (#3179).
  813. - [cffLib] Use latin1 so we can roundtrip non-ASCII in {Full,Font,Family}Name (#3202).
  814. - [designspaceLib] Mark <source name="..."> as optional in docs (as it is in the code).
  815. - [glyf-1] Fixed drawPoints() bug whereby last cubic segment becomes quadratic (#3189, #3190).
  816. - [fontBuilder] Propagate the 'hidden' flag to the fvar Axis instance (#3184).
  817. - [fontBuilder] Update setupAvar() to also support avar 2, fixing ``_add_avar()`` call
  818. site (#3183).
  819. - Added new ``voltLib.voltToFea`` submodule (originally Tiro Typeworks' "Volto") for
  820. converting VOLT OpenType Layout sources to FEA format (#3164).
  821. 4.40.0 (released 2023-06-12)
  822. ----------------------------
  823. - Published native binary wheels to PyPI for all the python minor versions and platform
  824. and architectures currently supported that would benefit from this. They will include
  825. precompiled Cython-accelerated modules (e.g. cu2qu) without requiring to compile them
  826. from source. The pure-python wheel and source distribution will continue to be
  827. published as always (pip will automatically chose them when no binary wheel is
  828. available for the given platform, e.g. pypy). Use ``pip install --no-binary=fonttools fonttools``
  829. to expliclity request pip to install from the pure-python source.
  830. - [designspaceLib|varLib] Add initial support for specifying axis mappings and build
  831. ``avar2`` table from those (#3123).
  832. - [feaLib] Support variable ligature caret position (#3130).
  833. - [varLib|glyf] Added option to --drop-implied-oncurves; test for impliable oncurve
  834. points either before or after rounding (#3146, #3147, #3155, #3156).
  835. - [TTGlyphPointPen] Don't error with empty contours, simply ignore them (#3145).
  836. - [sfnt] Fixed str vs bytes remnant of py3 transition in code dealing with de/compiling
  837. WOFF metadata (#3129).
  838. - [instancer-solver] Fixed bug when moving default instance with sparse masters (#3139, #3140).
  839. - [feaLib] Simplify variable scalars that don’t vary (#3132).
  840. - [pens] Added filter pen that explicitly emits closing line when lastPt != movePt (#3100).
  841. - [varStore] Improve optimize algorithm and better document the algorithm (#3124, #3127).
  842. Added ``quantization`` option (#3126).
  843. - Added CI workflow config file for building native binary wheels (#3121).
  844. - [fontBuilder] Added glyphDataFormat=0 option; raise error when glyphs contain cubic
  845. outlines but glyphDataFormat was not explicitly set to 1 (#3113, #3119).
  846. - [subset] Prune emptied GDEF.MarkGlyphSetsDef and remap indices; ensure GDEF is
  847. subsetted before GSUB and GPOS (#3114, #3118).
  848. - [xmlReader] Fixed issue whereby DSIG table data was incorrectly parsed (#3115, #2614).
  849. - [varLib/merger] Fixed merging of SinglePos with pos=0 (#3111, #3112).
  850. - [feaLib] Demote "Feature has not been defined" error to a warning when building aalt
  851. and referenced feature is empty (#3110).
  852. - [feaLib] Dedupe multiple substitutions with classes (#3105).
  853. 4.39.4 (released 2023-05-10)
  854. ----------------------------
  855. - [varLib.interpolatable] Allow for sparse masters (#3075)
  856. - [merge] Handle differing default/nominalWidthX in CFF (#3070)
  857. - [ttLib] Add missing main.py file to ttLib package (#3088)
  858. - [ttx] Fix missing composite instructions in XML (#3092)
  859. - [ttx] Fix split tables option to work on filenames containing '%' (#3096)
  860. - [featureVars] Process lookups for features other than rvrn last (#3099)
  861. - [feaLib] support multiple substitution with classes (#3103)
  862. 4.39.3 (released 2023-03-28)
  863. ----------------------------
  864. - [sbix] Fixed TypeError when compiling empty glyphs whose imageData is None, regression
  865. was introduced in v4.39 (#3059).
  866. - [ttFont] Fixed AttributeError on python <= 3.10 when opening a TTFont from a tempfile
  867. SpooledTemporaryFile, seekable method only added on python 3.11 (#3052).
  868. 4.39.2 (released 2023-03-16)
  869. ----------------------------
  870. - [varLib] Fixed regression introduced in 4.39.1 whereby an incomplete 'STAT' table
  871. would be built even though a DesignSpace v5 did contain 'STAT' definitions (#3045, #3046).
  872. 4.39.1 (released 2023-03-16)
  873. ----------------------------
  874. - [avar2] Added experimental support for reading/writing avar version 2 as specified in
  875. this draft proposal: https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md
  876. - [glifLib] Wrap underlying XML library exceptions with GlifLibError when parsing GLIFs,
  877. and also print the name and path of the glyph that fails to be parsed (#3042).
  878. - [feaLib] Consult avar for normalizing user-space values in ConditionSets and in
  879. VariableScalars (#3042, #3043).
  880. - [ttProgram] Handle string input to Program.fromAssembly() (#3038).
  881. - [otlLib] Added a config option to emit GPOS 7 lookups, currently disabled by default
  882. because of a macOS bug (#3034).
  883. - [COLRv1] Added method to automatically compute ClipBoxes (#3027).
  884. - [ttFont] Fixed getGlyphID to raise KeyError on missing glyphs instead of returning
  885. None. The regression was introduced in v4.27.0 (#3032).
  886. - [sbix] Fixed UnboundLocalError: cannot access local variable 'rawdata' (#3031).
  887. - [varLib] When building VF, do not overwrite a pre-existing ``STAT`` table that was built
  888. with feaLib from FEA feature file. Also, added support for building multiple VFs
  889. defined in Designspace v5 from ``fonttools varLib`` script (#3024).
  890. - [mtiLib] Only add ``Debg`` table with lookup names when ``FONTTOOLS_LOOKUP_DEBUGGING``
  891. env variable is set (#3023).
  892. 4.39.0 (released 2023-03-06)
  893. ----------------------------
  894. - [mtiLib] Optionally add `Debg` debug info for MTI feature builds (#3018).
  895. - [ttx] Support reading input file from standard input using special `-` character,
  896. similar to existing `-o -` option to write output to standard output (#3020).
  897. - [cython] Prevent ``cython.compiled`` raise AttributeError if cython not installed
  898. properly (#3017).
  899. - [OS/2] Guard against ZeroDivisionError when calculating xAvgCharWidth in the unlikely
  900. scenario no glyph has non-zero advance (#3015).
  901. - [subset] Recompute xAvgCharWidth independently of --no-prune-unicode-ranges,
  902. previously the two options were involuntarily bundled together (#3012).
  903. - [fontBuilder] Add ``debug`` parameter to addOpenTypeFeatures method to add source
  904. debugging information to the font in the ``Debg`` private table (#3008).
  905. - [name] Make NameRecord `__lt__` comparison not fail on Unicode encoding errors (#3006).
  906. - [featureVars] Fixed bug in ``overlayBox`` (#3003, #3005).
  907. - [glyf] Added experimental support for cubic bezier curves in TrueType glyf table, as
  908. outlined in glyf v1 proposal (#2988):
  909. https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md
  910. - Added new qu2cu module and related qu2cuPen, the reverse of cu2qu for converting
  911. TrueType quadratic splines to cubic bezier curves (#2993).
  912. - [glyf] Added experimental support for reading and writing Variable Composites/Components
  913. as defined in glyf v1 spec proposal (#2958):
  914. https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md.
  915. - [pens]: Added `addVarComponent` method to pen protocols' base classes, which pens can implement
  916. to handle varcomponents (by default they get decomposed) (#2958).
  917. - [misc.transform] Added DecomposedTransform class which implements an affine transformation
  918. with separate translate, rotation, scale, skew, and transformation-center components (#2598)
  919. - [sbix] Ensure Glyph.referenceGlyphName is set; fixes error after dumping and
  920. re-compiling sbix table with 'dupe' glyphs (#2984).
  921. - [feaLib] Be cleverer when merging chained single substitutions into same lookup
  922. when they are specified using the inline notation (#2150, #2974).
  923. - [instancer] Clamp user-inputted axis ranges to those of fvar (#2959).
  924. - [otBase/subset] Define ``__getstate__`` for BaseTable so that a copied/pickled 'lazy'
  925. object gets its own OTTableReader to read from; incidentally fixes a bug while
  926. subsetting COLRv1 table containing ClipBoxes on python 3.11 (#2965, #2968).
  927. - [sbix] Handle glyphs with "dupe" graphic type on compile correctly (#2963).
  928. - [glyf] ``endPointsOfContours`` field should be unsigned! Kudos to behdad for
  929. spotting one of the oldest bugs in FT. Probably nobody has ever dared to make
  930. glyphs with more than 32767 points... (#2957).
  931. - [feaLib] Fixed handling of ``ignore`` statements with unmarked glyphs to match
  932. makeotf behavior, which assumes the first glyph is marked (#2950).
  933. - Reformatted code with ``black`` and enforce new code style via CI check (#2925).
  934. - [feaLib] Sort name table entries following OT spec prescribed order in the builder (#2927).
  935. - [cu2quPen] Add Cu2QuMultiPen that converts multiple outlines at a time in
  936. interpolation compatible way; its methods take a list of tuples arguments
  937. that would normally be passed to individual segment pens, and at the end it
  938. dispatches the converted outlines to each pen (#2912).
  939. - [reverseContourPen/ttGlyphPen] Add outputImpliedClosingLine option (#2913, #2914,
  940. #2921, #2922, #2995).
  941. - [gvar] Avoid expanding all glyphs unnecessarily upon compile (#2918).
  942. - [scaleUpem] Fixed bug whereby CFF2 vsindex was scaled; it should not (#2893, #2894).
  943. - [designspaceLib] Add DS.getAxisByTag and refactor getAxis (#2891).
  944. - [unicodedata] map Zmth<->math in ot_tag_{to,from}_script (#1737, #2889).
  945. - [woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags (#2576, #2884).
  946. - [instancer] Update OS/2 class and post.italicAngle when default moved (L4)
  947. - Dropped support for Python 3.7 which reached EOL, fontTools requires 3.8+.
  948. - [instancer] Fixed instantiateFeatureVariations logic when a rule range becomes
  949. default-applicable (#2737, #2880).
  950. - [ttLib] Add main to ttFont and ttCollection that just decompile and re-compile the
  951. input font (#2869).
  952. - [featureVars] Insert 'rvrn' lookup at the beginning of LookupList, to work around bug
  953. in Apple implementation of 'rvrn' feature which the spec says it should be processed
  954. early whereas on macOS 10.15 it follows lookup order (#2140, #2867).
  955. - [instancer/mutator] Remove 'DSIG' table if present.
  956. - [svgPathPen] Don't close path in endPath(), assume open unless closePath() (#2089, #2865).
  957. 4.38.0 (released 2022-10-21)
  958. ----------------------------
  959. - [varLib.instancer] Added support for L4 instancing, i.e. moving the default value of
  960. an axis while keeping it variable. Thanks Behdad! (#2728, #2861).
  961. It's now also possible to restrict an axis min/max values beyond the current default
  962. value, e.g. a font wght has min=100, def=400, max=900 and you want a partial VF that
  963. only varies between 500 and 700, you can now do that.
  964. You can either specify two min/max values (wght=500:700), and the new default will be
  965. set to either the minimum or maximum, depending on which one is closer to the current
  966. default (e.g. 500 in this case). Or you can specify three values (e.g. wght=500:600:700)
  967. to specify the new default value explicitly.
  968. - [otlLib/featureVars] Set a few Count values so one doesn't need to compile the font
  969. to update them (#2860).
  970. - [varLib.models] Make extrapolation work for 2-master models as well where one master
  971. is at the default location (#2843, #2846).
  972. Add optional extrapolate=False to normalizeLocation() (#2847, #2849).
  973. - [varLib.cff] Fixed sub-optimal packing of CFF2 deltas by no longer rounding them to
  974. integer (#2838).
  975. - [scaleUpem] Calculate numShorts in VarData after scale; handle CFF hintmasks (#2840).
  976. 4.37.4 (released 2022-09-30)
  977. ----------------------------
  978. - [subset] Keep nameIDs used by CPAL palette entry labels (#2837).
  979. - [varLib] Avoid negative hmtx values when creating font from variable CFF2 font (#2827).
  980. - [instancer] Don't prune stat.ElidedFallbackNameID (#2828).
  981. - [unicodedata] Update Scripts/Blocks to Unicode 15.0 (#2833).
  982. 4.37.3 (released 2022-09-20)
  983. ----------------------------
  984. - Fix arguments in calls to (glyf) glyph.draw() and drawPoints(), whereby offset wasn't
  985. correctly passed down; this fix also exposed a second bug, where lsb and tsb were not
  986. set (#2824, #2825, adobe-type-tools/afdko#1560).
  987. 4.37.2 (released 2022-09-15)
  988. ----------------------------
  989. - [subset] Keep CPAL table and don't attempt to prune unused color indices if OT-SVG
  990. table is present even if COLR table was subsetted away; OT-SVG may be referencing the
  991. CPAL table; for now we assume that's the case (#2814, #2815).
  992. - [varLib.instancer] Downgrade GPOS/GSUB version if there are no more FeatureVariations
  993. after instancing (#2812).
  994. - [subset] Added ``--no-lazy`` to optionally load fonts eagerly (mostly to ease
  995. debugging of table lazy loading, no practical effects) (#2807).
  996. - [varLib] Avoid building empty COLR.DeltaSetIndexMap with only identity mappings (#2803).
  997. - [feaLib] Allow multiple value record types (by promoting to the most general format)
  998. within the same PairPos subtable; e.g. this allows variable and non variable kerning
  999. rules to share the same subtable. This also fixes a bug whereby some kerning pairs
  1000. would become unreachable while shapiong because of premature subtable splitting (#2772, #2776).
  1001. - [feaLib] Speed up ``VarScalar`` by caching models for recurring master locations (#2798).
  1002. - [feaLib] Optionally cythonize ``feaLib.lexer``, speeds up parsing FEA a bit (#2799).
  1003. - [designspaceLib] Avoid crash when handling unbounded rule conditions (#2797).
  1004. - [post] Don't crash if ``post`` legacy format 1 is malformed/improperly used (#2786)
  1005. - [gvar] Don't be "lazy" (load all glyph variations up front) when TTFont.lazy=False (#2771).
  1006. - [TTFont] Added ``normalizeLocation`` method to normalize a location dict from the
  1007. font's defined axes space (also known as "user space") into the normalized (-1..+1)
  1008. space. It applies ``avar`` mapping if the font contains an ``avar`` table (#2789).
  1009. - [TTVarGlyphSet] Support drawing glyph instances from CFF2 variable glyph set (#2784).
  1010. - [fontBuilder] Do not error when building cmap if there are zero code points (#2785).
  1011. - [varLib.plot] Added ability to plot a variation model and set of accompaning master
  1012. values corresponding to the model's master locations into a pyplot figure (#2767).
  1013. - [Snippets] Added ``statShape.py`` script to draw statistical shape of a glyph as an
  1014. ellips (requires pycairo) (baecd88).
  1015. - [TTVarGlyphSet] implement drawPoints natively, avoiding going through
  1016. SegmentToPointPen (#2778).
  1017. - [TTVarGlyphSet] Fixed bug whereby drawing a composite glyph multiple times, its
  1018. components would shif; needed an extra copy (#2774).
  1019. 4.37.1 (released 2022-08-24)
  1020. ----------------------------
  1021. - [subset] Fixed regression introduced with v4.37.0 while subsetting the VarStore of
  1022. ``HVAR`` and ``VVAR`` tables, whereby an ``AttributeError: subset_varidxes`` was
  1023. thrown because an apparently unused import statement (with the side-effect of
  1024. dynamically binding that ``subset_varidxes`` method to the VarStore class) had been
  1025. accidentally deleted in an unrelated PR (#2679, #2773).
  1026. - [pens] Added ``cairoPen`` (#2678).
  1027. - [gvar] Read ``gvar`` more lazily by not parsing all of the ``glyf`` table (#2771).
  1028. - [ttGlyphSet] Make ``drawPoints(pointPen)`` method work for CFF fonts as well via
  1029. adapter pen (#2770).
  1030. 4.37.0 (released 2022-08-23)
  1031. ----------------------------
  1032. - [varLib.models] Reverted PR #2717 which added support for "narrow tents" in v4.36.0,
  1033. as it introduced a regression (#2764, #2765). It will be restored in upcoming release
  1034. once we found a solution to the bug.
  1035. - [cff.specializer] Fixed issue in charstring generalizer with the ``blend`` operator
  1036. (#2750, #1975).
  1037. - [varLib.models] Added support for extrapolation (#2757).
  1038. - [ttGlyphSet] Ensure the newly added ``_TTVarGlyphSet`` inherits from ``_TTGlyphSet``
  1039. to keep backward compatibility with existing API (#2762).
  1040. - [kern] Allow compiling legacy kern tables with more than 64k entries (d21cfdede).
  1041. - [visitor] Added new visitor API to traverse tree of objects and dispatch based
  1042. on the attribute type: cf. ``fontTools.misc.visitor`` and ``fontTools.ttLib.ttVisitor``. Added ``fontTools.ttLib.scaleUpem`` module that uses the latter to
  1043. change a font's units-per-em and scale all the related fields accordingly (#2718,
  1044. #2755).
  1045. 4.36.0 (released 2022-08-17)
  1046. ----------------------------
  1047. - [varLib.models] Use a simpler model that generates narrower "tents" (regions, master
  1048. supports) whenever possible: specifically when any two axes that actively "cooperate"
  1049. (have masters at non-zero positions for both axes) have a complete set of intermediates.
  1050. The simpler algorithm produces fewer overlapping regions and behaves better with
  1051. respect to rounding at the peak positions than the generic solver, always matching
  1052. intermediate masters exactly, instead of maximally 0.5 units off. This may be useful
  1053. when 100% metrics compatibility is desired (#2218, #2717).
  1054. - [feaLib] Remove warning when about ``GDEF`` not being built when explicitly not
  1055. requested; don't build one unconditonally even when not requested (#2744, also works
  1056. around #2747).
  1057. - [ttFont] ``TTFont.getGlyphSet`` method now supports selecting a location that
  1058. represents an instance of a variable font (supports both user-scale and normalized
  1059. axes coordinates via the ``normalized=False`` parameter). Currently this only works
  1060. for TrueType-flavored variable fonts (#2738).
  1061. 4.35.0 (released 2022-08-15)
  1062. ----------------------------
  1063. - [otData/otConverters] Added support for 'biased' PaintSweepGradient start/end angles
  1064. to match latest COLRv1 spec (#2743).
  1065. - [varLib.instancer] Fixed bug in ``_instantiateFeatureVariations`` when at the same
  1066. time pinning one axis and restricting the range of a subsequent axis; the wrong axis
  1067. tag was being used in the latter step (as the records' axisIdx was updated in the
  1068. preceding step but looked up using the old axes order in the following step) (#2733,
  1069. #2734).
  1070. - [mtiLib] Pad script tags with space when less than 4 char long (#1727).
  1071. - [merge] Use ``'.'`` instead of ``'#'`` in duplicate glyph names (#2742).
  1072. - [gvar] Added support for lazily loading glyph variations (#2741).
  1073. - [varLib] In ``build_many``, we forgot to pass on ``colr_layer_reuse`` parameter to
  1074. the ``build`` method (#2730).
  1075. - [svgPathPen] Add a main that prints SVG for input text (6df779fd).
  1076. - [cffLib.width] Fixed off-by-one in optimized values; previous code didn't match the
  1077. code block above it (2963fa50).
  1078. - [varLib.interpolatable] Support reading .designspace and .glyphs files (via optional
  1079. ``glyphsLib``).
  1080. - Compile some modules with Cython when available and building/installing fonttools
  1081. from source: ``varLib.iup`` (35% faster), ``pens.momentsPen`` (makes
  1082. ``varLib.interpolatable`` 3x faster).
  1083. - [feaLib] Allow features to be built for VF without also building a GDEF table (e.g.
  1084. only build GSUB); warn when GDEF would be needed but isn't requested (#2705, 2694).
  1085. - [otBase] Fixed ``AttributeError`` when uharfbuzz < 0.23.0 and 'repack' method is
  1086. missing (32aa8eaf). Use new ``uharfbuzz.repack_with_tag`` when available (since
  1087. uharfbuzz>=0.30.0), enables table-specific optimizations to be performed during
  1088. repacking (#2724).
  1089. - [statisticsPen] By default report all glyphs (4139d891). Avoid division-by-zero
  1090. (52b28f90).
  1091. - [feaLib] Added missing required argument to FeatureLibError exception (#2693)
  1092. - [varLib.merge] Fixed error during error reporting (#2689). Fixed undefined
  1093. ``NotANone`` variable (#2714).
  1094. 4.34.4 (released 2022-07-07)
  1095. ----------------------------
  1096. - Fixed typo in varLib/merger.py that causes NameError merging COLR glyphs
  1097. containing more than 255 layers (#2685).
  1098. 4.34.3 (released 2022-07-07)
  1099. ----------------------------
  1100. - [designspaceLib] Don't make up bad PS names when no STAT data (#2684)
  1101. 4.34.2 (released 2022-07-06)
  1102. ----------------------------
  1103. - [varStore/subset] fixed KeyError exception to do with NO_VARIATION_INDEX while
  1104. subsetting varidxes in GPOS/GDEF (a08140d).
  1105. 4.34.1 (released 2022-07-06)
  1106. ----------------------------
  1107. - [instancer] When optimizing HVAR/VVAR VarStore, use_NO_VARIATION_INDEX=False to avoid
  1108. including NO_VARIATION_INDEX in AdvWidthMap, RsbMap, LsbMap mappings, which would
  1109. push the VarIdx width to maximum (4bytes), which is not desirable. This also fixes
  1110. a hard crash when attempting to subset a varfont after it had been partially instanced
  1111. with use_NO_VARIATION_INDEX=True.
  1112. 4.34.0 (released 2022-07-06)
  1113. ----------------------------
  1114. - [instancer] Set RIBBI bits in head and OS/2 table when cutting instances and the
  1115. subfamily nameID=2 contains strings like 'Italic' or 'Bold' (#2673).
  1116. - [otTraverse] Addded module containing methods for traversing trees of otData tables
  1117. (#2660).
  1118. - [otTables] Made DeltaSetIndexMap TTX dump less verbose by omitting no-op entries
  1119. (#2660).
  1120. - [colorLib.builder] Added option to disable PaintColrLayers's reuse of layers from
  1121. LayerList (#2660).
  1122. - [varLib] Added support for merging multiple master COLRv1 tables into a variable
  1123. COLR table (#2660, #2328). Base color glyphs of same name in different masters must have
  1124. identical paint graph structure (incl. number of layers, palette indices, number
  1125. of color line stops, corresponding paint formats at each level of the graph),
  1126. but can differ in the variable fields (e.g. PaintSolid.Alpha). PaintVar* tables
  1127. are produced when this happens and a VarStore/DeltaSetIndexMap is added to the
  1128. variable COLR table. It is possible for non-default masters to be 'sparse', i.e.
  1129. omit some of the color glyphs present in the default master.
  1130. - [feaLib] Let the Parser set nameIDs 1 through 6 that were previously reserved (#2675).
  1131. - [varLib.varStore] Support NO_VARIATION_INDEX in optimizer and instancer.
  1132. - [feaLib] Show all missing glyphs at once at end of parsing (#2665).
  1133. - [varLib.iup] Rewrite force-set conditions and limit DP loopback length (#2651).
  1134. For Noto Sans, IUP time drops from 23s down to 9s, with only a slight size increase
  1135. in the final font. This basically turns the algorithm from O(n^3) into O(n).
  1136. - [featureVars] Report about missing glyphs in substitution rules (#2654).
  1137. - [mutator/instancer] Added CLI flag to --no-recalc-timestamp (#2649).
  1138. - [SVG] Allow individual SVG documents in SVG OT table to be compressed on uncompressed,
  1139. and remember that when roundtripping to/from ttx. The SVG.docList is now a list
  1140. of SVGDocument namedtuple-like dataclass containing an extra ``compressed`` field,
  1141. and no longer a bare 3-tuple (#2645).
  1142. - [designspaceLib] Check for descriptor types with hasattr() to allow custom classes
  1143. that don't inherit the default descriptors (#2634).
  1144. - [subset] Enable sharing across subtables of extension lookups for harfbuzz packing
  1145. (#2626). Updated how table packing falls back to fontTools from harfbuzz (#2668).
  1146. - [subset] Updated default feature tags following current Harfbuzz (#2637).
  1147. - [svgLib] Fixed regex for real number to support e.g. 1e-4 in addition to 1.0e-4.
  1148. Support parsing negative rx, ry on arc commands (#2596, #2611).
  1149. - [subset] Fixed subsetting SinglePosFormat2 when ValueFormat=0 (#2603).
  1150. 4.33.3 (released 2022-04-26)
  1151. ----------------------------
  1152. - [designspaceLib] Fixed typo in ``deepcopyExceptFonts`` method, preventing font
  1153. references to be transferred (#2600). Fixed another typo in the name of ``Range``
  1154. dataclass's ``__post_init__`` magic method (#2597).
  1155. 4.33.2 (released 2022-04-22)
  1156. ----------------------------
  1157. - [otBase] Make logging less verbose when harfbuzz fails to serialize. Do not exit
  1158. at the first failure but continue attempting to fix offset overflow error using
  1159. the pure-python serializer even when the ``USE_HARFBUZZ_REPACKER`` option was
  1160. explicitly set to ``True``. This is normal with fonts with relatively large
  1161. tables, at least until hb.repack implements proper table splitting.
  1162. 4.33.1 (released 2022-04-22)
  1163. ----------------------------
  1164. - [otlLib] Put back the ``FONTTOOLS_GPOS_COMPACT_MODE`` environment variable to fix
  1165. regression in ufo2ft (and thus fontmake) introduced with v4.33.0 (#2592, #2593).
  1166. This is deprecated and will be removed one ufo2ft gets updated to use the new
  1167. config setup.
  1168. 4.33.0 (released 2022-04-21)
  1169. ----------------------------
  1170. - [OS/2 / merge] Automatically recalculate ``OS/2.xAvgCharWidth`` after merging
  1171. fonts with ``fontTools.merge`` (#2591, #2538).
  1172. - [misc/config] Added ``fontTools.misc.configTools`` module, a generic configuration
  1173. system (#2416, #2439).
  1174. Added ``fontTools.config`` module, a fontTools-specific configuration
  1175. system using ``configTools`` above.
  1176. Attached a ``Config`` object to ``TTFont``.
  1177. - [otlLib] Replaced environment variable for GPOS compression level with an
  1178. equivalent option using the new config system.
  1179. - [designspaceLib] Incremented format version to 5.0 (#2436).
  1180. Added discrete axes, variable fonts, STAT information, either design- or
  1181. user-space location on instances.
  1182. Added ``fontTools.designspaceLib.split`` module to split a designspace
  1183. into sub-spaces that interpolate and that represent the variable fonts
  1184. listed in the document.
  1185. Made instance names optional and allow computing them from STAT data instead.
  1186. Added ``fontTools.designspaceLib.statNames`` module.
  1187. Allow instances to have the same location as a previously defined STAT label.
  1188. Deprecated some attributes:
  1189. ``SourceDescriptor``: ``copyLib``, ``copyInfo``, ``copyGroups``, ``copyFeatures``.
  1190. ``InstanceDescriptor``: ``kerning``, ``info``; ``glyphs``: use rules or sparse
  1191. sources.
  1192. For both, ``location``: use the more explicit designLocation.
  1193. Note: all are soft deprecations and existing code should keep working.
  1194. Updated documentation for Python methods and the XML format.
  1195. - [varLib] Added ``build_many`` to build several variable fonts from a single
  1196. designspace document (#2436).
  1197. Added ``fontTools.varLib.stat`` module to build STAT tables from a designspace
  1198. document.
  1199. - [otBase] Try to use the Harfbuzz Repacker for packing GSUB/GPOS tables when
  1200. ``uharfbuzz`` python bindings are available (#2552). Disable it by setting the
  1201. "fontTools.ttLib.tables.otBase:USE_HARFBUZZ_REPACKER" config option to ``False``.
  1202. If the option is set explicitly to ``True`` but ``uharfbuzz`` can't be imported
  1203. or fails to serialize for any reasons, an error will be raised (ImportError or
  1204. uharfbuzz errors).
  1205. - [CFF/T2] Ensure that ``pen.closePath()`` gets called for CFF2 charstrings (#2577).
  1206. Handle implicit CFF2 closePath within ``T2OutlineExtractor`` (#2580).
  1207. 4.32.0 (released 2022-04-08)
  1208. ----------------------------
  1209. - [otlLib] Disable GPOS7 optimization to work around bug in Apple CoreText.
  1210. Always force Chaining GPOS8 for now (#2540).
  1211. - [glifLib] Added ``outputImpliedClosingLine=False`` parameter to ``Glyph.draw()``,
  1212. to control behaviour of ``PointToSegmentPen`` (6b4e2e7).
  1213. - [varLib.interpolatable] Check for wrong contour starting point (#2571).
  1214. - [cffLib] Remove leftover ``GlobalState`` class and fix calls to ``TopDictIndex()``
  1215. (#2569, #2570).
  1216. - [instancer] Clear ``AxisValueArray`` if it is empty after instantiating (#2563).
  1217. 4.31.2 (released 2022-03-22)
  1218. ----------------------------
  1219. - [varLib] fix instantiation of GPOS SinglePos values (#2555).
  1220. 4.31.1 (released 2022-03-18)
  1221. ----------------------------
  1222. - [subset] fix subsetting OT-SVG when glyph id attribute is on the root ``<svg>``
  1223. element (#2553).
  1224. 4.31.0 (released 2022-03-18)
  1225. ----------------------------
  1226. - [ttCollection] Fixed 'ResourceWarning: unclosed file' warning (#2549).
  1227. - [varLib.merger] Handle merging SinglePos with valueformat=0 (#2550).
  1228. - [ttFont] Update glyf's glyphOrder when calling TTFont.setGlyphOrder() (#2544).
  1229. - [ttFont] Added ``ensureDecompiled`` method to load all tables irrespective
  1230. of the ``lazy`` attribute (#2551).
  1231. - [otBase] Added ``iterSubTable`` method to iterate over BaseTable's children of
  1232. type BaseTable; useful for traversing a tree of otTables (#2551).
  1233. 4.30.0 (released 2022-03-10)
  1234. ----------------------------
  1235. - [varLib] Added debug logger showing the glyph name for which ``gvar`` is built (#2542).
  1236. - [varLib.errors] Fixed undefined names in ``FoundANone`` and ``UnsupportedFormat``
  1237. exceptions (ac4d5611).
  1238. - [otlLib.builder] Added ``windowsNames`` and ``macNames`` (bool) parameters to the
  1239. ``buildStatTabe`` function, so that one can select whether to only add one or both
  1240. of the two sets (#2528).
  1241. - [t1Lib] Added the ability to recreate PostScript stream (#2504).
  1242. - [name] Added ``getFirstDebugName``, ``getBest{Family,SubFamily,Full}Name`` methods (#2526).
  1243. 4.29.1 (released 2022-02-01)
  1244. ----------------------------
  1245. - [colorLib] Fixed rounding issue with radial gradient's start/end circles inside
  1246. one another (#2521).
  1247. - [freetypePen] Handle rotate/skew transform when auto-computing width/height of the
  1248. buffer; raise PenError wen missing moveTo (#2517)
  1249. 4.29.0 (released 2022-01-24)
  1250. ----------------------------
  1251. - [ufoLib] Fixed illegal characters and expanded reserved filenames (#2506).
  1252. - [COLRv1] Don't emit useless PaintColrLayers of lenght=1 in LayerListBuilder (#2513).
  1253. - [ttx] Removed legacy ``waitForKeyPress`` method on Windows (#2509).
  1254. - [pens] Added FreeTypePen that uses ``freetype-py`` and the pen protocol for
  1255. rasterizating outline paths (#2494).
  1256. - [unicodedata] Updated the script direction list to Unicode 14.0 (#2484).
  1257. Bumped unicodedata2 dependency to 14.0 (#2499).
  1258. - [psLib] Fixed type of ``fontName`` in ``suckfont`` (#2496).
  1259. 4.28.5 (released 2021-12-19)
  1260. ----------------------------
  1261. - [svgPathPen] Continuation of #2471: make sure all occurrences of ``str()`` are now
  1262. replaced with user-defined ``ntos`` callable.
  1263. - [merge] Refactored code into submodules, plus several bugfixes and improvements:
  1264. fixed duplicate-glyph-resolution GSUB-lookup generation code; use tolerance in glyph
  1265. comparison for empty glyph's width; ignore space of default ignorable glyphs;
  1266. downgrade duplicates-resolution missing-GSUB from assert to warn; added --drop-tables
  1267. option (#2473, #2475, #2476).
  1268. 4.28.4 (released 2021-12-15)
  1269. ----------------------------
  1270. - [merge] Merge GDEF marksets in Lookups properly (#2474).
  1271. - [feaLib] Have ``fontTools feaLib`` script exit with error code when build fails (#2459)
  1272. - [svgPathPen] Added ``ntos`` option to customize number formatting (e.g. rounding) (#2471).
  1273. - [subset] Speed up subsetting of large CFF fonts (#2467).
  1274. - [otTables] Speculatively promote lookups to extension to speed up compilation. If the
  1275. offset to lookup N is too big to fit in a ushort, the offset to lookup N+1 is going to
  1276. be too big as well, so we promote to extension all lookups from lookup N onwards (#2465).
  1277. 4.28.3 (released 2021-12-03)
  1278. ----------------------------
  1279. - [subset] Fixed bug while subsetting ``COLR`` table, whereby incomplete layer records
  1280. pointing to missing glyphs were being retained leading to ``struct.error`` upon
  1281. compiling. Make it so that ``glyf`` glyph closure, which follows the ``COLR`` glyph
  1282. closure, does not influence the ``COLR`` table subsetting (#2461, #2462).
  1283. - [docs] Fully document the ``cmap`` and ``glyf`` tables (#2454, #2457).
  1284. - [colorLib.unbuilder] Fixed CLI by deleting no longer existing parameter (180bb1867).
  1285. 4.28.2 (released 2021-11-22)
  1286. ----------------------------
  1287. - [otlLib] Remove duplicates when building coverage (#2433).
  1288. - [docs] Add interrogate configuration (#2443).
  1289. - [docs] Remove comment about missing “start” optional argument to ``calcChecksum`` (#2448).
  1290. - [cu2qu/cli] Adapt to the latest ufoLib2.
  1291. - [subset] Support subsetting SVG table and remove it from the list of drop by default tables (#534).
  1292. - [subset] add ``--pretty-svg`` option to pretty print SVG table contents (#2452).
  1293. - [merge] Support merging ``CFF`` tables (CID-keyed ``CFF`` is still not supported) (#2447).
  1294. - [merge] Support ``--output-file`` (#2447).
  1295. - [docs] Split table docs into individual pages (#2444).
  1296. - [feaLib] Forbid empty classes (#2446).
  1297. - [docs] Improve documentation for ``fontTools.ttLib.ttFont`` (#2442).
  1298. 4.28.1 (released 2021-11-08)
  1299. ----------------------------
  1300. - [subset] Fixed AttributeError while traversing a color glyph's Paint graph when there is no
  1301. LayerList, which is optional (#2441).
  1302. 4.28.0 (released 2021-11-05)
  1303. ----------------------------
  1304. - Dropped support for EOL Python 3.6, require Python 3.7 (#2417).
  1305. - [ufoLib/glifLib] Make filename-clash checks faster by using a set instead of a list (#2422).
  1306. - [subset] Don't crash if optional ClipList and LayerList are ``None`` (empty) (#2424, 2439).
  1307. - [OT-SVG] Removed support for old deprecated version 1 and embedded color palettes,
  1308. which were never officially part of the OpenType SVG spec. Upon compile, reuse offsets
  1309. to SVG documents that are identical (#2430).
  1310. - [feaLib] Added support for Variable Feature File syntax. This is experimental and subject
  1311. to change until it is finalized in the Adobe FEA spec (#2432).
  1312. - [unicodedata] Update Scripts/ScriptExtensions/Blocks to UnicodeData 14.0 (#2437).
  1313. 4.27.1 (released 2021-09-23)
  1314. ----------------------------
  1315. - [otlLib] Fixed error when chained contextual lookup builder overflows (#2404, #2411).
  1316. - [bezierTools] Fixed two floating-point bugs: one when computing `t` for a point
  1317. lying on an almost horizontal/vertical line; another when computing the intersection
  1318. point between a curve and a line (#2413).
  1319. 4.27.0 (released 2021-09-14)
  1320. ----------------------------
  1321. - [ttLib/otTables] Cleaned up virtual GID handling: allow virtual GIDs in ``Coverage``
  1322. and ``ClassDef`` readers; removed unused ``allowVID`` argument from ``TTFont``
  1323. constructor, and ``requireReal`` argument in ``TTFont.getGlyphID`` method.
  1324. Make ``TTFont.setGlyphOrder`` clear reverse glyphOrder map, and assume ``glyphOrder``
  1325. internal attribute is never modified outside setGlyphOrder; added ``TTFont.getGlyphNameMany``
  1326. and ``getGlyphIDMany`` (#1536, #1654, #2334, #2398).
  1327. - [py23] Dropped internal use of ``fontTools.py23`` module to fix deprecation warnings
  1328. in client code that imports from fontTools (#2234, #2399, #2400).
  1329. - [subset] Fix subsetting COLRv1 clip boxes when font is loaded lazily (#2408).
  1330. 4.26.2 (released 2021-08-09)
  1331. ----------------------------
  1332. - [otTables] Added missing ``CompositeMode.PLUS`` operator (#2390).
  1333. 4.26.1 (released 2021-08-03)
  1334. ----------------------------
  1335. - [transform] Added ``transformVector`` and ``transformVectors`` methods to the
  1336. ``Transform`` class. Similar to ``transformPoint`` but ignore the translation
  1337. part (#2386).
  1338. 4.26.0 (released 2021-08-03)
  1339. ----------------------------
  1340. - [xmlWriter] Default to ``"\n"`` for ``newlinestr`` instead of platform-specific
  1341. ``os.linesep`` (#2384).
  1342. - [otData] Define COLRv1 ClipList and ClipBox (#2379).
  1343. - [removeOverlaps/instancer] Added --ignore-overlap-errors option to work around
  1344. Skia PathOps.Simplify bug (#2382, #2363, google/fonts#3365).
  1345. - NOTE: This will be the last version to support Python 3.6. FontTools will require
  1346. Python 3.7 or above from the next release (#2350)
  1347. 4.25.2 (released 2021-07-26)
  1348. ----------------------------
  1349. - [COLRv1] Various changes to sync with the latest CORLv1 draft spec. In particular:
  1350. define COLR.VarIndexMap, remove/inline ColorIndex struct, add VarIndexBase to ``PaintVar*`` tables (#2372);
  1351. add reduced-precicion specialized transform Paints;
  1352. define Angle as fraction of half circle encoded as F2Dot14;
  1353. use FWORD (int16) for all Paint center coordinates;
  1354. change PaintTransform to have an offset to Affine2x3;
  1355. - [ttLib] when importing XML, only set sfntVersion if the font has no reader and is empty (#2376)
  1356. 4.25.1 (released 2021-07-16)
  1357. ----------------------------
  1358. - [ttGlyphPen] Fixed bug in ``TTGlyphPointPen``, whereby open contours (i.e. starting
  1359. with segmentType "move") would throw ``NotImplementedError``. They are now treated
  1360. as if they are closed, like with the ``TTGlyphPen`` (#2364, #2366).
  1361. 4.25.0 (released 2021-07-05)
  1362. ----------------------------
  1363. - [tfmLib] Added new library for parsing TeX Font Metric (TFM) files (#2354).
  1364. - [TupleVariation] Make shared tuples order deterministic on python < 3.7 where
  1365. Counter (subclass of dict) doesn't remember insertion order (#2351, #2353).
  1366. - [otData] Renamed COLRv1 structs to remove 'v1' suffix and match the updated draft
  1367. spec: 'LayerV1List' -> 'LayerList', 'BaseGlyphV1List' -> 'BaseGlyphList',
  1368. 'BaseGlyphV1Record' -> 'BaseGlyphPaintRecord' (#2346).
  1369. Added 8 new ``PaintScale*`` tables: with/without centers, uniform vs non-uniform.
  1370. Added ``*AroundCenter`` variants to ``PaintRotate`` and ``PaintSkew``: the default
  1371. versions no longer have centerX/Y, but default to origin.
  1372. ``PaintRotate``, ``PaintSkew`` and ``PaintComposite`` formats were re-numbered.
  1373. NOTE: these are breaking changes; clients using the experimental COLRv1 API will
  1374. have to be updated (#2348).
  1375. - [pointPens] Allow ``GuessSmoothPointPen`` to accept a tolerance. Fixed call to
  1376. ``math.atan2`` with x/y parameters inverted. Sync the code with fontPens (#2344).
  1377. - [post] Fixed parsing ``post`` table format 2.0 when it contains extra garbage
  1378. at the end of the stringData array (#2314).
  1379. - [subset] drop empty features unless 'size' with FeatureParams table (#2324).
  1380. - [otlLib] Added ``otlLib.optimize`` module; added GPOS compaction algorithm.
  1381. The compaction can be run on existing fonts with ``fonttools otlLib.optimize``
  1382. or using the snippet ``compact_gpos.py``. There's experimental support for
  1383. compacting fonts at compilation time using an environment variable, but that
  1384. might be removed later (#2326).
  1385. 4.24.4 (released 2021-05-25)
  1386. ----------------------------
  1387. - [subset/instancer] Fixed ``AttributeError`` when instantiating a VF that
  1388. contains GPOS ValueRecords with ``Device`` tables but without the respective
  1389. non-Device values (e.g. ``XAdvDevice`` without ``XAdvance``). When not
  1390. explicitly set, the latter are assumed to be 0 (#2323).
  1391. 4.24.3 (released 2021-05-20)
  1392. ----------------------------
  1393. - [otTables] Fixed ``AttributeError`` in methods that split LigatureSubst,
  1394. MultipleSubst and AlternateSubst subtables when an offset overflow occurs.
  1395. The ``Format`` attribute was removed in v4.22.0 (#2319).
  1396. 4.24.2 (released 2021-05-20)
  1397. ----------------------------
  1398. - [ttGlyphPen] Fixed typing annotation of TTGlyphPen glyphSet parameter (#2315).
  1399. - Fixed two instances of DeprecationWarning: invalid escape sequence (#2311).
  1400. 4.24.1 (released 2021-05-20)
  1401. ----------------------------
  1402. - [subset] Fixed AttributeError when SinglePos subtable has None Value (ValueFormat 0)
  1403. (#2312, #2313).
  1404. 4.24.0 (released 2021-05-17)
  1405. ----------------------------
  1406. - [pens] Add ``ttGlyphPen.TTGlyphPointPen`` similar to ``TTGlyphPen`` (#2205).
  1407. 4.23.1 (released 2021-05-14)
  1408. ----------------------------
  1409. - [subset] Fix ``KeyError`` after subsetting ``COLR`` table that initially contains
  1410. both v0 and v1 color glyphs when the subset only requested v1 glyphs; we were
  1411. not pruning the v0 portion of the table (#2308).
  1412. - [colorLib] Set ``LayerV1List`` attribute to ``None`` when empty, it's optional
  1413. in CORLv1 (#2308).
  1414. 4.23.0 (released 2021-05-13)
  1415. ----------------------------
  1416. - [designspaceLib] Allow to use ``\\UNC`` absolute paths on Windows (#2299, #2306).
  1417. - [varLib.merger] Fixed bug where ``VarLibMergeError`` was raised with incorrect
  1418. parameters (#2300).
  1419. - [feaLib] Allow substituting a glyph class with ``NULL`` to delete multiple glyphs
  1420. (#2303).
  1421. - [glyf] Fixed ``NameError`` exception in ``getPhantomPoints`` (#2295, #2305).
  1422. - [removeOverlaps] Retry pathops.simplify after rounding path coordinates to integers
  1423. if it fails the first time using floats, to work around a rare and hard to debug
  1424. Skia bug (#2288).
  1425. - [varLib] Added support for building, reading, writing and optimizing 32-bit
  1426. ``ItemVariationStore`` as used in COLRv1 table (#2285).
  1427. - [otBase/otConverters] Add array readers/writers for int types (#2285).
  1428. - [feaLib] Allow more than one lookahead glyph/class in contextual positioning with
  1429. "value at end" (#2293, #2294).
  1430. - [COLRv1] Default varIdx should be 0xFFFFFFFF (#2297, #2298).
  1431. - [pens] Make RecordingPointPen actually pass on identifiers; replace asserts with
  1432. explicit ``PenError`` exception (#2284).
  1433. - [mutator] Round lsb for CF2 fonts as well (#2286).
  1434. 4.22.1 (released 2021-04-26)
  1435. ----------------------------
  1436. - [feaLib] Skip references to named lookups if the lookup block definition
  1437. is empty, similarly to makeotf. This also fixes an ``AttributeError`` while
  1438. generating ``aalt`` feature (#2276, #2277).
  1439. - [subset] Fixed bug with ``--no-hinting`` implementation for Device tables (#2272,
  1440. #2275). The previous code was alwyas dropping Device tables if no-hinting was
  1441. requested, but some Device tables (DeltaFormat=0x8000) are also used to encode
  1442. variation indices and need to be retained.
  1443. - [otBase] Fixed bug in getting the ValueRecordSize when decompiling ``MVAR``
  1444. table with ``lazy=True`` (#2273, #2274).
  1445. - [varLib/glyf/gvar] Optimized and simplified ``GlyphCoordinates`` and
  1446. ``TupleVariation`` classes, use ``bytearray`` where possible, refactored
  1447. phantom-points calculations. We measured about 30% speedup in total time
  1448. of loading master ttfs, building gvar, and saving (#2261, #2266).
  1449. - [subset] Fixed ``AssertionError`` while pruning unused CPAL palettes when
  1450. ``0xFFFF`` is present (#2257, #2259).
  1451. 4.22.0 (released 2021-04-01)
  1452. ----------------------------
  1453. - [ttLib] Remove .Format from Coverage, ClassDef, SingleSubst, LigatureSubst,
  1454. AlternateSubst, MultipleSubst (#2238).
  1455. ATTENTION: This will change your TTX dumps!
  1456. - [misc.arrayTools] move Vector to its own submodule, and rewrite as a tuple
  1457. subclass (#2201).
  1458. - [docs] Added a terminology section for varLib (#2209).
  1459. - [varLib] Move rounding to VariationModel, to avoid error accumulation from
  1460. multiple deltas (#2214)
  1461. - [varLib] Explain merge errors in more human-friendly terms (#2223, #2226)
  1462. - [otlLib] Correct some documentation (#2225)
  1463. - [varLib/otlLib] Allow merging into VariationFont without first saving GPOS
  1464. PairPos2 (#2229)
  1465. - [subset] Improve PairPosFormat2 subsetting (#2221)
  1466. - [ttLib] TTFont.save: create file on disk as late as possible (#2253)
  1467. - [cffLib] Add missing CFF2 dict operators LanguageGroup and ExpansionFactor
  1468. (#2249)
  1469. ATTENTION: This will change your TTX dumps!
  1470. 4.21.1 (released 2021-02-26)
  1471. ----------------------------
  1472. - [pens] Reverted breaking change that turned ``AbstractPen`` and ``AbstractPointPen``
  1473. into abstract base classes (#2164, #2198).
  1474. 4.21.0 (released 2021-02-26)
  1475. ----------------------------
  1476. - [feaLib] Indent anchor statements in ``asFea()`` to make them more legible and
  1477. diff-able (#2193).
  1478. - [pens] Turn ``AbstractPen`` and ``AbstractPointPen`` into abstract base classes
  1479. (#2164).
  1480. - [feaLib] Added support for parsing and building ``STAT`` table from AFDKO feature
  1481. files (#2039).
  1482. - [instancer] Added option to update name table of generated instance using ``STAT``
  1483. table's axis values (#2189).
  1484. - [bezierTools] Added functions to compute bezier point-at-time, as well as line-line,
  1485. curve-line and curve-curve intersections (#2192).
  1486. 4.20.0 (released 2021-02-15)
  1487. ----------------------------
  1488. - [COLRv1] Added ``unbuildColrV1`` to deconstruct COLRv1 otTables to raw json-able
  1489. data structure; it does the reverse of ``buildColrV1`` (#2171).
  1490. - [feaLib] Allow ``sub X by NULL`` sequence to delete a glyph (#2170).
  1491. - [arrayTools] Fixed ``Vector`` division (#2173).
  1492. - [COLRv1] Define new ``PaintSweepGradient`` (#2172).
  1493. - [otTables] Moved ``Paint.Format`` enum class outside of ``Paint`` class definition,
  1494. now named ``PaintFormat``. It was clashing with paint instance ``Format`` attribute
  1495. and thus was breaking lazy load of COLR table which relies on magic ``__getattr__``
  1496. (#2175).
  1497. - [COLRv1] Replace hand-coded builder functions with otData-driven dynamic
  1498. implementation (#2181).
  1499. - [COLRv1] Define additional static (non-variable) Paint formats (#2181).
  1500. - [subset] Added support for subsetting COLR v1 and CPAL tables (#2174, #2177).
  1501. - [fontBuilder] Allow ``setupFvar`` to optionally take ``designspaceLib.AxisDescriptor``
  1502. objects. Added new ``setupAvar`` method. Support localised names for axes and
  1503. named instances (#2185).
  1504. 4.19.1 (released 2021-01-28)
  1505. ----------------------------
  1506. - [woff2] An initial off-curve point with an overlap flag now stays an off-curve
  1507. point after compression.
  1508. 4.19.0 (released 2021-01-25)
  1509. ----------------------------
  1510. - [codecs] Handle ``errors`` parameter different from 'strict' for the custom
  1511. extended mac encodings (#2137, #2132).
  1512. - [featureVars] Raise better error message when a script is missing the required
  1513. default language system (#2154).
  1514. - [COLRv1] Avoid abrupt change caused by rounding ``PaintRadialGradient.c0`` when
  1515. the start circle almost touches the end circle's perimeter (#2148).
  1516. - [COLRv1] Support building unlimited lists of paints as 255-ary trees of
  1517. ``PaintColrLayers`` tables (#2153).
  1518. - [subset] Prune redundant format-12 cmap subtables when all non-BMP characters
  1519. are dropped (#2146).
  1520. - [basePen] Raise ``MissingComponentError`` instead of bare ``KeyError`` when a
  1521. referenced component is missing (#2145).
  1522. 4.18.2 (released 2020-12-16)
  1523. ----------------------------
  1524. - [COLRv1] Implemented ``PaintTranslate`` paint format (#2129).
  1525. - [varLib.cff] Fixed unbound local variable error (#1787).
  1526. - [otlLib] Don't crash when creating OpenType class definitions if some glyphs
  1527. occur more than once (#2125).
  1528. 4.18.1 (released 2020-12-09)
  1529. ----------------------------
  1530. - [colorLib] Speed optimization for ``LayerV1ListBuilder`` (#2119).
  1531. - [mutator] Fixed missing tab in ``interpolate_cff2_metrics`` (0957dc7a).
  1532. 4.18.0 (released 2020-12-04)
  1533. ----------------------------
  1534. - [COLRv1] Update to latest draft: added ``PaintRotate`` and ``PaintSkew`` (#2118).
  1535. - [woff2] Support new ``brotlicffi`` bindings for PyPy (#2117).
  1536. - [glifLib] Added ``expectContentsFile`` parameter to ``GlyphSet``, for use when
  1537. reading existing UFOs, to comply with the specification stating that a
  1538. ``contents.plist`` file must exist in a glyph set (#2114).
  1539. - [subset] Allow ``LangSys`` tags in ``--layout-scripts`` option (#2112). For example:
  1540. ``--layout-scripts=arab.dflt,arab.URD,latn``; this will keep ``DefaultLangSys``
  1541. and ``URD`` language for ``arab`` script, and all languages for ``latn`` script.
  1542. - [varLib.interpolatable] Allow UFOs to be checked; report open paths, non existant
  1543. glyphs; add a ``--json`` option to produce a machine-readable list of
  1544. incompatibilities
  1545. - [pens] Added ``QuartzPen`` to create ``CGPath`` from glyph outlines on macOS.
  1546. Requires pyobjc (#2107).
  1547. - [feaLib] You can export ``FONTTOOLS_LOOKUP_DEBUGGING=1`` to enable feature file
  1548. debugging info stored in ``Debg`` table (#2106).
  1549. - [otlLib] Build more efficient format 1 and format 2 contextual lookups whenever
  1550. possible (#2101).
  1551. 4.17.1 (released 2020-11-16)
  1552. ----------------------------
  1553. - [colorLib] Fixed regression in 4.17.0 when building COLR v0 table; when color
  1554. layers are stored in UFO lib plist, we can't distinguish tuples from lists so
  1555. we need to accept either types (e5439eb9, googlefonts/ufo2ft/issues#426).
  1556. 4.17.0 (released 2020-11-12)
  1557. ----------------------------
  1558. - [colorLib/otData] Updated to latest draft ``COLR`` v1 spec (#2092).
  1559. - [svgLib] Fixed parsing error when arc commands' boolean flags are not separated
  1560. by space or comma (#2094).
  1561. - [varLib] Interpret empty non-default glyphs as 'missing', if the default glyph is
  1562. not empty (#2082).
  1563. - [feaLib.builder] Only stash lookup location for ``Debg`` if ``Builder.buildLookups_``
  1564. has cooperated (#2065, #2067).
  1565. - [varLib] Fixed bug in VarStore optimizer (#2073, #2083).
  1566. - [varLib] Add designspace lib key for custom feavar feature tag (#2080).
  1567. - Add HashPointPen adapted from psautohint. With this pen, a hash value of a glyph
  1568. can be computed, which can later be used to detect glyph changes (#2005).
  1569. 4.16.1 (released 2020-10-05)
  1570. ----------------------------
  1571. - [varLib.instancer] Fixed ``TypeError`` exception when instantiating a VF with
  1572. a GSUB table 1.1 in which ``FeatureVariations`` attribute is present but set to
  1573. ``None`` -- indicating that optional ``FeatureVariations`` is missing (#2077).
  1574. - [glifLib] Make ``x`` and ``y`` attributes of the ``point`` element required
  1575. even when validation is turned off, and raise a meaningful ``GlifLibError``
  1576. message when that happens (#2075).
  1577. 4.16.0 (released 2020-09-30)
  1578. ----------------------------
  1579. - [removeOverlaps] Added new module and ``removeOverlaps`` function that merges
  1580. overlapping contours and components in TrueType glyphs. It requires the
  1581. `skia-pathops <https://github.com/fonttools/skia-pathops>`__ module.
  1582. Note that removing overlaps invalidates the TrueType hinting (#2068).
  1583. - [varLib.instancer] Added ``--remove-overlaps`` command-line option.
  1584. The ``overlap`` option in ``instantiateVariableFont`` now takes an ``OverlapMode``
  1585. enum: 0: KEEP_AND_DONT_SET_FLAGS, 1: KEEP_AND_SET_FLAGS (default), and 2: REMOVE.
  1586. The latter is equivalent to calling ``removeOverlaps`` on the generated static
  1587. instance. The option continues to accept ``bool`` value for backward compatibility.
  1588. 4.15.0 (released 2020-09-21)
  1589. ----------------------------
  1590. - [plistlib] Added typing annotations to plistlib module. Set up mypy static
  1591. typechecker to run automatically on CI (#2061).
  1592. - [ttLib] Implement private ``Debg`` table, a reverse-DNS namespaced JSON dict.
  1593. - [feaLib] Optionally add an entry into the ``Debg`` table with the original
  1594. lookup name (if any), feature name / script / language combination (if any),
  1595. and original source filename and line location. Annotate the ttx output for
  1596. a lookup with the information from the Debg table (#2052).
  1597. - [sfnt] Disabled checksum checking by default in ``SFNTReader`` (#2058).
  1598. - [Docs] Document ``mtiLib`` module (#2027).
  1599. - [varLib.interpolatable] Added checks for contour node count and operation type
  1600. of each node (#2054).
  1601. - [ttLib] Added API to register custom table packer/unpacker classes (#2055).
  1602. 4.14.0 (released 2020-08-19)
  1603. ----------------------------
  1604. - [feaLib] Allow anonymous classes in LookupFlags definitions (#2037).
  1605. - [Docs] Better document DesignSpace rules processing order (#2041).
  1606. - [ttLib] Fixed 21-year old bug in ``maxp.maxComponentDepth`` calculation (#2044,
  1607. #2045).
  1608. - [varLib.models] Fixed misspelled argument name in CLI entry point (81d0042a).
  1609. - [subset] When subsetting GSUB v1.1, fixed TypeError by checking whether the
  1610. optional FeatureVariations table is present (e63ecc5b).
  1611. - [Snippets] Added snippet to show how to decompose glyphs in a TTF (#2030).
  1612. - [otlLib] Generate GSUB type 5 and GPOS type 7 contextual lookups where appropriate
  1613. (#2016).
  1614. 4.13.0 (released 2020-07-10)
  1615. ----------------------------
  1616. - [feaLib/otlLib] Moved lookup subtable builders from feaLib to otlLib; refactored
  1617. some common code (#2004, #2007).
  1618. - [docs] Document otlLib module (#2009).
  1619. - [glifLib] Fixed bug with some UFO .glif filenames clashing on case-insensitive
  1620. filesystems (#2001, #2002).
  1621. - [colorLib] Updated COLRv1 implementation following changes in the draft spec:
  1622. (#2008, googlefonts/colr-gradients-spec#24).
  1623. 4.12.1 (released 2020-06-16)
  1624. ----------------------------
  1625. - [_n_a_m_e] Fixed error in ``addMultilingualName`` with one-character names.
  1626. Only attempt to recovered malformed UTF-16 data from a ``bytes`` string,
  1627. not from unicode ``str`` (#1997, #1998).
  1628. 4.12.0 (released 2020-06-09)
  1629. ----------------------------
  1630. - [otlLib/varLib] Ensure that the ``AxisNameID`` in the ``STAT`` and ``fvar``
  1631. tables is grater than 255 as per OpenType spec (#1985, #1986).
  1632. - [docs] Document more modules in ``fontTools.misc`` package: ``filenames``,
  1633. ``fixedTools``, ``intTools``, ``loggingTools``, ``macCreatorType``, ``macRes``,
  1634. ``plistlib`` (#1981).
  1635. - [OS/2] Don't calculate whole sets of unicode codepoints, use faster and more memory
  1636. efficient ranges and bisect lookups (#1984).
  1637. - [voltLib] Support writing back abstract syntax tree as VOLT data (#1983).
  1638. - [voltLib] Accept DO_NOT_TOUCH_CMAP keyword (#1987).
  1639. - [subset/merge] Fixed a namespace clash involving a private helper class (#1955).
  1640. 4.11.0 (released 2020-05-28)
  1641. ----------------------------
  1642. - [feaLib] Introduced ``includeDir`` parameter on Parser and IncludingLexer to
  1643. explicitly specify the directory to search when ``include()`` statements are
  1644. encountered (#1973).
  1645. - [ufoLib] Silently delete duplicate glyphs within the same kerning group when reading
  1646. groups (#1970).
  1647. - [ttLib] Set version of COLR table when decompiling COLRv1 (commit 9d8a7e2).
  1648. 4.10.2 (released 2020-05-20)
  1649. ----------------------------
  1650. - [sfnt] Fixed ``NameError: SimpleNamespace`` while reading TTC header. The regression
  1651. was introduced with 4.10.1 after removing ``py23`` star import.
  1652. 4.10.1 (released 2020-05-19)
  1653. ----------------------------
  1654. - [sfnt] Make ``SFNTReader`` pickleable even when TTFont is loaded with lazy=True
  1655. option and thus keeps a reference to an external file (#1962, #1967).
  1656. - [feaLib.ast] Restore backward compatibility (broken in 4.10 with #1905) for
  1657. ``ChainContextPosStatement`` and ``ChainContextSubstStatement`` classes.
  1658. Make them accept either list of lookups or list of lists of lookups (#1961).
  1659. - [docs] Document some modules in ``fontTools.misc`` package: ``arrayTools``,
  1660. ``bezierTools`` ``cliTools`` and ``eexec`` (#1956).
  1661. - [ttLib._n_a_m_e] Fixed ``findMultilingualName()`` when name record's ``string`` is
  1662. encoded as bytes sequence (#1963).
  1663. 4.10.0 (released 2020-05-15)
  1664. ----------------------------
  1665. - [varLib] Allow feature variations to be active across the entire space (#1957).
  1666. - [ufoLib] Added support for ``formatVersionMinor`` in UFO's ``fontinfo.plist`` and for
  1667. ``formatMinor`` attribute in GLIF file as discussed in unified-font-object/ufo-spec#78.
  1668. No changes in reading or writing UFOs until an upcoming (non-0) minor update of the
  1669. UFO specification is published (#1786).
  1670. - [merge] Fixed merging fonts with different versions of ``OS/2`` table (#1865, #1952).
  1671. - [subset] Fixed ``AttributeError`` while subsetting ``ContextSubst`` and ``ContextPos``
  1672. Format 3 subtable (#1879, #1944).
  1673. - [ttLib.table._m_e_t_a] if data happens to be ascii, emit comment in TTX (#1938).
  1674. - [feaLib] Support multiple lookups per glyph position (#1905).
  1675. - [psCharStrings] Use inheritance to avoid repeated code in initializer (#1932).
  1676. - [Doc] Improved documentation for the following modules: ``afmLib`` (#1933), ``agl``
  1677. (#1934), ``cffLib`` (#1935), ``cu2qu`` (#1937), ``encodings`` (#1940), ``feaLib``
  1678. (#1941), ``merge`` (#1949).
  1679. - [Doc] Split off developer-centric info to new page, making front page of docs more
  1680. user-focused. List all utilities and sub-modules with brief descriptions.
  1681. Make README more concise and focused (#1914).
  1682. - [otlLib] Add function to build STAT table from high-level description (#1926).
  1683. - [ttLib._n_a_m_e] Add ``findMultilingualName()`` method (#1921).
  1684. - [unicodedata] Update ``RTL_SCRIPTS`` for Unicode 13.0 (#1925).
  1685. - [gvar] Sort ``gvar`` XML output by glyph name, not glyph order (#1907, #1908).
  1686. - [Doc] Added help options to ``fonttools`` command line tool (#1913, #1920).
  1687. Ensure all fonttools CLI tools have help documentation (#1948).
  1688. - [ufoLib] Only write fontinfo.plist when there actually is content (#1911).
  1689. 4.9.0 (released 2020-04-29)
  1690. ---------------------------
  1691. - [subset] Fixed subsetting of FeatureVariations table. The subsetter no longer drops
  1692. FeatureVariationRecords that have empty substitutions as that will keep the search
  1693. going and thus change the logic. It will only drop empty records that occur at the
  1694. end of the FeatureVariationRecords array (#1881).
  1695. - [subset] Remove FeatureVariations table and downgrade GSUB/GPOS to version 0x10000
  1696. when FeatureVariations contain no FeatureVariationRecords after subsetting (#1903).
  1697. - [agl] Add support for legacy Adobe Glyph List of glyph names in ``fontTools.agl``
  1698. (#1895).
  1699. - [feaLib] Ignore superfluous script statements (#1883).
  1700. - [feaLib] Hide traceback by default on ``fonttools feaLib`` command line.
  1701. Use ``--traceback`` option to show (#1898).
  1702. - [feaLib] Check lookup index in chaining sub/pos lookups and print better error
  1703. message (#1896, #1897).
  1704. - [feaLib] Fix building chained alt substitutions (#1902).
  1705. - [Doc] Included all fontTools modules in the sphinx-generated documentation, and
  1706. published it to ReadTheDocs for continuous documentation of the fontTools project
  1707. (#1333). Check it out at https://fonttools.readthedocs.io/. Thanks to Chris Simpkins!
  1708. - [transform] The ``Transform`` class is now subclass of ``typing.NamedTuple``. No
  1709. change in functionality (#1904).
  1710. 4.8.1 (released 2020-04-17)
  1711. ---------------------------
  1712. - [feaLib] Fixed ``AttributeError: 'NoneType' has no attribute 'getAlternateGlyphs'``
  1713. when ``aalt`` feature references a chain contextual substitution lookup
  1714. (googlefonts/fontmake#648, #1878).
  1715. 4.8.0 (released 2020-04-16)
  1716. ---------------------------
  1717. - [feaLib] If Parser is initialized without a ``glyphNames`` parameter, it cannot
  1718. distinguish between a glyph name containing an hyphen, or a range of glyph names;
  1719. instead of raising an error, it now interprets them as literal glyph names, while
  1720. also outputting a logging warning to alert user about the ambiguity (#1768, #1870).
  1721. - [feaLib] When serializing AST to string, emit spaces around hyphens that denote
  1722. ranges. Also, fixed an issue with CID ranges when round-tripping AST->string->AST
  1723. (#1872).
  1724. - [Snippets/otf2ttf] In otf2ttf.py script update LSB in hmtx to match xMin (#1873).
  1725. - [colorLib] Added experimental support for building ``COLR`` v1 tables as per
  1726. the `colr-gradients-spec <https://github.com/googlefonts/colr-gradients-spec/blob/main/colr-gradients-spec.md>`__
  1727. draft proposal. **NOTE**: both the API and the XML dump of ``COLR`` v1 are
  1728. susceptible to change while the proposal is being discussed and formalized (#1822).
  1729. 4.7.0 (released 2020-04-03)
  1730. ---------------------------
  1731. - [cu2qu] Added ``fontTools.cu2qu`` package, imported from the original
  1732. `cu2qu <https://github.com/googlefonts/cu2qu>`__ project. The ``cu2qu.pens`` module
  1733. was moved to ``fontTools.pens.cu2quPen``. The optional cu2qu extension module
  1734. can be compiled by installing `Cython <https://cython.org/>`__ before installing
  1735. fonttools from source (i.e. git repo or sdist tarball). The wheel package that
  1736. is published on PyPI (i.e. the one ``pip`` downloads, unless ``--no-binary``
  1737. option is used), will continue to be pure-Python for now (#1868).
  1738. 4.6.0 (released 2020-03-24)
  1739. ---------------------------
  1740. - [varLib] Added support for building variable ``BASE`` table version 1.1 (#1858).
  1741. - [CPAL] Added ``fromRGBA`` method to ``Color`` class (#1861).
  1742. 4.5.0 (released 2020-03-20)
  1743. ---------------------------
  1744. - [designspaceLib] Added ``add{Axis,Source,Instance,Rule}Descriptor`` methods to
  1745. ``DesignSpaceDocument`` class, to initialize new descriptor objects using keyword
  1746. arguments, and at the same time append them to the current document (#1860).
  1747. - [unicodedata] Update to Unicode 13.0 (#1859).
  1748. 4.4.3 (released 2020-03-13)
  1749. ---------------------------
  1750. - [varLib] Always build ``gvar`` table for TrueType-flavored Variable Fonts,
  1751. even if it contains no variation data. The table is required according to
  1752. the OpenType spec (#1855, #1857).
  1753. 4.4.2 (released 2020-03-12)
  1754. ---------------------------
  1755. - [ttx] Annotate ``LookupFlag`` in XML dump with comment explaining what bits
  1756. are set and what they mean (#1850).
  1757. - [feaLib] Added more descriptive message to ``IncludedFeaNotFound`` error (#1842).
  1758. 4.4.1 (released 2020-02-26)
  1759. ---------------------------
  1760. - [woff2] Skip normalizing ``glyf`` and ``loca`` tables if these are missing from
  1761. a font (e.g. in NotoColorEmoji using ``CBDT/CBLC`` tables).
  1762. - [timeTools] Use non-localized date parsing in ``timestampFromString``, to fix
  1763. error when non-English ``LC_TIME`` locale is set (#1838, #1839).
  1764. - [fontBuilder] Make sure the CFF table generated by fontBuilder can be used by varLib
  1765. without having to compile and decompile the table first. This was breaking in
  1766. converting the CFF table to CFF2 due to some unset attributes (#1836).
  1767. 4.4.0 (released 2020-02-18)
  1768. ---------------------------
  1769. - [colorLib] Added ``fontTools.colorLib.builder`` module, initially with ``buildCOLR``
  1770. and ``buildCPAL`` public functions. More color font formats will follow (#1827).
  1771. - [fontBuilder] Added ``setupCOLR`` and ``setupCPAL`` methods (#1826).
  1772. - [ttGlyphPen] Quantize ``GlyphComponent.transform`` floats to ``F2Dot14`` to fix
  1773. round-trip issue when computing bounding boxes of transformed components (#1830).
  1774. - [glyf] If a component uses reference points (``firstPt`` and ``secondPt``) for
  1775. alignment (instead of X and Y offsets), compute the effective translation offset
  1776. *after* having applied any transform (#1831).
  1777. - [glyf] When all glyphs have zero contours, compile ``glyf`` table data as a single
  1778. null byte in order to pass validation by OTS and Windows (#1829).
  1779. - [feaLib] Parsing feature code now ensures that referenced glyph names are part of
  1780. the known glyph set, unless a glyph set was not provided.
  1781. - [varLib] When filling in the default axis value for a missing location of a source or
  1782. instance, correctly map the value forward.
  1783. - [varLib] The avar table can now contain mapping output values that are greater than
  1784. OR EQUAL to the preceeding value, as the avar specification allows this.
  1785. - [varLib] The errors of the module are now ordered hierarchically below VarLibError.
  1786. See #1821.
  1787. 4.3.0 (released 2020-02-03)
  1788. ---------------------------
  1789. - [EBLC/CBLC] Fixed incorrect padding length calculation for Format 3 IndexSubTable
  1790. (#1817, #1818).
  1791. - [varLib] Fixed error when merging OTL tables and TTFonts were loaded as ``lazy=True``
  1792. (#1808, #1809).
  1793. - [varLib] Allow to use master fonts containing ``CFF2`` table when building VF (#1816).
  1794. - [ttLib] Make ``recalcBBoxes`` option work also with ``CFF2`` table (#1816).
  1795. - [feaLib] Don't reset ``lookupflag`` in lookups defined inside feature blocks.
  1796. They will now inherit the current ``lookupflag`` of the feature. This is what
  1797. Adobe ``makeotf`` also does in this case (#1815).
  1798. - [feaLib] Fixed bug with mixed single/multiple substitutions. If a single substitution
  1799. involved a glyph class, we were incorrectly using only the first glyph in the class
  1800. (#1814).
  1801. 4.2.5 (released 2020-01-29)
  1802. ---------------------------
  1803. - [feaLib] Do not fail on duplicate multiple substitutions, only warn (#1811).
  1804. - [subset] Optimize SinglePos subtables to Format 1 if all ValueRecords are the same
  1805. (#1802).
  1806. 4.2.4 (released 2020-01-09)
  1807. ---------------------------
  1808. - [unicodedata] Update RTL_SCRIPTS for Unicode 11 and 12.
  1809. 4.2.3 (released 2020-01-07)
  1810. ---------------------------
  1811. - [otTables] Fixed bug when splitting `MarkBasePos` subtables as offsets overflow.
  1812. The mark class values in the split subtable were not being updated, leading to
  1813. invalid mark-base attachments (#1797, googlefonts/noto-source#145).
  1814. - [feaLib] Only log a warning instead of error when features contain duplicate
  1815. substitutions (#1767).
  1816. - [glifLib] Strip XML comments when parsing with lxml (#1784, #1785).
  1817. 4.2.2 (released 2019-12-12)
  1818. ---------------------------
  1819. - [subset] Fixed issue with subsetting FeatureVariations table when the index
  1820. of features changes as features get dropped. The feature index need to be
  1821. remapped to point to index of the remaining features (#1777, #1782).
  1822. - [fontBuilder] Added `addFeatureVariations` method to `FontBuilder` class. This
  1823. is a shorthand for calling `featureVars.addFeatureVariations` on the builder's
  1824. TTFont object (#1781).
  1825. - [glyf] Fixed the flags bug in glyph.drawPoints() like we did for glyph.draw()
  1826. (#1771, #1774).
  1827. 4.2.1 (released 2019-12-06)
  1828. ---------------------------
  1829. - [glyf] Use the ``flagOnCurve`` bit mask in ``glyph.draw()``, so that we ignore
  1830. the ``overlap`` flag that may be set when instantiating variable fonts (#1771).
  1831. 4.2.0 (released 2019-11-28)
  1832. ---------------------------
  1833. - [pens] Added the following pens:
  1834. * ``roundingPen.RoundingPen``: filter pen that rounds coordinates and components'
  1835. offsets to integer;
  1836. * ``roundingPen.RoundingPointPen``: like the above, but using PointPen protocol.
  1837. * ``filterPen.FilterPointPen``: base class for filter point pens;
  1838. * ``transformPen.TransformPointPen``: filter point pen to apply affine transform;
  1839. * ``recordingPen.RecordingPointPen``: records and replays point-pen commands.
  1840. - [ttGlyphPen] Always round float coordinates and component offsets to integers
  1841. (#1763).
  1842. - [ufoLib] When converting kerning groups from UFO2 to UFO3, avoid confusing
  1843. groups with the same name as one of the glyphs (#1761, #1762,
  1844. unified-font-object/ufo-spec#98).
  1845. 4.1.0 (released 2019-11-18)
  1846. ---------------------------
  1847. - [instancer] Implemented restricting axis ranges (level 3 partial instancing).
  1848. You can now pass ``{axis_tag: (min, max)}`` tuples as input to the
  1849. ``instantiateVariableFont`` function. Note that changing the default axis
  1850. position is not supported yet. The command-line script also accepts axis ranges
  1851. in the form of colon-separated float values, e.g. ``wght=400:700`` (#1753, #1537).
  1852. - [instancer] Never drop STAT ``DesignAxis`` records, but only prune out-of-range
  1853. ``AxisValue`` records.
  1854. - [otBase/otTables] Enforce that VarStore.RegionAxisCount == fvar.axisCount, even
  1855. when regions list is empty to appease OTS < v8.0 (#1752).
  1856. - [designspaceLib] Defined new ``processing`` attribute for ``<rules>`` element,
  1857. with values "first" or "last", plus other editorial changes to DesignSpace
  1858. specification. Bumped format version to 4.1 (#1750).
  1859. - [varLib] Improved error message when masters' glyph orders do not match (#1758,
  1860. #1759).
  1861. - [featureVars] Allow to specify custom feature tag in ``addFeatureVariations``;
  1862. allow said feature to already exist, in which case we append new lookup indices
  1863. to existing features. Implemented ``<rules>`` attribute ``processing`` according to
  1864. DesignSpace specification update in #1750. Depending on this flag, we generate
  1865. either an 'rvrn' (always processed first) or a 'rclt' feature (follows lookup order,
  1866. therefore last) (#1747, #1625, #1371).
  1867. - [ttCollection] Added support for context manager auto-closing via ``with`` statement
  1868. like with ``TTFont`` (#1751).
  1869. - [unicodedata] Require unicodedata2 >= 12.1.0.
  1870. - [py2.py3] Removed yet more PY2 vestiges (#1743).
  1871. - [_n_a_m_e] Fixed issue when comparing NameRecords with different string types (#1742).
  1872. - [fixedTools] Changed ``fixedToFloat`` to not do any rounding but simply return
  1873. ``value / (1 << precisionBits)``. Added ``floatToFixedToStr`` and
  1874. ``strToFixedToFloat`` functions to be used when loading from or dumping to XML.
  1875. Fixed values (e.g. fvar axes and instance coordinates, avar mappings, etc.) are
  1876. are now stored as un-rounded decimal floats upon decompiling (#1740, #737).
  1877. - [feaLib] Fixed handling of multiple ``LigatureCaret`` statements for the same glyph.
  1878. Only the first rule per glyph is used, additional ones are ignored (#1733).
  1879. 4.0.2 (released 2019-09-26)
  1880. ---------------------------
  1881. - [voltLib] Added support for ``ALL`` and ``NONE`` in ``PROCESS_MARKS`` (#1732).
  1882. - [Silf] Fixed issue in ``Silf`` table compilation and decompilation regarding str vs
  1883. bytes in python3 (#1728).
  1884. - [merge] Handle duplicate glyph names better: instead of appending font index to
  1885. all glyph names, use similar code like we use in ``post`` and ``CFF`` tables (#1729).
  1886. 4.0.1 (released 2019-09-11)
  1887. ---------------------------
  1888. - [otTables] Support fixing offset overflows in ``MultipleSubst`` lookup subtables
  1889. (#1706).
  1890. - [subset] Prune empty strikes in ``EBDT`` and ``CBDT`` table data (#1698, #1633).
  1891. - [pens] Fixed issue in ``PointToSegmentPen`` when last point of closed contour has
  1892. same coordinates as the starting point and was incorrectly dropped (#1720).
  1893. - [Graphite] Fixed ``Sill`` table output to pass OTS (#1705).
  1894. - [name] Added ``removeNames`` method to ``table__n_a_m_e`` class (#1719).
  1895. - [ttLib] Added aliases for renamed entries ``ascender`` and ``descender`` in
  1896. ``hhea`` table (#1715).
  1897. 4.0.0 (released 2019-08-22)
  1898. ---------------------------
  1899. - NOTE: The v4.x version series only supports Python 3.6 or greater. You can keep
  1900. using fonttools 3.x if you need support for Python 2.
  1901. - [py23] Removed all the python2-only code since it is no longer reachable, thus
  1902. unused; only the Python3 symbols were kept, but these are no-op. The module is now
  1903. DEPRECATED and will removed in the future.
  1904. - [ttLib] Fixed UnboundLocalError for empty loca/glyph tables (#1680). Also, allow
  1905. the glyf table to be incomplete when dumping to XML (#1681).
  1906. - [varLib.models] Fixed KeyError while sorting masters and there are no on-axis for
  1907. a given axis (38a8eb0e).
  1908. - [cffLib] Make sure glyph names are unique (#1699).
  1909. - [feaLib] Fix feature parser to correctly handle octal numbers (#1700).
  1910. \... see `here <https://github.com/fonttools/fonttools/blob/main/NEWS.rst>`__ for earlier changes