METADATA 162 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402
  1. Metadata-Version: 2.2
  2. Name: fonttools
  3. Version: 4.55.4
  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: License :: OSI Approved :: MIT License
  18. Classifier: Natural Language :: English
  19. Classifier: Operating System :: OS Independent
  20. Classifier: Programming Language :: Python
  21. Classifier: Programming Language :: Python :: 3.8
  22. Classifier: Programming Language :: Python :: 3.9
  23. Classifier: Programming Language :: Python :: 3.10
  24. Classifier: Programming Language :: Python :: 3.11
  25. Classifier: Programming Language :: Python :: 3.12
  26. Classifier: Programming Language :: Python :: 3.13
  27. Classifier: Programming Language :: Python :: 3
  28. Classifier: Topic :: Text Processing :: Fonts
  29. Classifier: Topic :: Multimedia :: Graphics
  30. Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
  31. Requires-Python: >=3.8
  32. License-File: LICENSE
  33. Provides-Extra: ufo
  34. Requires-Dist: fs<3,>=2.2.0; extra == "ufo"
  35. Provides-Extra: lxml
  36. Requires-Dist: lxml>=4.0; extra == "lxml"
  37. Provides-Extra: woff
  38. Requires-Dist: brotli>=1.0.1; platform_python_implementation == "CPython" and extra == "woff"
  39. Requires-Dist: brotlicffi>=0.8.0; platform_python_implementation != "CPython" and extra == "woff"
  40. Requires-Dist: zopfli>=0.1.4; extra == "woff"
  41. Provides-Extra: unicode
  42. Requires-Dist: unicodedata2>=15.1.0; python_version <= "3.12" and extra == "unicode"
  43. Provides-Extra: graphite
  44. Requires-Dist: lz4>=1.7.4.2; extra == "graphite"
  45. Provides-Extra: interpolatable
  46. Requires-Dist: scipy; platform_python_implementation != "PyPy" and extra == "interpolatable"
  47. Requires-Dist: munkres; platform_python_implementation == "PyPy" and extra == "interpolatable"
  48. Requires-Dist: pycairo; extra == "interpolatable"
  49. Provides-Extra: plot
  50. Requires-Dist: matplotlib; extra == "plot"
  51. Provides-Extra: symfont
  52. Requires-Dist: sympy; extra == "symfont"
  53. Provides-Extra: type1
  54. Requires-Dist: xattr; sys_platform == "darwin" and extra == "type1"
  55. Provides-Extra: pathops
  56. Requires-Dist: skia-pathops>=0.5.0; extra == "pathops"
  57. Provides-Extra: repacker
  58. Requires-Dist: uharfbuzz>=0.23.0; extra == "repacker"
  59. Provides-Extra: all
  60. Requires-Dist: fs<3,>=2.2.0; extra == "all"
  61. Requires-Dist: lxml>=4.0; extra == "all"
  62. Requires-Dist: brotli>=1.0.1; platform_python_implementation == "CPython" and extra == "all"
  63. Requires-Dist: brotlicffi>=0.8.0; platform_python_implementation != "CPython" and extra == "all"
  64. Requires-Dist: zopfli>=0.1.4; extra == "all"
  65. Requires-Dist: unicodedata2>=15.1.0; python_version <= "3.12" and extra == "all"
  66. Requires-Dist: lz4>=1.7.4.2; extra == "all"
  67. Requires-Dist: scipy; platform_python_implementation != "PyPy" and extra == "all"
  68. Requires-Dist: munkres; platform_python_implementation == "PyPy" and extra == "all"
  69. Requires-Dist: pycairo; extra == "all"
  70. Requires-Dist: matplotlib; extra == "all"
  71. Requires-Dist: sympy; extra == "all"
  72. Requires-Dist: xattr; sys_platform == "darwin" and extra == "all"
  73. Requires-Dist: skia-pathops>=0.5.0; extra == "all"
  74. Requires-Dist: uharfbuzz>=0.23.0; extra == "all"
  75. Dynamic: author
  76. Dynamic: author-email
  77. Dynamic: classifier
  78. Dynamic: description
  79. Dynamic: home-page
  80. Dynamic: license
  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. licence <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.8
  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/ufoLib``
  147. Package for reading and writing UFO source files; it requires:
  148. * `fs <https://pypi.org/pypi/fs>`__: (aka ``pyfilesystem2``) filesystem
  149. abstraction layer.
  150. * `enum34 <https://pypi.org/pypi/enum34>`__: backport for the built-in ``enum``
  151. module (only required on Python < 3.4).
  152. *Extra:* ``ufo``
  153. - ``Lib/fontTools/ttLib/woff2.py``
  154. Module to compress/decompress WOFF 2.0 web fonts; it requires:
  155. * `brotli <https://pypi.python.org/pypi/Brotli>`__: Python bindings of
  156. the Brotli compression library.
  157. *Extra:* ``woff``
  158. - ``Lib/fontTools/ttLib/sfnt.py``
  159. To better compress WOFF 1.0 web fonts, the following module can be used
  160. instead of the built-in ``zlib`` library:
  161. * `zopfli <https://pypi.python.org/pypi/zopfli>`__: Python bindings of
  162. the Zopfli compression library.
  163. *Extra:* ``woff``
  164. - ``Lib/fontTools/unicode.py``
  165. To display the Unicode character names when dumping the ``cmap`` table
  166. with ``ttx`` we use the ``unicodedata`` module in the Standard Library.
  167. The version included in there varies between different Python versions.
  168. To use the latest available data, you can install:
  169. * `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__:
  170. ``unicodedata`` backport for Python 3.x updated to the latest Unicode
  171. version 15.0.
  172. *Extra:* ``unicode``
  173. - ``Lib/fontTools/varLib/interpolatable.py``
  174. Module for finding wrong contour/component order between different masters.
  175. It requires one of the following packages in order to solve the so-called
  176. "minimum weight perfect matching problem in bipartite graphs", or
  177. the Assignment problem:
  178. * `scipy <https://pypi.python.org/pypi/scipy>`__: the Scientific Library
  179. for Python, which internally uses `NumPy <https://pypi.python.org/pypi/numpy>`__
  180. arrays and hence is very fast;
  181. * `munkres <https://pypi.python.org/pypi/munkres>`__: a pure-Python
  182. module that implements the Hungarian or Kuhn-Munkres algorithm.
  183. To plot the results to a PDF or HTML format, you also need to install:
  184. * `pycairo <https://pypi.org/project/pycairo/>`__: Python bindings for the
  185. Cairo graphics library. Note that wheels are currently only available for
  186. Windows, for other platforms see pycairo's `installation instructions
  187. <https://pycairo.readthedocs.io/en/latest/getting_started.html>`__.
  188. *Extra:* ``interpolatable``
  189. - ``Lib/fontTools/varLib/plot.py``
  190. Module for visualizing DesignSpaceDocument and resulting VariationModel.
  191. * `matplotlib <https://pypi.org/pypi/matplotlib>`__: 2D plotting library.
  192. *Extra:* ``plot``
  193. - ``Lib/fontTools/misc/symfont.py``
  194. Advanced module for symbolic font statistics analysis; it requires:
  195. * `sympy <https://pypi.python.org/pypi/sympy>`__: the Python library for
  196. symbolic mathematics.
  197. *Extra:* ``symfont``
  198. - ``Lib/fontTools/t1Lib.py``
  199. To get the file creator and type of Macintosh PostScript Type 1 fonts
  200. on Python 3 you need to install the following module, as the old ``MacOS``
  201. module is no longer included in Mac Python:
  202. * `xattr <https://pypi.python.org/pypi/xattr>`__: Python wrapper for
  203. extended filesystem attributes (macOS platform only).
  204. *Extra:* ``type1``
  205. - ``Lib/fontTools/ttLib/removeOverlaps.py``
  206. Simplify TrueType glyphs by merging overlapping contours and components.
  207. * `skia-pathops <https://pypi.python.org/pypy/skia-pathops>`__: Python
  208. bindings for the Skia library's PathOps module, performing boolean
  209. operations on paths (union, intersection, etc.).
  210. *Extra:* ``pathops``
  211. - ``Lib/fontTools/pens/cocoaPen.py`` and ``Lib/fontTools/pens/quartzPen.py``
  212. Pens for drawing glyphs with Cocoa ``NSBezierPath`` or ``CGPath`` require:
  213. * `PyObjC <https://pypi.python.org/pypi/pyobjc>`__: the bridge between
  214. Python and the Objective-C runtime (macOS platform only).
  215. - ``Lib/fontTools/pens/qtPen.py``
  216. Pen for drawing glyphs with Qt's ``QPainterPath``, requires:
  217. * `PyQt5 <https://pypi.python.org/pypi/PyQt5>`__: Python bindings for
  218. the Qt cross platform UI and application toolkit.
  219. - ``Lib/fontTools/pens/reportLabPen.py``
  220. Pen to drawing glyphs as PNG images, requires:
  221. * `reportlab <https://pypi.python.org/pypi/reportlab>`__: Python toolkit
  222. for generating PDFs and graphics.
  223. - ``Lib/fontTools/pens/freetypePen.py``
  224. Pen to drawing glyphs with FreeType as raster images, requires:
  225. * `freetype-py <https://pypi.python.org/pypi/freetype-py>`__: Python binding
  226. for the FreeType library.
  227. - ``Lib/fontTools/ttLib/tables/otBase.py``
  228. Use the Harfbuzz library to serialize GPOS/GSUB using ``hb_repack`` method, requires:
  229. * `uharfbuzz <https://pypi.python.org/pypi/uharfbuzz>`__: Streamlined Cython
  230. bindings for the harfbuzz shaping engine
  231. *Extra:* ``repacker``
  232. How to make a new release
  233. ~~~~~~~~~~~~~~~~~~~~~~~~~
  234. 1) Update ``NEWS.rst`` with all the changes since the last release. Write a
  235. changelog entry for each PR, with one or two short sentences summarizing it,
  236. as well as links to the PR and relevant issues addressed by the PR. Do not
  237. put a new title, the next command will do it for you.
  238. 2) Use semantic versioning to decide whether the new release will be a 'major',
  239. 'minor' or 'patch' release. It's usually one of the latter two, depending on
  240. whether new backward compatible APIs were added, or simply some bugs were fixed.
  241. 3) From inside a venv, first do ``pip install -r dev-requirements.txt``, then run
  242. the ``python setup.py release`` command from the tip of the ``main`` branch.
  243. By default this bumps the third or 'patch' digit only, unless you pass ``--major``
  244. or ``--minor`` to bump respectively the first or second digit.
  245. This bumps the package version string, extracts the changes since the latest
  246. version from ``NEWS.rst``, and uses that text to create an annotated git tag
  247. (or a signed git tag if you pass the ``--sign`` option and your git and Github
  248. account are configured for `signing commits <https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification/signing-commits>`__
  249. using a GPG key).
  250. It also commits an additional version bump which opens the main branch for
  251. the subsequent developmental cycle
  252. 4) Push both the tag and commit to the upstream repository, by running the command
  253. ``git push --follow-tags``. Note: it may push other local tags as well, be
  254. careful.
  255. 5) Let the CI build the wheel and source distribution packages and verify both
  256. get uploaded to the Python Package Index (PyPI).
  257. 6) [Optional] Go to fonttools `Github Releases <https://github.com/fonttools/fonttools/releases>`__
  258. page and create a new release, copy-pasting the content of the git tag
  259. message. This way, the release notes are nicely formatted as markdown, and
  260. users watching the repo will get an email notification. One day we shall
  261. automate that too.
  262. Acknowledgements
  263. ~~~~~~~~~~~~~~~~
  264. In alphabetical order:
  265. aschmitz, Olivier Berten, Samyak Bhuta, Erik van Blokland, Petr van Blokland,
  266. Jelle Bosma, Sascha Brawer, Tom Byrer, Antonio Cavedoni, Frédéric Coiffier,
  267. Vincent Connare, David Corbett, Simon Cozens, Dave Crossland, Simon Daniels,
  268. Peter Dekkers, Behdad Esfahbod, Behnam Esfahbod, Hannes Famira, Sam Fishman,
  269. Matt Fontaine, Takaaki Fuji, Rob Hagemans, Yannis Haralambous, Greg Hitchcock,
  270. Jeremie Hornus, Khaled Hosny, John Hudson, Denis Moyogo Jacquerye, Jack Jansen,
  271. Tom Kacvinsky, Jens Kutilek, Antoine Leca, Werner Lemberg, Tal Leming, Peter
  272. Lofting, Cosimo Lupo, Olli Meier, Masaya Nakamura, Dave Opstad, Laurence Penney,
  273. Roozbeh Pournader, Garret Rieger, Read Roberts, Colin Rofls, Guido van Rossum,
  274. Just van Rossum, Andreas Seidel, Georg Seifert, Chris Simpkins, Miguel Sousa,
  275. Adam Twardoch, Adrien Tétar, Vitaly Volkov, Paul Wise.
  276. Copyrights
  277. ~~~~~~~~~~
  278. | Copyright (c) 1999-2004 Just van Rossum, LettError
  279. (just@letterror.com)
  280. | See `LICENSE <LICENSE>`__ for the full license.
  281. Copyright (c) 2000 BeOpen.com. All Rights Reserved.
  282. Copyright (c) 1995-2001 Corporation for National Research Initiatives.
  283. All Rights Reserved.
  284. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All
  285. Rights Reserved.
  286. Have fun!
  287. .. |CI Build Status| image:: https://github.com/fonttools/fonttools/workflows/Test/badge.svg
  288. :target: https://github.com/fonttools/fonttools/actions?query=workflow%3ATest
  289. .. |Coverage Status| image:: https://codecov.io/gh/fonttools/fonttools/branch/main/graph/badge.svg
  290. :target: https://codecov.io/gh/fonttools/fonttools
  291. .. |PyPI| image:: https://img.shields.io/pypi/v/fonttools.svg
  292. :target: https://pypi.org/project/FontTools
  293. .. |Gitter Chat| image:: https://badges.gitter.im/fonttools-dev/Lobby.svg
  294. :alt: Join the chat at https://gitter.im/fonttools-dev/Lobby
  295. :target: https://gitter.im/fonttools-dev/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
  296. Changelog
  297. ~~~~~~~~~
  298. 4.55.4 (released 2025-01-21)
  299. ----------------------------
  300. - [bezierTools] Fixed ``splitCubicAtT`` sometimes not returning identical start/end points as result of numerical precision (#3742, #3743).
  301. - [feaLib/ast] Fixed docstring of ``AlternateSubstStatement`` (#3735).
  302. - [transform] Typing fixes (#3734).
  303. 4.55.3 (released 2024-12-10)
  304. ----------------------------
  305. - [Docs] fill out ttLib table section [#3716]
  306. - [feaLib] More efficient inline format 4 lookups [#3726]
  307. 4.55.2 (released 2024-12-05)
  308. ----------------------------
  309. - [Docs] update Sphinx config (#3712)
  310. - [designspaceLib] Allow axisOrdering to be set to zero (#3715)
  311. - [feaLib] Don’t modify variable anchors in place (#3717)
  312. 4.55.1 (released 2024-12-02)
  313. ----------------------------
  314. - [ttGlyphSet] Support VARC CFF2 fonts (#3683)
  315. - [DecomposedTransform] Document and implement always skewY == 0 (#3697)
  316. - [varLib] "Fix" cython iup issue? (#3704)
  317. - Cython minor refactor (#3705)
  318. 4.55.0 (released 2024-11-14)
  319. ----------------------------
  320. - [cffLib.specializer] Adjust stack use calculation (#3689)
  321. - [varLib] Lets not add mac names if the rest of name doesn't have them (#3688)
  322. - [ttLib.reorderGlyphs] Update CFF table charstrings and charset (#3682)
  323. - [cffLib.specializer] Add cmdline to specialize a CFF2 font (#3675, #3679)
  324. - [CFF2] Lift uint16 VariationStore.length limitation (#3674)
  325. - [subset] consider variation selectors subsetting cmap14 (#3672)
  326. - [varLib.interpolatable] Support CFF2 fonts (#3670)
  327. - Set isfinal to true in XML parser for proper resource cleanup (#3669)
  328. - [removeOverlaps] Fix CFF CharString width (#3659)
  329. - [glyf] Add optimizeSize option (#3657)
  330. - Python 3.13 support (#3656)
  331. - [TupleVariation] Optimize for loading speed, not size (#3650, #3653)
  332. 4.54.1 (released 2024-09-24)
  333. ----------------------------
  334. - [unicodedata] Update to Unicode 16
  335. - [subset] Escape ``\\`` in doc string
  336. 4.54.0 (released 2024-09-23)
  337. ----------------------------
  338. - [Docs] Small docs cleanups by @n8willis (#3611)
  339. - [Docs] cleanup code blocks by @n8willis (#3627)
  340. - [Docs] fix Sphinx builds by @n8willis (#3625)
  341. - [merge] Minor fixes to documentation for merge by @drj11 (#3588)
  342. - [subset] Small tweaks to pyftsubset documentation by @RoelN (#3633)
  343. - [Tests] Do not require fonttools command to be available by @behdad (#3612)
  344. - [Tests] subset_test: add failing test to reproduce issue #3616 by @anthrotype (#3622)
  345. - [ttLib] NameRecordVisitor: include whole sequence of character variants' UI labels, not just the first by @anthrotype (#3617)
  346. - [varLib.avar] Reconstruct mappings from binary by @behdad (#3598)
  347. - [varLib.instancer] Fix visual artefacts with partial L2 instancing by @Hoolean (#3635)
  348. - [varLib.interpolatable] Support discrete axes in .designspace by @behdad (#3599)
  349. - [varLib.models] By default, assume OpenType-like normalized space by @behdad (#3601)
  350. 4.53.1 (released 2024-07-05)
  351. ----------------------------
  352. - [feaLib] Improve the sharing of inline chained lookups (#3559)
  353. - [otlLib] Correct the calculation of OS/2.usMaxContext with reversed chaining contextual single substitutions (#3569)
  354. - [misc.visitor] Visitors search the inheritance chain of objects they are visiting (#3581)
  355. 4.53.0 (released 2024-05-31)
  356. ----------------------------
  357. - [ttLib.removeOverlaps] Support CFF table to aid in downconverting CFF2 fonts (#3528)
  358. - [avar] Fix crash when accessing not-yet-existing attribute (#3550)
  359. - [docs] Add buildMathTable to otlLib.builder documentation (#3540)
  360. - [feaLib] Allow UTF-8 with BOM when reading features (#3495)
  361. - [SVGPathPen] Revert rounding coordinates to two decimal places by default (#3543)
  362. - [varLib.instancer] Refix output filename decision-making (#3545, #3544, #3548)
  363. 4.52.4 (released 2024-05-27)
  364. ----------------------------
  365. - [varLib.cff] Restore and deprecate convertCFFtoCFF2 that was removed in 4.52.0
  366. release as it is used by downstream projects (#3535).
  367. 4.52.3 (released 2024-05-27)
  368. ----------------------------
  369. - Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file
  370. which caused the upload to PyPI to fail for 4.52.2. No other code changes.
  371. 4.52.2 (released 2024-05-27)
  372. ----------------------------
  373. - [varLib.interpolatable] Ensure that scipy/numpy output is JSON-serializable
  374. (#3522, #3526).
  375. - [housekeeping] Regenerate table lists, to fix pyinstaller packaging of the new
  376. ``VARC`` table (#3531, #3529).
  377. - [cffLib] Make CFFToCFF2 and CFF2ToCFF more robust (#3521, #3525).
  378. 4.52.1 (released 2024-05-24)
  379. ----------------------------
  380. - Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file
  381. which caused the upload to PyPI to fail for 4.52.0. No other code changes.
  382. 4.52.0 (released 2024-05-24)
  383. ----------------------------
  384. - Added support for the new ``VARC`` (Variable Composite) table that is being
  385. proposed to OpenType spec (#3395). For more info:
  386. https://github.com/harfbuzz/boring-expansion-spec/blob/main/VARC.md
  387. - [ttLib.__main__] Fixed decompiling all tables (90fed08).
  388. - [feaLib] Don't reference the same lookup index multiple times within the same
  389. feature record, it is only applied once anyway (#3520).
  390. - [cffLib] Moved methods to desubroutinize, remove hints and unused subroutines
  391. from subset module to cffLib (#3517).
  392. - [varLib.instancer] Added support for partial-instancing CFF2 tables! Also, added
  393. method to down-convert from CFF2 to CFF 1.0, and CLI entry points to convert
  394. CFF<->CFF2 (#3506).
  395. - [subset] Prune unused user name IDs even with --name-IDs='*' (#3410).
  396. - [ttx] use GNU-style getopt to intermix options and positional arguments (#3509).
  397. - [feaLib.variableScalar] Fixed ``value_at_location()`` method (#3491)
  398. - [psCharStrings] Shorten output of ``encodeFloat`` (#3492).
  399. - [bezierTools] Fix infinite-recursion in ``calcCubicArcLength`` (#3502).
  400. - [avar2] Implement ``avar2`` support in ``TTFont.getGlyphSet()`` (#3473).
  401. 4.51.0 (released 2024-04-05)
  402. ----------------------------
  403. - [ttLib] Optimization on loading aux fields (#3464).
  404. - [ttFont] Add reorderGlyphs (#3468).
  405. 4.50.0 (released 2024-03-15)
  406. ----------------------------
  407. - [pens] Added decomposing filter pens that draw components as regular contours (#3460).
  408. - [instancer] Drop explicit no-op axes from TupleVariations (#3457).
  409. - [cu2qu/ufo] Return set of modified glyph names from fonts_to_quadratic (#3456).
  410. 4.49.0 (released 2024-02-15)
  411. ----------------------------
  412. - [otlLib] Add API for building ``MATH`` table (#3446)
  413. 4.48.1 (released 2024-02-06)
  414. ----------------------------
  415. - Fixed uploading wheels to PyPI, no code changes since v4.48.0.
  416. 4.48.0 (released 2024-02-06)
  417. ----------------------------
  418. - [varLib] Do not log when there are no OTL tables to be merged.
  419. - [setup.py] Do not restrict lxml<5 any more, tests pass just fine with lxml>=5.
  420. - [feaLib] Remove glyph and class names length restrictions in FEA (#3424).
  421. - [roundingPens] Added ``transformRoundFunc`` parameter to the rounding pens to allow
  422. for custom rounding of the components' transforms (#3426).
  423. - [feaLib] Keep declaration order of ligature components within a ligature set, instead
  424. of sorting by glyph name (#3429).
  425. - [feaLib] Fixed ordering of alternates in ``aalt`` lookups, following the declaration
  426. order of feature references within the ``aalt`` feature block (#3430).
  427. - [varLib.instancer] Fixed a bug in the instancer's IUP optimization (#3432).
  428. - [sbix] Support sbix glyphs with new graphicType "flip" (#3433).
  429. - [svgPathPen] Added ``--glyphs`` option to dump the SVG paths for the named glyphs
  430. in the font (0572f78).
  431. - [designspaceLib] Added "description" attribute to ``<mappings>`` and ``<mapping>``
  432. elements, and allow multiple ``<mappings>`` elements to group ``<mapping>`` elements
  433. that are logically related (#3435, #3437).
  434. - [otlLib] Correctly choose the most compact GSUB contextual lookup format (#3439).
  435. 4.47.2 (released 2024-01-11)
  436. ----------------------------
  437. Minor release to fix uploading wheels to PyPI.
  438. 4.47.1 (released 2024-01-11)
  439. ----------------------------
  440. - [merge] Improve help message and add standard command line options (#3408)
  441. - [otlLib] Pass ``ttFont`` to ``name.addName`` in ``buildStatTable`` (#3406)
  442. - [featureVars] Re-use ``FeatureVariationRecord``'s when possible (#3413)
  443. 4.47.0 (released 2023-12-18)
  444. ----------------------------
  445. - [varLib.models] New API for VariationModel: ``getMasterScalars`` and
  446. ``interpolateFromValuesAndScalars``.
  447. - [varLib.interpolatable] Various bugfixes and rendering improvements. In particular,
  448. add a Summary page in the front, and an Index and Table-of-Contents in the back.
  449. Change the page size to Letter.
  450. - [Docs/designspaceLib] Defined a new ``public.fontInfo`` lib key, not used anywhere yet (#3358).
  451. 4.46.0 (released 2023-12-02)
  452. ----------------------------
  453. - [featureVars] Allow to register the same set of substitution rules to multiple features.
  454. The ``addFeatureVariations`` function can now take a list of featureTags; similarly, the
  455. lib key 'com.github.fonttools.varLib.featureVarsFeatureTag' can now take a
  456. comma-separateed string of feature tags (e.g. "salt,ss01") instead of a single tag (#3360).
  457. - [featureVars] Don't overwrite GSUB FeatureVariations, but append new records to it
  458. for features which are not already there. But raise ``VarLibError`` if the feature tag
  459. already has feature variations associated with it (#3363).
  460. - [varLib] Added ``addGSUBFeatureVariations`` function to add GSUB Feature Variations
  461. to an existing variable font from rules defined in a DesignSpace document (#3362).
  462. - [varLib.interpolatable] Various bugfixes and rendering improvements. In particular,
  463. a new test for "underweight" glyphs. The new test reports quite a few false-positives
  464. though. Please send feedback.
  465. 4.45.1 (released 2023-11-23)
  466. ----------------------------
  467. - [varLib.interpolatable] Various bugfixes and improvements, better reporting, reduced
  468. false positives.
  469. - [ttGlyphSet] Added option to not recalculate glyf bounds (#3348).
  470. 4.45.0 (released 2023-11-20)
  471. ----------------------------
  472. - [varLib.interpolatable] Vastly improved algorithms. Also available now is ``--pdf``
  473. and ``--html`` options to generate a PDF or HTML report of the interpolation issues.
  474. The PDF/HTML report showcases the problematic masters, the interpolated broken
  475. glyph, as well as the proposed fixed version.
  476. 4.44.3 (released 2023-11-15)
  477. ----------------------------
  478. - [subset] Only prune codepage ranges for OS/2.version >= 1, ignore otherwise (#3334).
  479. - [instancer] Ensure hhea vertical metrics stay in sync with OS/2 ones after instancing
  480. MVAR table containing 'hasc', 'hdsc' or 'hlgp' tags (#3297).
  481. 4.44.2 (released 2023-11-14)
  482. ----------------------------
  483. - [glyf] Have ``Glyph.recalcBounds`` skip empty components (base glyph with no contours)
  484. when computing the bounding box of composite glyphs. This simply restores the existing
  485. behavior before some changes were introduced in fonttools 4.44.0 (#3333).
  486. 4.44.1 (released 2023-11-14)
  487. ----------------------------
  488. - [feaLib] Ensure variable mark anchors are deep-copied while building since they
  489. get modified in-place and later reused (#3330).
  490. - [OS/2|subset] Added method to ``recalcCodePageRanges`` to OS/2 table class; added
  491. ``--prune-codepage-ranges`` to `fonttools subset` command (#3328, #2607).
  492. 4.44.0 (released 2023-11-03)
  493. ----------------------------
  494. - [instancer] Recalc OS/2 AvgCharWidth after instancing if default changes (#3317).
  495. - [otlLib] Make ClassDefBuilder class order match varLib.merger's, i.e. large
  496. classes first, then glyph lexicographic order (#3321, #3324).
  497. - [instancer] Allow not specifying any of min:default:max values and let be filled
  498. up with fvar's values (#3322, #3323).
  499. - [instancer] When running --update-name-table ignore axes that have no STAT axis
  500. values (#3318, #3319).
  501. - [Debg] When dumping to ttx, write the embedded JSON as multi-line string with
  502. indentation (92cbfee0d).
  503. - [varStore] Handle > 65535 items per encoding by splitting VarData subtable (#3310).
  504. - [subset] Handle null-offsets in MarkLigPos subtables.
  505. - [subset] Keep East Asian spacing fatures vhal, halt, chws, vchw by default (#3305).
  506. - [instancer.solver] Fixed case where axisDef < lower and upper < axisMax (#3304).
  507. - [glyf] Speed up compilation, mostly around ``recalcBounds`` (#3301).
  508. - [varLib.interpolatable] Speed it up when working on variable fonts, plus various
  509. micro-optimizations (#3300).
  510. - Require unicodedata2 >= 15.1.0 when installed with 'unicode' extra, contains UCD 15.1.
  511. 4.43.1 (released 2023-10-06)
  512. ----------------------------
  513. - [EBDT] Fixed TypeError exception in `_reverseBytes` method triggered when dumping
  514. some bitmap fonts with `ttx -z bitwise` option (#3162).
  515. - [v/hhea] Fixed UnboundLocalError exception in ``recalc`` method when no vmtx or hmtx
  516. tables are present (#3290).
  517. - [bezierTools] Fixed incorrectly typed cython local variable leading to TypeError when
  518. calling ``calcQuadraticArcLength`` (#3288).
  519. - [feaLib/otlLib] Better error message when building Coverage table with missing glyph (#3286).
  520. 4.43.0 (released 2023-09-29)
  521. ----------------------------
  522. - [subset] Set up lxml ``XMLParser(resolve_entities=False)`` when parsing OT-SVG documents
  523. to prevent XML External Entity (XXE) attacks (9f61271dc):
  524. https://codeql.github.com/codeql-query-help/python/py-xxe/
  525. - [varLib.iup] Added workaround for a Cython bug in ``iup_delta_optimize`` that was
  526. leading to IUP tolerance being incorrectly initialised, resulting in sub-optimal deltas
  527. (60126435d, cython/cython#5732).
  528. - [varLib] Added new command-line entry point ``fonttools varLib.avar`` to add an
  529. ``avar`` table to an existing VF from axes mappings in a .designspace file (0a3360e52).
  530. - [instancer] Fixed bug whereby no longer used variation regions were not correctly pruned
  531. after VarData optimization (#3268).
  532. - Added support for Python 3.12 (#3283).
  533. 4.42.1 (released 2023-08-20)
  534. ----------------------------
  535. - [t1Lib] Fixed several Type 1 issues (#3238, #3240).
  536. - [otBase/packer] Allow sharing tables reached by different offset sizes (#3241, #3236).
  537. - [varLib/merger] Fix Cursive attachment merging error when all anchors are NULL (#3248, #3247).
  538. - [ttLib] Fixed warning when calling ``addMultilingualName`` and ``ttFont`` parameter was not
  539. passed on to ``findMultilingualName`` (#3253).
  540. 4.42.0 (released 2023-08-02)
  541. ----------------------------
  542. - [varLib] Use sentinel value 0xFFFF to mark a glyph advance in hmtx/vmtx as non
  543. participating, allowing sparse masters to contain glyphs for variation purposes other
  544. than {H,V}VAR (#3235).
  545. - [varLib/cff] Treat empty glyphs in non-default masters as missing, thus not participating
  546. in CFF2 delta computation, similarly to how varLib already treats them for gvar (#3234).
  547. - Added varLib.avarPlanner script to deduce 'correct' avar v1 axis mappings based on
  548. glyph average weights (#3223).
  549. 4.41.1 (released 2023-07-21)
  550. ----------------------------
  551. - [subset] Fixed perf regression in v4.41.0 by making ``NameRecordVisitor`` only visit
  552. tables that do contain nameID references (#3213, #3214).
  553. - [varLib.instancer] Support instancing fonts containing null ConditionSet offsets in
  554. FeatureVariationRecords (#3211, #3212).
  555. - [statisticsPen] Report font glyph-average weight/width and font-wide slant.
  556. - [fontBuilder] Fixed head.created date incorrectly set to 0 instead of the current
  557. timestamp, regression introduced in v4.40.0 (#3210).
  558. - [varLib.merger] Support sparse ``CursivePos`` masters (#3209).
  559. 4.41.0 (released 2023-07-12)
  560. ----------------------------
  561. - [fontBuilder] Fixed bug in setupOS2 with default panose attribute incorrectly being
  562. set to a dict instead of a Panose object (#3201).
  563. - [name] Added method to ``removeUnusedNameRecords`` in the user range (#3185).
  564. - [varLib.instancer] Fixed issue with L4 instancing (moving default) (#3179).
  565. - [cffLib] Use latin1 so we can roundtrip non-ASCII in {Full,Font,Family}Name (#3202).
  566. - [designspaceLib] Mark <source name="..."> as optional in docs (as it is in the code).
  567. - [glyf-1] Fixed drawPoints() bug whereby last cubic segment becomes quadratic (#3189, #3190).
  568. - [fontBuilder] Propagate the 'hidden' flag to the fvar Axis instance (#3184).
  569. - [fontBuilder] Update setupAvar() to also support avar 2, fixing ``_add_avar()`` call
  570. site (#3183).
  571. - Added new ``voltLib.voltToFea`` submodule (originally Tiro Typeworks' "Volto") for
  572. converting VOLT OpenType Layout sources to FEA format (#3164).
  573. 4.40.0 (released 2023-06-12)
  574. ----------------------------
  575. - Published native binary wheels to PyPI for all the python minor versions and platform
  576. and architectures currently supported that would benefit from this. They will include
  577. precompiled Cython-accelerated modules (e.g. cu2qu) without requiring to compile them
  578. from source. The pure-python wheel and source distribution will continue to be
  579. published as always (pip will automatically chose them when no binary wheel is
  580. available for the given platform, e.g. pypy). Use ``pip install --no-binary=fonttools fonttools``
  581. to expliclity request pip to install from the pure-python source.
  582. - [designspaceLib|varLib] Add initial support for specifying axis mappings and build
  583. ``avar2`` table from those (#3123).
  584. - [feaLib] Support variable ligature caret position (#3130).
  585. - [varLib|glyf] Added option to --drop-implied-oncurves; test for impliable oncurve
  586. points either before or after rounding (#3146, #3147, #3155, #3156).
  587. - [TTGlyphPointPen] Don't error with empty contours, simply ignore them (#3145).
  588. - [sfnt] Fixed str vs bytes remnant of py3 transition in code dealing with de/compiling
  589. WOFF metadata (#3129).
  590. - [instancer-solver] Fixed bug when moving default instance with sparse masters (#3139, #3140).
  591. - [feaLib] Simplify variable scalars that don’t vary (#3132).
  592. - [pens] Added filter pen that explicitly emits closing line when lastPt != movePt (#3100).
  593. - [varStore] Improve optimize algorithm and better document the algorithm (#3124, #3127).
  594. Added ``quantization`` option (#3126).
  595. - Added CI workflow config file for building native binary wheels (#3121).
  596. - [fontBuilder] Added glyphDataFormat=0 option; raise error when glyphs contain cubic
  597. outlines but glyphDataFormat was not explicitly set to 1 (#3113, #3119).
  598. - [subset] Prune emptied GDEF.MarkGlyphSetsDef and remap indices; ensure GDEF is
  599. subsetted before GSUB and GPOS (#3114, #3118).
  600. - [xmlReader] Fixed issue whereby DSIG table data was incorrectly parsed (#3115, #2614).
  601. - [varLib/merger] Fixed merging of SinglePos with pos=0 (#3111, #3112).
  602. - [feaLib] Demote "Feature has not been defined" error to a warning when building aalt
  603. and referenced feature is empty (#3110).
  604. - [feaLib] Dedupe multiple substitutions with classes (#3105).
  605. 4.39.4 (released 2023-05-10)
  606. ----------------------------
  607. - [varLib.interpolatable] Allow for sparse masters (#3075)
  608. - [merge] Handle differing default/nominalWidthX in CFF (#3070)
  609. - [ttLib] Add missing main.py file to ttLib package (#3088)
  610. - [ttx] Fix missing composite instructions in XML (#3092)
  611. - [ttx] Fix split tables option to work on filenames containing '%' (#3096)
  612. - [featureVars] Process lookups for features other than rvrn last (#3099)
  613. - [feaLib] support multiple substitution with classes (#3103)
  614. 4.39.3 (released 2023-03-28)
  615. ----------------------------
  616. - [sbix] Fixed TypeError when compiling empty glyphs whose imageData is None, regression
  617. was introduced in v4.39 (#3059).
  618. - [ttFont] Fixed AttributeError on python <= 3.10 when opening a TTFont from a tempfile
  619. SpooledTemporaryFile, seekable method only added on python 3.11 (#3052).
  620. 4.39.2 (released 2023-03-16)
  621. ----------------------------
  622. - [varLib] Fixed regression introduced in 4.39.1 whereby an incomplete 'STAT' table
  623. would be built even though a DesignSpace v5 did contain 'STAT' definitions (#3045, #3046).
  624. 4.39.1 (released 2023-03-16)
  625. ----------------------------
  626. - [avar2] Added experimental support for reading/writing avar version 2 as specified in
  627. this draft proposal: https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md
  628. - [glifLib] Wrap underlying XML library exceptions with GlifLibError when parsing GLIFs,
  629. and also print the name and path of the glyph that fails to be parsed (#3042).
  630. - [feaLib] Consult avar for normalizing user-space values in ConditionSets and in
  631. VariableScalars (#3042, #3043).
  632. - [ttProgram] Handle string input to Program.fromAssembly() (#3038).
  633. - [otlLib] Added a config option to emit GPOS 7 lookups, currently disabled by default
  634. because of a macOS bug (#3034).
  635. - [COLRv1] Added method to automatically compute ClipBoxes (#3027).
  636. - [ttFont] Fixed getGlyphID to raise KeyError on missing glyphs instead of returning
  637. None. The regression was introduced in v4.27.0 (#3032).
  638. - [sbix] Fixed UnboundLocalError: cannot access local variable 'rawdata' (#3031).
  639. - [varLib] When building VF, do not overwrite a pre-existing ``STAT`` table that was built
  640. with feaLib from FEA feature file. Also, added support for building multiple VFs
  641. defined in Designspace v5 from ``fonttools varLib`` script (#3024).
  642. - [mtiLib] Only add ``Debg`` table with lookup names when ``FONTTOOLS_LOOKUP_DEBUGGING``
  643. env variable is set (#3023).
  644. 4.39.0 (released 2023-03-06)
  645. ----------------------------
  646. - [mtiLib] Optionally add `Debg` debug info for MTI feature builds (#3018).
  647. - [ttx] Support reading input file from standard input using special `-` character,
  648. similar to existing `-o -` option to write output to standard output (#3020).
  649. - [cython] Prevent ``cython.compiled`` raise AttributeError if cython not installed
  650. properly (#3017).
  651. - [OS/2] Guard against ZeroDivisionError when calculating xAvgCharWidth in the unlikely
  652. scenario no glyph has non-zero advance (#3015).
  653. - [subset] Recompute xAvgCharWidth independently of --no-prune-unicode-ranges,
  654. previously the two options were involuntarily bundled together (#3012).
  655. - [fontBuilder] Add ``debug`` parameter to addOpenTypeFeatures method to add source
  656. debugging information to the font in the ``Debg`` private table (#3008).
  657. - [name] Make NameRecord `__lt__` comparison not fail on Unicode encoding errors (#3006).
  658. - [featureVars] Fixed bug in ``overlayBox`` (#3003, #3005).
  659. - [glyf] Added experimental support for cubic bezier curves in TrueType glyf table, as
  660. outlined in glyf v1 proposal (#2988):
  661. https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md
  662. - Added new qu2cu module and related qu2cuPen, the reverse of cu2qu for converting
  663. TrueType quadratic splines to cubic bezier curves (#2993).
  664. - [glyf] Added experimental support for reading and writing Variable Composites/Components
  665. as defined in glyf v1 spec proposal (#2958):
  666. https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md.
  667. - [pens]: Added `addVarComponent` method to pen protocols' base classes, which pens can implement
  668. to handle varcomponents (by default they get decomposed) (#2958).
  669. - [misc.transform] Added DecomposedTransform class which implements an affine transformation
  670. with separate translate, rotation, scale, skew, and transformation-center components (#2598)
  671. - [sbix] Ensure Glyph.referenceGlyphName is set; fixes error after dumping and
  672. re-compiling sbix table with 'dupe' glyphs (#2984).
  673. - [feaLib] Be cleverer when merging chained single substitutions into same lookup
  674. when they are specified using the inline notation (#2150, #2974).
  675. - [instancer] Clamp user-inputted axis ranges to those of fvar (#2959).
  676. - [otBase/subset] Define ``__getstate__`` for BaseTable so that a copied/pickled 'lazy'
  677. object gets its own OTTableReader to read from; incidentally fixes a bug while
  678. subsetting COLRv1 table containing ClipBoxes on python 3.11 (#2965, #2968).
  679. - [sbix] Handle glyphs with "dupe" graphic type on compile correctly (#2963).
  680. - [glyf] ``endPointsOfContours`` field should be unsigned! Kudos to behdad for
  681. spotting one of the oldest bugs in FT. Probably nobody has ever dared to make
  682. glyphs with more than 32767 points... (#2957).
  683. - [feaLib] Fixed handling of ``ignore`` statements with unmarked glyphs to match
  684. makeotf behavior, which assumes the first glyph is marked (#2950).
  685. - Reformatted code with ``black`` and enforce new code style via CI check (#2925).
  686. - [feaLib] Sort name table entries following OT spec prescribed order in the builder (#2927).
  687. - [cu2quPen] Add Cu2QuMultiPen that converts multiple outlines at a time in
  688. interpolation compatible way; its methods take a list of tuples arguments
  689. that would normally be passed to individual segment pens, and at the end it
  690. dispatches the converted outlines to each pen (#2912).
  691. - [reverseContourPen/ttGlyphPen] Add outputImpliedClosingLine option (#2913, #2914,
  692. #2921, #2922, #2995).
  693. - [gvar] Avoid expanding all glyphs unnecessarily upon compile (#2918).
  694. - [scaleUpem] Fixed bug whereby CFF2 vsindex was scaled; it should not (#2893, #2894).
  695. - [designspaceLib] Add DS.getAxisByTag and refactor getAxis (#2891).
  696. - [unicodedata] map Zmth<->math in ot_tag_{to,from}_script (#1737, #2889).
  697. - [woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags (#2576, #2884).
  698. - [instancer] Update OS/2 class and post.italicAngle when default moved (L4)
  699. - Dropped support for Python 3.7 which reached EOL, fontTools requires 3.8+.
  700. - [instancer] Fixed instantiateFeatureVariations logic when a rule range becomes
  701. default-applicable (#2737, #2880).
  702. - [ttLib] Add main to ttFont and ttCollection that just decompile and re-compile the
  703. input font (#2869).
  704. - [featureVars] Insert 'rvrn' lookup at the beginning of LookupList, to work around bug
  705. in Apple implementation of 'rvrn' feature which the spec says it should be processed
  706. early whereas on macOS 10.15 it follows lookup order (#2140, #2867).
  707. - [instancer/mutator] Remove 'DSIG' table if present.
  708. - [svgPathPen] Don't close path in endPath(), assume open unless closePath() (#2089, #2865).
  709. 4.38.0 (released 2022-10-21)
  710. ----------------------------
  711. - [varLib.instancer] Added support for L4 instancing, i.e. moving the default value of
  712. an axis while keeping it variable. Thanks Behdad! (#2728, #2861).
  713. It's now also possible to restrict an axis min/max values beyond the current default
  714. value, e.g. a font wght has min=100, def=400, max=900 and you want a partial VF that
  715. only varies between 500 and 700, you can now do that.
  716. You can either specify two min/max values (wght=500:700), and the new default will be
  717. set to either the minimum or maximum, depending on which one is closer to the current
  718. default (e.g. 500 in this case). Or you can specify three values (e.g. wght=500:600:700)
  719. to specify the new default value explicitly.
  720. - [otlLib/featureVars] Set a few Count values so one doesn't need to compile the font
  721. to update them (#2860).
  722. - [varLib.models] Make extrapolation work for 2-master models as well where one master
  723. is at the default location (#2843, #2846).
  724. Add optional extrapolate=False to normalizeLocation() (#2847, #2849).
  725. - [varLib.cff] Fixed sub-optimal packing of CFF2 deltas by no longer rounding them to
  726. integer (#2838).
  727. - [scaleUpem] Calculate numShorts in VarData after scale; handle CFF hintmasks (#2840).
  728. 4.37.4 (released 2022-09-30)
  729. ----------------------------
  730. - [subset] Keep nameIDs used by CPAL palette entry labels (#2837).
  731. - [varLib] Avoid negative hmtx values when creating font from variable CFF2 font (#2827).
  732. - [instancer] Don't prune stat.ElidedFallbackNameID (#2828).
  733. - [unicodedata] Update Scripts/Blocks to Unicode 15.0 (#2833).
  734. 4.37.3 (released 2022-09-20)
  735. ----------------------------
  736. - Fix arguments in calls to (glyf) glyph.draw() and drawPoints(), whereby offset wasn't
  737. correctly passed down; this fix also exposed a second bug, where lsb and tsb were not
  738. set (#2824, #2825, adobe-type-tools/afdko#1560).
  739. 4.37.2 (released 2022-09-15)
  740. ----------------------------
  741. - [subset] Keep CPAL table and don't attempt to prune unused color indices if OT-SVG
  742. table is present even if COLR table was subsetted away; OT-SVG may be referencing the
  743. CPAL table; for now we assume that's the case (#2814, #2815).
  744. - [varLib.instancer] Downgrade GPOS/GSUB version if there are no more FeatureVariations
  745. after instancing (#2812).
  746. - [subset] Added ``--no-lazy`` to optionally load fonts eagerly (mostly to ease
  747. debugging of table lazy loading, no practical effects) (#2807).
  748. - [varLib] Avoid building empty COLR.DeltaSetIndexMap with only identity mappings (#2803).
  749. - [feaLib] Allow multiple value record types (by promoting to the most general format)
  750. within the same PairPos subtable; e.g. this allows variable and non variable kerning
  751. rules to share the same subtable. This also fixes a bug whereby some kerning pairs
  752. would become unreachable while shapiong because of premature subtable splitting (#2772, #2776).
  753. - [feaLib] Speed up ``VarScalar`` by caching models for recurring master locations (#2798).
  754. - [feaLib] Optionally cythonize ``feaLib.lexer``, speeds up parsing FEA a bit (#2799).
  755. - [designspaceLib] Avoid crash when handling unbounded rule conditions (#2797).
  756. - [post] Don't crash if ``post`` legacy format 1 is malformed/improperly used (#2786)
  757. - [gvar] Don't be "lazy" (load all glyph variations up front) when TTFont.lazy=False (#2771).
  758. - [TTFont] Added ``normalizeLocation`` method to normalize a location dict from the
  759. font's defined axes space (also known as "user space") into the normalized (-1..+1)
  760. space. It applies ``avar`` mapping if the font contains an ``avar`` table (#2789).
  761. - [TTVarGlyphSet] Support drawing glyph instances from CFF2 variable glyph set (#2784).
  762. - [fontBuilder] Do not error when building cmap if there are zero code points (#2785).
  763. - [varLib.plot] Added ability to plot a variation model and set of accompaning master
  764. values corresponding to the model's master locations into a pyplot figure (#2767).
  765. - [Snippets] Added ``statShape.py`` script to draw statistical shape of a glyph as an
  766. ellips (requires pycairo) (baecd88).
  767. - [TTVarGlyphSet] implement drawPoints natively, avoiding going through
  768. SegmentToPointPen (#2778).
  769. - [TTVarGlyphSet] Fixed bug whereby drawing a composite glyph multiple times, its
  770. components would shif; needed an extra copy (#2774).
  771. 4.37.1 (released 2022-08-24)
  772. ----------------------------
  773. - [subset] Fixed regression introduced with v4.37.0 while subsetting the VarStore of
  774. ``HVAR`` and ``VVAR`` tables, whereby an ``AttributeError: subset_varidxes`` was
  775. thrown because an apparently unused import statement (with the side-effect of
  776. dynamically binding that ``subset_varidxes`` method to the VarStore class) had been
  777. accidentally deleted in an unrelated PR (#2679, #2773).
  778. - [pens] Added ``cairoPen`` (#2678).
  779. - [gvar] Read ``gvar`` more lazily by not parsing all of the ``glyf`` table (#2771).
  780. - [ttGlyphSet] Make ``drawPoints(pointPen)`` method work for CFF fonts as well via
  781. adapter pen (#2770).
  782. 4.37.0 (released 2022-08-23)
  783. ----------------------------
  784. - [varLib.models] Reverted PR #2717 which added support for "narrow tents" in v4.36.0,
  785. as it introduced a regression (#2764, #2765). It will be restored in upcoming release
  786. once we found a solution to the bug.
  787. - [cff.specializer] Fixed issue in charstring generalizer with the ``blend`` operator
  788. (#2750, #1975).
  789. - [varLib.models] Added support for extrapolation (#2757).
  790. - [ttGlyphSet] Ensure the newly added ``_TTVarGlyphSet`` inherits from ``_TTGlyphSet``
  791. to keep backward compatibility with existing API (#2762).
  792. - [kern] Allow compiling legacy kern tables with more than 64k entries (d21cfdede).
  793. - [visitor] Added new visitor API to traverse tree of objects and dispatch based
  794. on the attribute type: cf. ``fontTools.misc.visitor`` and ``fontTools.ttLib.ttVisitor``. Added ``fontTools.ttLib.scaleUpem`` module that uses the latter to
  795. change a font's units-per-em and scale all the related fields accordingly (#2718,
  796. #2755).
  797. 4.36.0 (released 2022-08-17)
  798. ----------------------------
  799. - [varLib.models] Use a simpler model that generates narrower "tents" (regions, master
  800. supports) whenever possible: specifically when any two axes that actively "cooperate"
  801. (have masters at non-zero positions for both axes) have a complete set of intermediates.
  802. The simpler algorithm produces fewer overlapping regions and behaves better with
  803. respect to rounding at the peak positions than the generic solver, always matching
  804. intermediate masters exactly, instead of maximally 0.5 units off. This may be useful
  805. when 100% metrics compatibility is desired (#2218, #2717).
  806. - [feaLib] Remove warning when about ``GDEF`` not being built when explicitly not
  807. requested; don't build one unconditonally even when not requested (#2744, also works
  808. around #2747).
  809. - [ttFont] ``TTFont.getGlyphSet`` method now supports selecting a location that
  810. represents an instance of a variable font (supports both user-scale and normalized
  811. axes coordinates via the ``normalized=False`` parameter). Currently this only works
  812. for TrueType-flavored variable fonts (#2738).
  813. 4.35.0 (released 2022-08-15)
  814. ----------------------------
  815. - [otData/otConverters] Added support for 'biased' PaintSweepGradient start/end angles
  816. to match latest COLRv1 spec (#2743).
  817. - [varLib.instancer] Fixed bug in ``_instantiateFeatureVariations`` when at the same
  818. time pinning one axis and restricting the range of a subsequent axis; the wrong axis
  819. tag was being used in the latter step (as the records' axisIdx was updated in the
  820. preceding step but looked up using the old axes order in the following step) (#2733,
  821. #2734).
  822. - [mtiLib] Pad script tags with space when less than 4 char long (#1727).
  823. - [merge] Use ``'.'`` instead of ``'#'`` in duplicate glyph names (#2742).
  824. - [gvar] Added support for lazily loading glyph variations (#2741).
  825. - [varLib] In ``build_many``, we forgot to pass on ``colr_layer_reuse`` parameter to
  826. the ``build`` method (#2730).
  827. - [svgPathPen] Add a main that prints SVG for input text (6df779fd).
  828. - [cffLib.width] Fixed off-by-one in optimized values; previous code didn't match the
  829. code block above it (2963fa50).
  830. - [varLib.interpolatable] Support reading .designspace and .glyphs files (via optional
  831. ``glyphsLib``).
  832. - Compile some modules with Cython when available and building/installing fonttools
  833. from source: ``varLib.iup`` (35% faster), ``pens.momentsPen`` (makes
  834. ``varLib.interpolatable`` 3x faster).
  835. - [feaLib] Allow features to be built for VF without also building a GDEF table (e.g.
  836. only build GSUB); warn when GDEF would be needed but isn't requested (#2705, 2694).
  837. - [otBase] Fixed ``AttributeError`` when uharfbuzz < 0.23.0 and 'repack' method is
  838. missing (32aa8eaf). Use new ``uharfbuzz.repack_with_tag`` when available (since
  839. uharfbuzz>=0.30.0), enables table-specific optimizations to be performed during
  840. repacking (#2724).
  841. - [statisticsPen] By default report all glyphs (4139d891). Avoid division-by-zero
  842. (52b28f90).
  843. - [feaLib] Added missing required argument to FeatureLibError exception (#2693)
  844. - [varLib.merge] Fixed error during error reporting (#2689). Fixed undefined
  845. ``NotANone`` variable (#2714).
  846. 4.34.4 (released 2022-07-07)
  847. ----------------------------
  848. - Fixed typo in varLib/merger.py that causes NameError merging COLR glyphs
  849. containing more than 255 layers (#2685).
  850. 4.34.3 (released 2022-07-07)
  851. ----------------------------
  852. - [designspaceLib] Don't make up bad PS names when no STAT data (#2684)
  853. 4.34.2 (released 2022-07-06)
  854. ----------------------------
  855. - [varStore/subset] fixed KeyError exception to do with NO_VARIATION_INDEX while
  856. subsetting varidxes in GPOS/GDEF (a08140d).
  857. 4.34.1 (released 2022-07-06)
  858. ----------------------------
  859. - [instancer] When optimizing HVAR/VVAR VarStore, use_NO_VARIATION_INDEX=False to avoid
  860. including NO_VARIATION_INDEX in AdvWidthMap, RsbMap, LsbMap mappings, which would
  861. push the VarIdx width to maximum (4bytes), which is not desirable. This also fixes
  862. a hard crash when attempting to subset a varfont after it had been partially instanced
  863. with use_NO_VARIATION_INDEX=True.
  864. 4.34.0 (released 2022-07-06)
  865. ----------------------------
  866. - [instancer] Set RIBBI bits in head and OS/2 table when cutting instances and the
  867. subfamily nameID=2 contains strings like 'Italic' or 'Bold' (#2673).
  868. - [otTraverse] Addded module containing methods for traversing trees of otData tables
  869. (#2660).
  870. - [otTables] Made DeltaSetIndexMap TTX dump less verbose by omitting no-op entries
  871. (#2660).
  872. - [colorLib.builder] Added option to disable PaintColrLayers's reuse of layers from
  873. LayerList (#2660).
  874. - [varLib] Added support for merging multiple master COLRv1 tables into a variable
  875. COLR table (#2660, #2328). Base color glyphs of same name in different masters must have
  876. identical paint graph structure (incl. number of layers, palette indices, number
  877. of color line stops, corresponding paint formats at each level of the graph),
  878. but can differ in the variable fields (e.g. PaintSolid.Alpha). PaintVar* tables
  879. are produced when this happens and a VarStore/DeltaSetIndexMap is added to the
  880. variable COLR table. It is possible for non-default masters to be 'sparse', i.e.
  881. omit some of the color glyphs present in the default master.
  882. - [feaLib] Let the Parser set nameIDs 1 through 6 that were previously reserved (#2675).
  883. - [varLib.varStore] Support NO_VARIATION_INDEX in optimizer and instancer.
  884. - [feaLib] Show all missing glyphs at once at end of parsing (#2665).
  885. - [varLib.iup] Rewrite force-set conditions and limit DP loopback length (#2651).
  886. For Noto Sans, IUP time drops from 23s down to 9s, with only a slight size increase
  887. in the final font. This basically turns the algorithm from O(n^3) into O(n).
  888. - [featureVars] Report about missing glyphs in substitution rules (#2654).
  889. - [mutator/instancer] Added CLI flag to --no-recalc-timestamp (#2649).
  890. - [SVG] Allow individual SVG documents in SVG OT table to be compressed on uncompressed,
  891. and remember that when roundtripping to/from ttx. The SVG.docList is now a list
  892. of SVGDocument namedtuple-like dataclass containing an extra ``compressed`` field,
  893. and no longer a bare 3-tuple (#2645).
  894. - [designspaceLib] Check for descriptor types with hasattr() to allow custom classes
  895. that don't inherit the default descriptors (#2634).
  896. - [subset] Enable sharing across subtables of extension lookups for harfbuzz packing
  897. (#2626). Updated how table packing falls back to fontTools from harfbuzz (#2668).
  898. - [subset] Updated default feature tags following current Harfbuzz (#2637).
  899. - [svgLib] Fixed regex for real number to support e.g. 1e-4 in addition to 1.0e-4.
  900. Support parsing negative rx, ry on arc commands (#2596, #2611).
  901. - [subset] Fixed subsetting SinglePosFormat2 when ValueFormat=0 (#2603).
  902. 4.33.3 (released 2022-04-26)
  903. ----------------------------
  904. - [designspaceLib] Fixed typo in ``deepcopyExceptFonts`` method, preventing font
  905. references to be transferred (#2600). Fixed another typo in the name of ``Range``
  906. dataclass's ``__post_init__`` magic method (#2597).
  907. 4.33.2 (released 2022-04-22)
  908. ----------------------------
  909. - [otBase] Make logging less verbose when harfbuzz fails to serialize. Do not exit
  910. at the first failure but continue attempting to fix offset overflow error using
  911. the pure-python serializer even when the ``USE_HARFBUZZ_REPACKER`` option was
  912. explicitly set to ``True``. This is normal with fonts with relatively large
  913. tables, at least until hb.repack implements proper table splitting.
  914. 4.33.1 (released 2022-04-22)
  915. ----------------------------
  916. - [otlLib] Put back the ``FONTTOOLS_GPOS_COMPACT_MODE`` environment variable to fix
  917. regression in ufo2ft (and thus fontmake) introduced with v4.33.0 (#2592, #2593).
  918. This is deprecated and will be removed one ufo2ft gets updated to use the new
  919. config setup.
  920. 4.33.0 (released 2022-04-21)
  921. ----------------------------
  922. - [OS/2 / merge] Automatically recalculate ``OS/2.xAvgCharWidth`` after merging
  923. fonts with ``fontTools.merge`` (#2591, #2538).
  924. - [misc/config] Added ``fontTools.misc.configTools`` module, a generic configuration
  925. system (#2416, #2439).
  926. Added ``fontTools.config`` module, a fontTools-specific configuration
  927. system using ``configTools`` above.
  928. Attached a ``Config`` object to ``TTFont``.
  929. - [otlLib] Replaced environment variable for GPOS compression level with an
  930. equivalent option using the new config system.
  931. - [designspaceLib] Incremented format version to 5.0 (#2436).
  932. Added discrete axes, variable fonts, STAT information, either design- or
  933. user-space location on instances.
  934. Added ``fontTools.designspaceLib.split`` module to split a designspace
  935. into sub-spaces that interpolate and that represent the variable fonts
  936. listed in the document.
  937. Made instance names optional and allow computing them from STAT data instead.
  938. Added ``fontTools.designspaceLib.statNames`` module.
  939. Allow instances to have the same location as a previously defined STAT label.
  940. Deprecated some attributes:
  941. ``SourceDescriptor``: ``copyLib``, ``copyInfo``, ``copyGroups``, ``copyFeatures``.
  942. ``InstanceDescriptor``: ``kerning``, ``info``; ``glyphs``: use rules or sparse
  943. sources.
  944. For both, ``location``: use the more explicit designLocation.
  945. Note: all are soft deprecations and existing code should keep working.
  946. Updated documentation for Python methods and the XML format.
  947. - [varLib] Added ``build_many`` to build several variable fonts from a single
  948. designspace document (#2436).
  949. Added ``fontTools.varLib.stat`` module to build STAT tables from a designspace
  950. document.
  951. - [otBase] Try to use the Harfbuzz Repacker for packing GSUB/GPOS tables when
  952. ``uharfbuzz`` python bindings are available (#2552). Disable it by setting the
  953. "fontTools.ttLib.tables.otBase:USE_HARFBUZZ_REPACKER" config option to ``False``.
  954. If the option is set explicitly to ``True`` but ``uharfbuzz`` can't be imported
  955. or fails to serialize for any reasons, an error will be raised (ImportError or
  956. uharfbuzz errors).
  957. - [CFF/T2] Ensure that ``pen.closePath()`` gets called for CFF2 charstrings (#2577).
  958. Handle implicit CFF2 closePath within ``T2OutlineExtractor`` (#2580).
  959. 4.32.0 (released 2022-04-08)
  960. ----------------------------
  961. - [otlLib] Disable GPOS7 optimization to work around bug in Apple CoreText.
  962. Always force Chaining GPOS8 for now (#2540).
  963. - [glifLib] Added ``outputImpliedClosingLine=False`` parameter to ``Glyph.draw()``,
  964. to control behaviour of ``PointToSegmentPen`` (6b4e2e7).
  965. - [varLib.interpolatable] Check for wrong contour starting point (#2571).
  966. - [cffLib] Remove leftover ``GlobalState`` class and fix calls to ``TopDictIndex()``
  967. (#2569, #2570).
  968. - [instancer] Clear ``AxisValueArray`` if it is empty after instantiating (#2563).
  969. 4.31.2 (released 2022-03-22)
  970. ----------------------------
  971. - [varLib] fix instantiation of GPOS SinglePos values (#2555).
  972. 4.31.1 (released 2022-03-18)
  973. ----------------------------
  974. - [subset] fix subsetting OT-SVG when glyph id attribute is on the root ``<svg>``
  975. element (#2553).
  976. 4.31.0 (released 2022-03-18)
  977. ----------------------------
  978. - [ttCollection] Fixed 'ResourceWarning: unclosed file' warning (#2549).
  979. - [varLib.merger] Handle merging SinglePos with valueformat=0 (#2550).
  980. - [ttFont] Update glyf's glyphOrder when calling TTFont.setGlyphOrder() (#2544).
  981. - [ttFont] Added ``ensureDecompiled`` method to load all tables irrespective
  982. of the ``lazy`` attribute (#2551).
  983. - [otBase] Added ``iterSubTable`` method to iterate over BaseTable's children of
  984. type BaseTable; useful for traversing a tree of otTables (#2551).
  985. 4.30.0 (released 2022-03-10)
  986. ----------------------------
  987. - [varLib] Added debug logger showing the glyph name for which ``gvar`` is built (#2542).
  988. - [varLib.errors] Fixed undefined names in ``FoundANone`` and ``UnsupportedFormat``
  989. exceptions (ac4d5611).
  990. - [otlLib.builder] Added ``windowsNames`` and ``macNames`` (bool) parameters to the
  991. ``buildStatTabe`` function, so that one can select whether to only add one or both
  992. of the two sets (#2528).
  993. - [t1Lib] Added the ability to recreate PostScript stream (#2504).
  994. - [name] Added ``getFirstDebugName``, ``getBest{Family,SubFamily,Full}Name`` methods (#2526).
  995. 4.29.1 (released 2022-02-01)
  996. ----------------------------
  997. - [colorLib] Fixed rounding issue with radial gradient's start/end circles inside
  998. one another (#2521).
  999. - [freetypePen] Handle rotate/skew transform when auto-computing width/height of the
  1000. buffer; raise PenError wen missing moveTo (#2517)
  1001. 4.29.0 (released 2022-01-24)
  1002. ----------------------------
  1003. - [ufoLib] Fixed illegal characters and expanded reserved filenames (#2506).
  1004. - [COLRv1] Don't emit useless PaintColrLayers of lenght=1 in LayerListBuilder (#2513).
  1005. - [ttx] Removed legacy ``waitForKeyPress`` method on Windows (#2509).
  1006. - [pens] Added FreeTypePen that uses ``freetype-py`` and the pen protocol for
  1007. rasterizating outline paths (#2494).
  1008. - [unicodedata] Updated the script direction list to Unicode 14.0 (#2484).
  1009. Bumped unicodedata2 dependency to 14.0 (#2499).
  1010. - [psLib] Fixed type of ``fontName`` in ``suckfont`` (#2496).
  1011. 4.28.5 (released 2021-12-19)
  1012. ----------------------------
  1013. - [svgPathPen] Continuation of #2471: make sure all occurrences of ``str()`` are now
  1014. replaced with user-defined ``ntos`` callable.
  1015. - [merge] Refactored code into submodules, plus several bugfixes and improvements:
  1016. fixed duplicate-glyph-resolution GSUB-lookup generation code; use tolerance in glyph
  1017. comparison for empty glyph's width; ignore space of default ignorable glyphs;
  1018. downgrade duplicates-resolution missing-GSUB from assert to warn; added --drop-tables
  1019. option (#2473, #2475, #2476).
  1020. 4.28.4 (released 2021-12-15)
  1021. ----------------------------
  1022. - [merge] Merge GDEF marksets in Lookups properly (#2474).
  1023. - [feaLib] Have ``fontTools feaLib`` script exit with error code when build fails (#2459)
  1024. - [svgPathPen] Added ``ntos`` option to customize number formatting (e.g. rounding) (#2471).
  1025. - [subset] Speed up subsetting of large CFF fonts (#2467).
  1026. - [otTables] Speculatively promote lookups to extension to speed up compilation. If the
  1027. offset to lookup N is too big to fit in a ushort, the offset to lookup N+1 is going to
  1028. be too big as well, so we promote to extension all lookups from lookup N onwards (#2465).
  1029. 4.28.3 (released 2021-12-03)
  1030. ----------------------------
  1031. - [subset] Fixed bug while subsetting ``COLR`` table, whereby incomplete layer records
  1032. pointing to missing glyphs were being retained leading to ``struct.error`` upon
  1033. compiling. Make it so that ``glyf`` glyph closure, which follows the ``COLR`` glyph
  1034. closure, does not influence the ``COLR`` table subsetting (#2461, #2462).
  1035. - [docs] Fully document the ``cmap`` and ``glyf`` tables (#2454, #2457).
  1036. - [colorLib.unbuilder] Fixed CLI by deleting no longer existing parameter (180bb1867).
  1037. 4.28.2 (released 2021-11-22)
  1038. ----------------------------
  1039. - [otlLib] Remove duplicates when building coverage (#2433).
  1040. - [docs] Add interrogate configuration (#2443).
  1041. - [docs] Remove comment about missing “start” optional argument to ``calcChecksum`` (#2448).
  1042. - [cu2qu/cli] Adapt to the latest ufoLib2.
  1043. - [subset] Support subsetting SVG table and remove it from the list of drop by default tables (#534).
  1044. - [subset] add ``--pretty-svg`` option to pretty print SVG table contents (#2452).
  1045. - [merge] Support merging ``CFF`` tables (CID-keyed ``CFF`` is still not supported) (#2447).
  1046. - [merge] Support ``--output-file`` (#2447).
  1047. - [docs] Split table docs into individual pages (#2444).
  1048. - [feaLib] Forbid empty classes (#2446).
  1049. - [docs] Improve documentation for ``fontTools.ttLib.ttFont`` (#2442).
  1050. 4.28.1 (released 2021-11-08)
  1051. ----------------------------
  1052. - [subset] Fixed AttributeError while traversing a color glyph's Paint graph when there is no
  1053. LayerList, which is optional (#2441).
  1054. 4.28.0 (released 2021-11-05)
  1055. ----------------------------
  1056. - Dropped support for EOL Python 3.6, require Python 3.7 (#2417).
  1057. - [ufoLib/glifLib] Make filename-clash checks faster by using a set instead of a list (#2422).
  1058. - [subset] Don't crash if optional ClipList and LayerList are ``None`` (empty) (#2424, 2439).
  1059. - [OT-SVG] Removed support for old deprecated version 1 and embedded color palettes,
  1060. which were never officially part of the OpenType SVG spec. Upon compile, reuse offsets
  1061. to SVG documents that are identical (#2430).
  1062. - [feaLib] Added support for Variable Feature File syntax. This is experimental and subject
  1063. to change until it is finalized in the Adobe FEA spec (#2432).
  1064. - [unicodedata] Update Scripts/ScriptExtensions/Blocks to UnicodeData 14.0 (#2437).
  1065. 4.27.1 (released 2021-09-23)
  1066. ----------------------------
  1067. - [otlLib] Fixed error when chained contextual lookup builder overflows (#2404, #2411).
  1068. - [bezierTools] Fixed two floating-point bugs: one when computing `t` for a point
  1069. lying on an almost horizontal/vertical line; another when computing the intersection
  1070. point between a curve and a line (#2413).
  1071. 4.27.0 (released 2021-09-14)
  1072. ----------------------------
  1073. - [ttLib/otTables] Cleaned up virtual GID handling: allow virtual GIDs in ``Coverage``
  1074. and ``ClassDef`` readers; removed unused ``allowVID`` argument from ``TTFont``
  1075. constructor, and ``requireReal`` argument in ``TTFont.getGlyphID`` method.
  1076. Make ``TTFont.setGlyphOrder`` clear reverse glyphOrder map, and assume ``glyphOrder``
  1077. internal attribute is never modified outside setGlyphOrder; added ``TTFont.getGlyphNameMany``
  1078. and ``getGlyphIDMany`` (#1536, #1654, #2334, #2398).
  1079. - [py23] Dropped internal use of ``fontTools.py23`` module to fix deprecation warnings
  1080. in client code that imports from fontTools (#2234, #2399, #2400).
  1081. - [subset] Fix subsetting COLRv1 clip boxes when font is loaded lazily (#2408).
  1082. 4.26.2 (released 2021-08-09)
  1083. ----------------------------
  1084. - [otTables] Added missing ``CompositeMode.PLUS`` operator (#2390).
  1085. 4.26.1 (released 2021-08-03)
  1086. ----------------------------
  1087. - [transform] Added ``transformVector`` and ``transformVectors`` methods to the
  1088. ``Transform`` class. Similar to ``transformPoint`` but ignore the translation
  1089. part (#2386).
  1090. 4.26.0 (released 2021-08-03)
  1091. ----------------------------
  1092. - [xmlWriter] Default to ``"\n"`` for ``newlinestr`` instead of platform-specific
  1093. ``os.linesep`` (#2384).
  1094. - [otData] Define COLRv1 ClipList and ClipBox (#2379).
  1095. - [removeOverlaps/instancer] Added --ignore-overlap-errors option to work around
  1096. Skia PathOps.Simplify bug (#2382, #2363, google/fonts#3365).
  1097. - NOTE: This will be the last version to support Python 3.6. FontTools will require
  1098. Python 3.7 or above from the next release (#2350)
  1099. 4.25.2 (released 2021-07-26)
  1100. ----------------------------
  1101. - [COLRv1] Various changes to sync with the latest CORLv1 draft spec. In particular:
  1102. define COLR.VarIndexMap, remove/inline ColorIndex struct, add VarIndexBase to ``PaintVar*`` tables (#2372);
  1103. add reduced-precicion specialized transform Paints;
  1104. define Angle as fraction of half circle encoded as F2Dot14;
  1105. use FWORD (int16) for all Paint center coordinates;
  1106. change PaintTransform to have an offset to Affine2x3;
  1107. - [ttLib] when importing XML, only set sfntVersion if the font has no reader and is empty (#2376)
  1108. 4.25.1 (released 2021-07-16)
  1109. ----------------------------
  1110. - [ttGlyphPen] Fixed bug in ``TTGlyphPointPen``, whereby open contours (i.e. starting
  1111. with segmentType "move") would throw ``NotImplementedError``. They are now treated
  1112. as if they are closed, like with the ``TTGlyphPen`` (#2364, #2366).
  1113. 4.25.0 (released 2021-07-05)
  1114. ----------------------------
  1115. - [tfmLib] Added new library for parsing TeX Font Metric (TFM) files (#2354).
  1116. - [TupleVariation] Make shared tuples order deterministic on python < 3.7 where
  1117. Counter (subclass of dict) doesn't remember insertion order (#2351, #2353).
  1118. - [otData] Renamed COLRv1 structs to remove 'v1' suffix and match the updated draft
  1119. spec: 'LayerV1List' -> 'LayerList', 'BaseGlyphV1List' -> 'BaseGlyphList',
  1120. 'BaseGlyphV1Record' -> 'BaseGlyphPaintRecord' (#2346).
  1121. Added 8 new ``PaintScale*`` tables: with/without centers, uniform vs non-uniform.
  1122. Added ``*AroundCenter`` variants to ``PaintRotate`` and ``PaintSkew``: the default
  1123. versions no longer have centerX/Y, but default to origin.
  1124. ``PaintRotate``, ``PaintSkew`` and ``PaintComposite`` formats were re-numbered.
  1125. NOTE: these are breaking changes; clients using the experimental COLRv1 API will
  1126. have to be updated (#2348).
  1127. - [pointPens] Allow ``GuessSmoothPointPen`` to accept a tolerance. Fixed call to
  1128. ``math.atan2`` with x/y parameters inverted. Sync the code with fontPens (#2344).
  1129. - [post] Fixed parsing ``post`` table format 2.0 when it contains extra garbage
  1130. at the end of the stringData array (#2314).
  1131. - [subset] drop empty features unless 'size' with FeatureParams table (#2324).
  1132. - [otlLib] Added ``otlLib.optimize`` module; added GPOS compaction algorithm.
  1133. The compaction can be run on existing fonts with ``fonttools otlLib.optimize``
  1134. or using the snippet ``compact_gpos.py``. There's experimental support for
  1135. compacting fonts at compilation time using an environment variable, but that
  1136. might be removed later (#2326).
  1137. 4.24.4 (released 2021-05-25)
  1138. ----------------------------
  1139. - [subset/instancer] Fixed ``AttributeError`` when instantiating a VF that
  1140. contains GPOS ValueRecords with ``Device`` tables but without the respective
  1141. non-Device values (e.g. ``XAdvDevice`` without ``XAdvance``). When not
  1142. explicitly set, the latter are assumed to be 0 (#2323).
  1143. 4.24.3 (released 2021-05-20)
  1144. ----------------------------
  1145. - [otTables] Fixed ``AttributeError`` in methods that split LigatureSubst,
  1146. MultipleSubst and AlternateSubst subtables when an offset overflow occurs.
  1147. The ``Format`` attribute was removed in v4.22.0 (#2319).
  1148. 4.24.2 (released 2021-05-20)
  1149. ----------------------------
  1150. - [ttGlyphPen] Fixed typing annotation of TTGlyphPen glyphSet parameter (#2315).
  1151. - Fixed two instances of DeprecationWarning: invalid escape sequence (#2311).
  1152. 4.24.1 (released 2021-05-20)
  1153. ----------------------------
  1154. - [subset] Fixed AttributeError when SinglePos subtable has None Value (ValueFormat 0)
  1155. (#2312, #2313).
  1156. 4.24.0 (released 2021-05-17)
  1157. ----------------------------
  1158. - [pens] Add ``ttGlyphPen.TTGlyphPointPen`` similar to ``TTGlyphPen`` (#2205).
  1159. 4.23.1 (released 2021-05-14)
  1160. ----------------------------
  1161. - [subset] Fix ``KeyError`` after subsetting ``COLR`` table that initially contains
  1162. both v0 and v1 color glyphs when the subset only requested v1 glyphs; we were
  1163. not pruning the v0 portion of the table (#2308).
  1164. - [colorLib] Set ``LayerV1List`` attribute to ``None`` when empty, it's optional
  1165. in CORLv1 (#2308).
  1166. 4.23.0 (released 2021-05-13)
  1167. ----------------------------
  1168. - [designspaceLib] Allow to use ``\\UNC`` absolute paths on Windows (#2299, #2306).
  1169. - [varLib.merger] Fixed bug where ``VarLibMergeError`` was raised with incorrect
  1170. parameters (#2300).
  1171. - [feaLib] Allow substituting a glyph class with ``NULL`` to delete multiple glyphs
  1172. (#2303).
  1173. - [glyf] Fixed ``NameError`` exception in ``getPhantomPoints`` (#2295, #2305).
  1174. - [removeOverlaps] Retry pathops.simplify after rounding path coordinates to integers
  1175. if it fails the first time using floats, to work around a rare and hard to debug
  1176. Skia bug (#2288).
  1177. - [varLib] Added support for building, reading, writing and optimizing 32-bit
  1178. ``ItemVariationStore`` as used in COLRv1 table (#2285).
  1179. - [otBase/otConverters] Add array readers/writers for int types (#2285).
  1180. - [feaLib] Allow more than one lookahead glyph/class in contextual positioning with
  1181. "value at end" (#2293, #2294).
  1182. - [COLRv1] Default varIdx should be 0xFFFFFFFF (#2297, #2298).
  1183. - [pens] Make RecordingPointPen actually pass on identifiers; replace asserts with
  1184. explicit ``PenError`` exception (#2284).
  1185. - [mutator] Round lsb for CF2 fonts as well (#2286).
  1186. 4.22.1 (released 2021-04-26)
  1187. ----------------------------
  1188. - [feaLib] Skip references to named lookups if the lookup block definition
  1189. is empty, similarly to makeotf. This also fixes an ``AttributeError`` while
  1190. generating ``aalt`` feature (#2276, #2277).
  1191. - [subset] Fixed bug with ``--no-hinting`` implementation for Device tables (#2272,
  1192. #2275). The previous code was alwyas dropping Device tables if no-hinting was
  1193. requested, but some Device tables (DeltaFormat=0x8000) are also used to encode
  1194. variation indices and need to be retained.
  1195. - [otBase] Fixed bug in getting the ValueRecordSize when decompiling ``MVAR``
  1196. table with ``lazy=True`` (#2273, #2274).
  1197. - [varLib/glyf/gvar] Optimized and simplified ``GlyphCoordinates`` and
  1198. ``TupleVariation`` classes, use ``bytearray`` where possible, refactored
  1199. phantom-points calculations. We measured about 30% speedup in total time
  1200. of loading master ttfs, building gvar, and saving (#2261, #2266).
  1201. - [subset] Fixed ``AssertionError`` while pruning unused CPAL palettes when
  1202. ``0xFFFF`` is present (#2257, #2259).
  1203. 4.22.0 (released 2021-04-01)
  1204. ----------------------------
  1205. - [ttLib] Remove .Format from Coverage, ClassDef, SingleSubst, LigatureSubst,
  1206. AlternateSubst, MultipleSubst (#2238).
  1207. ATTENTION: This will change your TTX dumps!
  1208. - [misc.arrayTools] move Vector to its own submodule, and rewrite as a tuple
  1209. subclass (#2201).
  1210. - [docs] Added a terminology section for varLib (#2209).
  1211. - [varLib] Move rounding to VariationModel, to avoid error accumulation from
  1212. multiple deltas (#2214)
  1213. - [varLib] Explain merge errors in more human-friendly terms (#2223, #2226)
  1214. - [otlLib] Correct some documentation (#2225)
  1215. - [varLib/otlLib] Allow merging into VariationFont without first saving GPOS
  1216. PairPos2 (#2229)
  1217. - [subset] Improve PairPosFormat2 subsetting (#2221)
  1218. - [ttLib] TTFont.save: create file on disk as late as possible (#2253)
  1219. - [cffLib] Add missing CFF2 dict operators LanguageGroup and ExpansionFactor
  1220. (#2249)
  1221. ATTENTION: This will change your TTX dumps!
  1222. 4.21.1 (released 2021-02-26)
  1223. ----------------------------
  1224. - [pens] Reverted breaking change that turned ``AbstractPen`` and ``AbstractPointPen``
  1225. into abstract base classes (#2164, #2198).
  1226. 4.21.0 (released 2021-02-26)
  1227. ----------------------------
  1228. - [feaLib] Indent anchor statements in ``asFea()`` to make them more legible and
  1229. diff-able (#2193).
  1230. - [pens] Turn ``AbstractPen`` and ``AbstractPointPen`` into abstract base classes
  1231. (#2164).
  1232. - [feaLib] Added support for parsing and building ``STAT`` table from AFDKO feature
  1233. files (#2039).
  1234. - [instancer] Added option to update name table of generated instance using ``STAT``
  1235. table's axis values (#2189).
  1236. - [bezierTools] Added functions to compute bezier point-at-time, as well as line-line,
  1237. curve-line and curve-curve intersections (#2192).
  1238. 4.20.0 (released 2021-02-15)
  1239. ----------------------------
  1240. - [COLRv1] Added ``unbuildColrV1`` to deconstruct COLRv1 otTables to raw json-able
  1241. data structure; it does the reverse of ``buildColrV1`` (#2171).
  1242. - [feaLib] Allow ``sub X by NULL`` sequence to delete a glyph (#2170).
  1243. - [arrayTools] Fixed ``Vector`` division (#2173).
  1244. - [COLRv1] Define new ``PaintSweepGradient`` (#2172).
  1245. - [otTables] Moved ``Paint.Format`` enum class outside of ``Paint`` class definition,
  1246. now named ``PaintFormat``. It was clashing with paint instance ``Format`` attribute
  1247. and thus was breaking lazy load of COLR table which relies on magic ``__getattr__``
  1248. (#2175).
  1249. - [COLRv1] Replace hand-coded builder functions with otData-driven dynamic
  1250. implementation (#2181).
  1251. - [COLRv1] Define additional static (non-variable) Paint formats (#2181).
  1252. - [subset] Added support for subsetting COLR v1 and CPAL tables (#2174, #2177).
  1253. - [fontBuilder] Allow ``setupFvar`` to optionally take ``designspaceLib.AxisDescriptor``
  1254. objects. Added new ``setupAvar`` method. Support localised names for axes and
  1255. named instances (#2185).
  1256. 4.19.1 (released 2021-01-28)
  1257. ----------------------------
  1258. - [woff2] An initial off-curve point with an overlap flag now stays an off-curve
  1259. point after compression.
  1260. 4.19.0 (released 2021-01-25)
  1261. ----------------------------
  1262. - [codecs] Handle ``errors`` parameter different from 'strict' for the custom
  1263. extended mac encodings (#2137, #2132).
  1264. - [featureVars] Raise better error message when a script is missing the required
  1265. default language system (#2154).
  1266. - [COLRv1] Avoid abrupt change caused by rounding ``PaintRadialGradient.c0`` when
  1267. the start circle almost touches the end circle's perimeter (#2148).
  1268. - [COLRv1] Support building unlimited lists of paints as 255-ary trees of
  1269. ``PaintColrLayers`` tables (#2153).
  1270. - [subset] Prune redundant format-12 cmap subtables when all non-BMP characters
  1271. are dropped (#2146).
  1272. - [basePen] Raise ``MissingComponentError`` instead of bare ``KeyError`` when a
  1273. referenced component is missing (#2145).
  1274. 4.18.2 (released 2020-12-16)
  1275. ----------------------------
  1276. - [COLRv1] Implemented ``PaintTranslate`` paint format (#2129).
  1277. - [varLib.cff] Fixed unbound local variable error (#1787).
  1278. - [otlLib] Don't crash when creating OpenType class definitions if some glyphs
  1279. occur more than once (#2125).
  1280. 4.18.1 (released 2020-12-09)
  1281. ----------------------------
  1282. - [colorLib] Speed optimization for ``LayerV1ListBuilder`` (#2119).
  1283. - [mutator] Fixed missing tab in ``interpolate_cff2_metrics`` (0957dc7a).
  1284. 4.18.0 (released 2020-12-04)
  1285. ----------------------------
  1286. - [COLRv1] Update to latest draft: added ``PaintRotate`` and ``PaintSkew`` (#2118).
  1287. - [woff2] Support new ``brotlicffi`` bindings for PyPy (#2117).
  1288. - [glifLib] Added ``expectContentsFile`` parameter to ``GlyphSet``, for use when
  1289. reading existing UFOs, to comply with the specification stating that a
  1290. ``contents.plist`` file must exist in a glyph set (#2114).
  1291. - [subset] Allow ``LangSys`` tags in ``--layout-scripts`` option (#2112). For example:
  1292. ``--layout-scripts=arab.dflt,arab.URD,latn``; this will keep ``DefaultLangSys``
  1293. and ``URD`` language for ``arab`` script, and all languages for ``latn`` script.
  1294. - [varLib.interpolatable] Allow UFOs to be checked; report open paths, non existant
  1295. glyphs; add a ``--json`` option to produce a machine-readable list of
  1296. incompatibilities
  1297. - [pens] Added ``QuartzPen`` to create ``CGPath`` from glyph outlines on macOS.
  1298. Requires pyobjc (#2107).
  1299. - [feaLib] You can export ``FONTTOOLS_LOOKUP_DEBUGGING=1`` to enable feature file
  1300. debugging info stored in ``Debg`` table (#2106).
  1301. - [otlLib] Build more efficient format 1 and format 2 contextual lookups whenever
  1302. possible (#2101).
  1303. 4.17.1 (released 2020-11-16)
  1304. ----------------------------
  1305. - [colorLib] Fixed regression in 4.17.0 when building COLR v0 table; when color
  1306. layers are stored in UFO lib plist, we can't distinguish tuples from lists so
  1307. we need to accept either types (e5439eb9, googlefonts/ufo2ft/issues#426).
  1308. 4.17.0 (released 2020-11-12)
  1309. ----------------------------
  1310. - [colorLib/otData] Updated to latest draft ``COLR`` v1 spec (#2092).
  1311. - [svgLib] Fixed parsing error when arc commands' boolean flags are not separated
  1312. by space or comma (#2094).
  1313. - [varLib] Interpret empty non-default glyphs as 'missing', if the default glyph is
  1314. not empty (#2082).
  1315. - [feaLib.builder] Only stash lookup location for ``Debg`` if ``Builder.buildLookups_``
  1316. has cooperated (#2065, #2067).
  1317. - [varLib] Fixed bug in VarStore optimizer (#2073, #2083).
  1318. - [varLib] Add designspace lib key for custom feavar feature tag (#2080).
  1319. - Add HashPointPen adapted from psautohint. With this pen, a hash value of a glyph
  1320. can be computed, which can later be used to detect glyph changes (#2005).
  1321. 4.16.1 (released 2020-10-05)
  1322. ----------------------------
  1323. - [varLib.instancer] Fixed ``TypeError`` exception when instantiating a VF with
  1324. a GSUB table 1.1 in which ``FeatureVariations`` attribute is present but set to
  1325. ``None`` -- indicating that optional ``FeatureVariations`` is missing (#2077).
  1326. - [glifLib] Make ``x`` and ``y`` attributes of the ``point`` element required
  1327. even when validation is turned off, and raise a meaningful ``GlifLibError``
  1328. message when that happens (#2075).
  1329. 4.16.0 (released 2020-09-30)
  1330. ----------------------------
  1331. - [removeOverlaps] Added new module and ``removeOverlaps`` function that merges
  1332. overlapping contours and components in TrueType glyphs. It requires the
  1333. `skia-pathops <https://github.com/fonttools/skia-pathops>`__ module.
  1334. Note that removing overlaps invalidates the TrueType hinting (#2068).
  1335. - [varLib.instancer] Added ``--remove-overlaps`` command-line option.
  1336. The ``overlap`` option in ``instantiateVariableFont`` now takes an ``OverlapMode``
  1337. enum: 0: KEEP_AND_DONT_SET_FLAGS, 1: KEEP_AND_SET_FLAGS (default), and 2: REMOVE.
  1338. The latter is equivalent to calling ``removeOverlaps`` on the generated static
  1339. instance. The option continues to accept ``bool`` value for backward compatibility.
  1340. 4.15.0 (released 2020-09-21)
  1341. ----------------------------
  1342. - [plistlib] Added typing annotations to plistlib module. Set up mypy static
  1343. typechecker to run automatically on CI (#2061).
  1344. - [ttLib] Implement private ``Debg`` table, a reverse-DNS namespaced JSON dict.
  1345. - [feaLib] Optionally add an entry into the ``Debg`` table with the original
  1346. lookup name (if any), feature name / script / language combination (if any),
  1347. and original source filename and line location. Annotate the ttx output for
  1348. a lookup with the information from the Debg table (#2052).
  1349. - [sfnt] Disabled checksum checking by default in ``SFNTReader`` (#2058).
  1350. - [Docs] Document ``mtiLib`` module (#2027).
  1351. - [varLib.interpolatable] Added checks for contour node count and operation type
  1352. of each node (#2054).
  1353. - [ttLib] Added API to register custom table packer/unpacker classes (#2055).
  1354. 4.14.0 (released 2020-08-19)
  1355. ----------------------------
  1356. - [feaLib] Allow anonymous classes in LookupFlags definitions (#2037).
  1357. - [Docs] Better document DesignSpace rules processing order (#2041).
  1358. - [ttLib] Fixed 21-year old bug in ``maxp.maxComponentDepth`` calculation (#2044,
  1359. #2045).
  1360. - [varLib.models] Fixed misspelled argument name in CLI entry point (81d0042a).
  1361. - [subset] When subsetting GSUB v1.1, fixed TypeError by checking whether the
  1362. optional FeatureVariations table is present (e63ecc5b).
  1363. - [Snippets] Added snippet to show how to decompose glyphs in a TTF (#2030).
  1364. - [otlLib] Generate GSUB type 5 and GPOS type 7 contextual lookups where appropriate
  1365. (#2016).
  1366. 4.13.0 (released 2020-07-10)
  1367. ----------------------------
  1368. - [feaLib/otlLib] Moved lookup subtable builders from feaLib to otlLib; refactored
  1369. some common code (#2004, #2007).
  1370. - [docs] Document otlLib module (#2009).
  1371. - [glifLib] Fixed bug with some UFO .glif filenames clashing on case-insensitive
  1372. filesystems (#2001, #2002).
  1373. - [colorLib] Updated COLRv1 implementation following changes in the draft spec:
  1374. (#2008, googlefonts/colr-gradients-spec#24).
  1375. 4.12.1 (released 2020-06-16)
  1376. ----------------------------
  1377. - [_n_a_m_e] Fixed error in ``addMultilingualName`` with one-character names.
  1378. Only attempt to recovered malformed UTF-16 data from a ``bytes`` string,
  1379. not from unicode ``str`` (#1997, #1998).
  1380. 4.12.0 (released 2020-06-09)
  1381. ----------------------------
  1382. - [otlLib/varLib] Ensure that the ``AxisNameID`` in the ``STAT`` and ``fvar``
  1383. tables is grater than 255 as per OpenType spec (#1985, #1986).
  1384. - [docs] Document more modules in ``fontTools.misc`` package: ``filenames``,
  1385. ``fixedTools``, ``intTools``, ``loggingTools``, ``macCreatorType``, ``macRes``,
  1386. ``plistlib`` (#1981).
  1387. - [OS/2] Don't calculate whole sets of unicode codepoints, use faster and more memory
  1388. efficient ranges and bisect lookups (#1984).
  1389. - [voltLib] Support writing back abstract syntax tree as VOLT data (#1983).
  1390. - [voltLib] Accept DO_NOT_TOUCH_CMAP keyword (#1987).
  1391. - [subset/merge] Fixed a namespace clash involving a private helper class (#1955).
  1392. 4.11.0 (released 2020-05-28)
  1393. ----------------------------
  1394. - [feaLib] Introduced ``includeDir`` parameter on Parser and IncludingLexer to
  1395. explicitly specify the directory to search when ``include()`` statements are
  1396. encountered (#1973).
  1397. - [ufoLib] Silently delete duplicate glyphs within the same kerning group when reading
  1398. groups (#1970).
  1399. - [ttLib] Set version of COLR table when decompiling COLRv1 (commit 9d8a7e2).
  1400. 4.10.2 (released 2020-05-20)
  1401. ----------------------------
  1402. - [sfnt] Fixed ``NameError: SimpleNamespace`` while reading TTC header. The regression
  1403. was introduced with 4.10.1 after removing ``py23`` star import.
  1404. 4.10.1 (released 2020-05-19)
  1405. ----------------------------
  1406. - [sfnt] Make ``SFNTReader`` pickleable even when TTFont is loaded with lazy=True
  1407. option and thus keeps a reference to an external file (#1962, #1967).
  1408. - [feaLib.ast] Restore backward compatibility (broken in 4.10 with #1905) for
  1409. ``ChainContextPosStatement`` and ``ChainContextSubstStatement`` classes.
  1410. Make them accept either list of lookups or list of lists of lookups (#1961).
  1411. - [docs] Document some modules in ``fontTools.misc`` package: ``arrayTools``,
  1412. ``bezierTools`` ``cliTools`` and ``eexec`` (#1956).
  1413. - [ttLib._n_a_m_e] Fixed ``findMultilingualName()`` when name record's ``string`` is
  1414. encoded as bytes sequence (#1963).
  1415. 4.10.0 (released 2020-05-15)
  1416. ----------------------------
  1417. - [varLib] Allow feature variations to be active across the entire space (#1957).
  1418. - [ufoLib] Added support for ``formatVersionMinor`` in UFO's ``fontinfo.plist`` and for
  1419. ``formatMinor`` attribute in GLIF file as discussed in unified-font-object/ufo-spec#78.
  1420. No changes in reading or writing UFOs until an upcoming (non-0) minor update of the
  1421. UFO specification is published (#1786).
  1422. - [merge] Fixed merging fonts with different versions of ``OS/2`` table (#1865, #1952).
  1423. - [subset] Fixed ``AttributeError`` while subsetting ``ContextSubst`` and ``ContextPos``
  1424. Format 3 subtable (#1879, #1944).
  1425. - [ttLib.table._m_e_t_a] if data happens to be ascii, emit comment in TTX (#1938).
  1426. - [feaLib] Support multiple lookups per glyph position (#1905).
  1427. - [psCharStrings] Use inheritance to avoid repeated code in initializer (#1932).
  1428. - [Doc] Improved documentation for the following modules: ``afmLib`` (#1933), ``agl``
  1429. (#1934), ``cffLib`` (#1935), ``cu2qu`` (#1937), ``encodings`` (#1940), ``feaLib``
  1430. (#1941), ``merge`` (#1949).
  1431. - [Doc] Split off developer-centric info to new page, making front page of docs more
  1432. user-focused. List all utilities and sub-modules with brief descriptions.
  1433. Make README more concise and focused (#1914).
  1434. - [otlLib] Add function to build STAT table from high-level description (#1926).
  1435. - [ttLib._n_a_m_e] Add ``findMultilingualName()`` method (#1921).
  1436. - [unicodedata] Update ``RTL_SCRIPTS`` for Unicode 13.0 (#1925).
  1437. - [gvar] Sort ``gvar`` XML output by glyph name, not glyph order (#1907, #1908).
  1438. - [Doc] Added help options to ``fonttools`` command line tool (#1913, #1920).
  1439. Ensure all fonttools CLI tools have help documentation (#1948).
  1440. - [ufoLib] Only write fontinfo.plist when there actually is content (#1911).
  1441. 4.9.0 (released 2020-04-29)
  1442. ---------------------------
  1443. - [subset] Fixed subsetting of FeatureVariations table. The subsetter no longer drops
  1444. FeatureVariationRecords that have empty substitutions as that will keep the search
  1445. going and thus change the logic. It will only drop empty records that occur at the
  1446. end of the FeatureVariationRecords array (#1881).
  1447. - [subset] Remove FeatureVariations table and downgrade GSUB/GPOS to version 0x10000
  1448. when FeatureVariations contain no FeatureVariationRecords after subsetting (#1903).
  1449. - [agl] Add support for legacy Adobe Glyph List of glyph names in ``fontTools.agl``
  1450. (#1895).
  1451. - [feaLib] Ignore superfluous script statements (#1883).
  1452. - [feaLib] Hide traceback by default on ``fonttools feaLib`` command line.
  1453. Use ``--traceback`` option to show (#1898).
  1454. - [feaLib] Check lookup index in chaining sub/pos lookups and print better error
  1455. message (#1896, #1897).
  1456. - [feaLib] Fix building chained alt substitutions (#1902).
  1457. - [Doc] Included all fontTools modules in the sphinx-generated documentation, and
  1458. published it to ReadTheDocs for continuous documentation of the fontTools project
  1459. (#1333). Check it out at https://fonttools.readthedocs.io/. Thanks to Chris Simpkins!
  1460. - [transform] The ``Transform`` class is now subclass of ``typing.NamedTuple``. No
  1461. change in functionality (#1904).
  1462. 4.8.1 (released 2020-04-17)
  1463. ---------------------------
  1464. - [feaLib] Fixed ``AttributeError: 'NoneType' has no attribute 'getAlternateGlyphs'``
  1465. when ``aalt`` feature references a chain contextual substitution lookup
  1466. (googlefonts/fontmake#648, #1878).
  1467. 4.8.0 (released 2020-04-16)
  1468. ---------------------------
  1469. - [feaLib] If Parser is initialized without a ``glyphNames`` parameter, it cannot
  1470. distinguish between a glyph name containing an hyphen, or a range of glyph names;
  1471. instead of raising an error, it now interprets them as literal glyph names, while
  1472. also outputting a logging warning to alert user about the ambiguity (#1768, #1870).
  1473. - [feaLib] When serializing AST to string, emit spaces around hyphens that denote
  1474. ranges. Also, fixed an issue with CID ranges when round-tripping AST->string->AST
  1475. (#1872).
  1476. - [Snippets/otf2ttf] In otf2ttf.py script update LSB in hmtx to match xMin (#1873).
  1477. - [colorLib] Added experimental support for building ``COLR`` v1 tables as per
  1478. the `colr-gradients-spec <https://github.com/googlefonts/colr-gradients-spec/blob/main/colr-gradients-spec.md>`__
  1479. draft proposal. **NOTE**: both the API and the XML dump of ``COLR`` v1 are
  1480. susceptible to change while the proposal is being discussed and formalized (#1822).
  1481. 4.7.0 (released 2020-04-03)
  1482. ---------------------------
  1483. - [cu2qu] Added ``fontTools.cu2qu`` package, imported from the original
  1484. `cu2qu <https://github.com/googlefonts/cu2qu>`__ project. The ``cu2qu.pens`` module
  1485. was moved to ``fontTools.pens.cu2quPen``. The optional cu2qu extension module
  1486. can be compiled by installing `Cython <https://cython.org/>`__ before installing
  1487. fonttools from source (i.e. git repo or sdist tarball). The wheel package that
  1488. is published on PyPI (i.e. the one ``pip`` downloads, unless ``--no-binary``
  1489. option is used), will continue to be pure-Python for now (#1868).
  1490. 4.6.0 (released 2020-03-24)
  1491. ---------------------------
  1492. - [varLib] Added support for building variable ``BASE`` table version 1.1 (#1858).
  1493. - [CPAL] Added ``fromRGBA`` method to ``Color`` class (#1861).
  1494. 4.5.0 (released 2020-03-20)
  1495. ---------------------------
  1496. - [designspaceLib] Added ``add{Axis,Source,Instance,Rule}Descriptor`` methods to
  1497. ``DesignSpaceDocument`` class, to initialize new descriptor objects using keyword
  1498. arguments, and at the same time append them to the current document (#1860).
  1499. - [unicodedata] Update to Unicode 13.0 (#1859).
  1500. 4.4.3 (released 2020-03-13)
  1501. ---------------------------
  1502. - [varLib] Always build ``gvar`` table for TrueType-flavored Variable Fonts,
  1503. even if it contains no variation data. The table is required according to
  1504. the OpenType spec (#1855, #1857).
  1505. 4.4.2 (released 2020-03-12)
  1506. ---------------------------
  1507. - [ttx] Annotate ``LookupFlag`` in XML dump with comment explaining what bits
  1508. are set and what they mean (#1850).
  1509. - [feaLib] Added more descriptive message to ``IncludedFeaNotFound`` error (#1842).
  1510. 4.4.1 (released 2020-02-26)
  1511. ---------------------------
  1512. - [woff2] Skip normalizing ``glyf`` and ``loca`` tables if these are missing from
  1513. a font (e.g. in NotoColorEmoji using ``CBDT/CBLC`` tables).
  1514. - [timeTools] Use non-localized date parsing in ``timestampFromString``, to fix
  1515. error when non-English ``LC_TIME`` locale is set (#1838, #1839).
  1516. - [fontBuilder] Make sure the CFF table generated by fontBuilder can be used by varLib
  1517. without having to compile and decompile the table first. This was breaking in
  1518. converting the CFF table to CFF2 due to some unset attributes (#1836).
  1519. 4.4.0 (released 2020-02-18)
  1520. ---------------------------
  1521. - [colorLib] Added ``fontTools.colorLib.builder`` module, initially with ``buildCOLR``
  1522. and ``buildCPAL`` public functions. More color font formats will follow (#1827).
  1523. - [fontBuilder] Added ``setupCOLR`` and ``setupCPAL`` methods (#1826).
  1524. - [ttGlyphPen] Quantize ``GlyphComponent.transform`` floats to ``F2Dot14`` to fix
  1525. round-trip issue when computing bounding boxes of transformed components (#1830).
  1526. - [glyf] If a component uses reference points (``firstPt`` and ``secondPt``) for
  1527. alignment (instead of X and Y offsets), compute the effective translation offset
  1528. *after* having applied any transform (#1831).
  1529. - [glyf] When all glyphs have zero contours, compile ``glyf`` table data as a single
  1530. null byte in order to pass validation by OTS and Windows (#1829).
  1531. - [feaLib] Parsing feature code now ensures that referenced glyph names are part of
  1532. the known glyph set, unless a glyph set was not provided.
  1533. - [varLib] When filling in the default axis value for a missing location of a source or
  1534. instance, correctly map the value forward.
  1535. - [varLib] The avar table can now contain mapping output values that are greater than
  1536. OR EQUAL to the preceeding value, as the avar specification allows this.
  1537. - [varLib] The errors of the module are now ordered hierarchically below VarLibError.
  1538. See #1821.
  1539. 4.3.0 (released 2020-02-03)
  1540. ---------------------------
  1541. - [EBLC/CBLC] Fixed incorrect padding length calculation for Format 3 IndexSubTable
  1542. (#1817, #1818).
  1543. - [varLib] Fixed error when merging OTL tables and TTFonts were loaded as ``lazy=True``
  1544. (#1808, #1809).
  1545. - [varLib] Allow to use master fonts containing ``CFF2`` table when building VF (#1816).
  1546. - [ttLib] Make ``recalcBBoxes`` option work also with ``CFF2`` table (#1816).
  1547. - [feaLib] Don't reset ``lookupflag`` in lookups defined inside feature blocks.
  1548. They will now inherit the current ``lookupflag`` of the feature. This is what
  1549. Adobe ``makeotf`` also does in this case (#1815).
  1550. - [feaLib] Fixed bug with mixed single/multiple substitutions. If a single substitution
  1551. involved a glyph class, we were incorrectly using only the first glyph in the class
  1552. (#1814).
  1553. 4.2.5 (released 2020-01-29)
  1554. ---------------------------
  1555. - [feaLib] Do not fail on duplicate multiple substitutions, only warn (#1811).
  1556. - [subset] Optimize SinglePos subtables to Format 1 if all ValueRecords are the same
  1557. (#1802).
  1558. 4.2.4 (released 2020-01-09)
  1559. ---------------------------
  1560. - [unicodedata] Update RTL_SCRIPTS for Unicode 11 and 12.
  1561. 4.2.3 (released 2020-01-07)
  1562. ---------------------------
  1563. - [otTables] Fixed bug when splitting `MarkBasePos` subtables as offsets overflow.
  1564. The mark class values in the split subtable were not being updated, leading to
  1565. invalid mark-base attachments (#1797, googlefonts/noto-source#145).
  1566. - [feaLib] Only log a warning instead of error when features contain duplicate
  1567. substitutions (#1767).
  1568. - [glifLib] Strip XML comments when parsing with lxml (#1784, #1785).
  1569. 4.2.2 (released 2019-12-12)
  1570. ---------------------------
  1571. - [subset] Fixed issue with subsetting FeatureVariations table when the index
  1572. of features changes as features get dropped. The feature index need to be
  1573. remapped to point to index of the remaining features (#1777, #1782).
  1574. - [fontBuilder] Added `addFeatureVariations` method to `FontBuilder` class. This
  1575. is a shorthand for calling `featureVars.addFeatureVariations` on the builder's
  1576. TTFont object (#1781).
  1577. - [glyf] Fixed the flags bug in glyph.drawPoints() like we did for glyph.draw()
  1578. (#1771, #1774).
  1579. 4.2.1 (released 2019-12-06)
  1580. ---------------------------
  1581. - [glyf] Use the ``flagOnCurve`` bit mask in ``glyph.draw()``, so that we ignore
  1582. the ``overlap`` flag that may be set when instantiating variable fonts (#1771).
  1583. 4.2.0 (released 2019-11-28)
  1584. ---------------------------
  1585. - [pens] Added the following pens:
  1586. * ``roundingPen.RoundingPen``: filter pen that rounds coordinates and components'
  1587. offsets to integer;
  1588. * ``roundingPen.RoundingPointPen``: like the above, but using PointPen protocol.
  1589. * ``filterPen.FilterPointPen``: base class for filter point pens;
  1590. * ``transformPen.TransformPointPen``: filter point pen to apply affine transform;
  1591. * ``recordingPen.RecordingPointPen``: records and replays point-pen commands.
  1592. - [ttGlyphPen] Always round float coordinates and component offsets to integers
  1593. (#1763).
  1594. - [ufoLib] When converting kerning groups from UFO2 to UFO3, avoid confusing
  1595. groups with the same name as one of the glyphs (#1761, #1762,
  1596. unified-font-object/ufo-spec#98).
  1597. 4.1.0 (released 2019-11-18)
  1598. ---------------------------
  1599. - [instancer] Implemented restricting axis ranges (level 3 partial instancing).
  1600. You can now pass ``{axis_tag: (min, max)}`` tuples as input to the
  1601. ``instantiateVariableFont`` function. Note that changing the default axis
  1602. position is not supported yet. The command-line script also accepts axis ranges
  1603. in the form of colon-separated float values, e.g. ``wght=400:700`` (#1753, #1537).
  1604. - [instancer] Never drop STAT ``DesignAxis`` records, but only prune out-of-range
  1605. ``AxisValue`` records.
  1606. - [otBase/otTables] Enforce that VarStore.RegionAxisCount == fvar.axisCount, even
  1607. when regions list is empty to appease OTS < v8.0 (#1752).
  1608. - [designspaceLib] Defined new ``processing`` attribute for ``<rules>`` element,
  1609. with values "first" or "last", plus other editorial changes to DesignSpace
  1610. specification. Bumped format version to 4.1 (#1750).
  1611. - [varLib] Improved error message when masters' glyph orders do not match (#1758,
  1612. #1759).
  1613. - [featureVars] Allow to specify custom feature tag in ``addFeatureVariations``;
  1614. allow said feature to already exist, in which case we append new lookup indices
  1615. to existing features. Implemented ``<rules>`` attribute ``processing`` according to
  1616. DesignSpace specification update in #1750. Depending on this flag, we generate
  1617. either an 'rvrn' (always processed first) or a 'rclt' feature (follows lookup order,
  1618. therefore last) (#1747, #1625, #1371).
  1619. - [ttCollection] Added support for context manager auto-closing via ``with`` statement
  1620. like with ``TTFont`` (#1751).
  1621. - [unicodedata] Require unicodedata2 >= 12.1.0.
  1622. - [py2.py3] Removed yet more PY2 vestiges (#1743).
  1623. - [_n_a_m_e] Fixed issue when comparing NameRecords with different string types (#1742).
  1624. - [fixedTools] Changed ``fixedToFloat`` to not do any rounding but simply return
  1625. ``value / (1 << precisionBits)``. Added ``floatToFixedToStr`` and
  1626. ``strToFixedToFloat`` functions to be used when loading from or dumping to XML.
  1627. Fixed values (e.g. fvar axes and instance coordinates, avar mappings, etc.) are
  1628. are now stored as un-rounded decimal floats upon decompiling (#1740, #737).
  1629. - [feaLib] Fixed handling of multiple ``LigatureCaret`` statements for the same glyph.
  1630. Only the first rule per glyph is used, additional ones are ignored (#1733).
  1631. 4.0.2 (released 2019-09-26)
  1632. ---------------------------
  1633. - [voltLib] Added support for ``ALL`` and ``NONE`` in ``PROCESS_MARKS`` (#1732).
  1634. - [Silf] Fixed issue in ``Silf`` table compilation and decompilation regarding str vs
  1635. bytes in python3 (#1728).
  1636. - [merge] Handle duplicate glyph names better: instead of appending font index to
  1637. all glyph names, use similar code like we use in ``post`` and ``CFF`` tables (#1729).
  1638. 4.0.1 (released 2019-09-11)
  1639. ---------------------------
  1640. - [otTables] Support fixing offset overflows in ``MultipleSubst`` lookup subtables
  1641. (#1706).
  1642. - [subset] Prune empty strikes in ``EBDT`` and ``CBDT`` table data (#1698, #1633).
  1643. - [pens] Fixed issue in ``PointToSegmentPen`` when last point of closed contour has
  1644. same coordinates as the starting point and was incorrectly dropped (#1720).
  1645. - [Graphite] Fixed ``Sill`` table output to pass OTS (#1705).
  1646. - [name] Added ``removeNames`` method to ``table__n_a_m_e`` class (#1719).
  1647. - [ttLib] Added aliases for renamed entries ``ascender`` and ``descender`` in
  1648. ``hhea`` table (#1715).
  1649. 4.0.0 (released 2019-08-22)
  1650. ---------------------------
  1651. - NOTE: The v4.x version series only supports Python 3.6 or greater. You can keep
  1652. using fonttools 3.x if you need support for Python 2.
  1653. - [py23] Removed all the python2-only code since it is no longer reachable, thus
  1654. unused; only the Python3 symbols were kept, but these are no-op. The module is now
  1655. DEPRECATED and will removed in the future.
  1656. - [ttLib] Fixed UnboundLocalError for empty loca/glyph tables (#1680). Also, allow
  1657. the glyf table to be incomplete when dumping to XML (#1681).
  1658. - [varLib.models] Fixed KeyError while sorting masters and there are no on-axis for
  1659. a given axis (38a8eb0e).
  1660. - [cffLib] Make sure glyph names are unique (#1699).
  1661. - [feaLib] Fix feature parser to correctly handle octal numbers (#1700).
  1662. 3.44.0 (released 2019-08-02)
  1663. ----------------------------
  1664. - NOTE: This is the last scheduled release to support Python 2.7. The upcoming fonttools
  1665. v4.x series is going to require Python 3.6 or greater.
  1666. - [varLib] Added new ``varLib.instancer`` module for partially instantiating variable
  1667. fonts. This extends (and will eventually replace) ``varLib.mutator`` module, as
  1668. it allows to create not just full static instances from a variable font, but also
  1669. "partial" or "less variable" fonts where some of the axes are dropped or
  1670. instantiated at a particular value.
  1671. Also available from the command-line as `fonttools varLib.instancer --help`
  1672. (#1537, #1628).
  1673. - [cffLib] Added support for ``FDSelect`` format 4 (#1677).
  1674. - [subset] Added support for subsetting ``sbix`` (Apple bitmap color font) table.
  1675. - [t1Lib] Fixed issue parsing ``eexec`` section in Type1 fonts when whitespace
  1676. characters are interspersed among the trailing zeros (#1676).
  1677. - [cffLib.specializer] Fixed bug in ``programToCommands`` with CFF2 charstrings (#1669).
  1678. 3.43.2 (released 2019-07-10)
  1679. ----------------------------
  1680. - [featureVars] Fixed region-merging code on python3 (#1659).
  1681. - [varLib.cff] Fixed merging of sparse PrivateDict items (#1653).
  1682. 3.43.1 (released 2019-06-19)
  1683. ----------------------------
  1684. - [subset] Fixed regression when passing ``--flavor=woff2`` option with an input font
  1685. that was already compressed as WOFF 1.0 (#1650).
  1686. 3.43.0 (released 2019-06-18)
  1687. ----------------------------
  1688. - [woff2] Added support for compressing/decompressing WOFF2 fonts with non-transformed
  1689. ``glyf`` and ``loca`` tables, as well as with transformed ``hmtx`` table.
  1690. Removed ``Snippets/woff2_compress.py`` and ``Snippets/woff2_decompress.py`` scripts,
  1691. and replaced them with a new console entry point ``fonttools ttLib.woff2``
  1692. that provides two sub-commands ``compress`` and ``decompress``.
  1693. - [varLib.cff] Fixed bug when merging CFF2 ``PrivateDicts``. The ``PrivateDict``
  1694. data from the first region font was incorrecty used for all subsequent fonts.
  1695. The bug would only affect variable CFF2 fonts with hinting (#1643, #1644).
  1696. Also, fixed a merging bug when VF masters have no blends or marking glyphs (#1632,
  1697. #1642).
  1698. - [loggingTools] Removed unused backport of ``LastResortLogger`` class.
  1699. - [subset] Gracefully handle partial MATH table (#1635).
  1700. - [featureVars] Avoid duplicate references to ``rvrn`` feature record in
  1701. ``DefaultLangSys`` tables when calling ``addFeatureVariations`` on a font that
  1702. does not already have a ``GSUB`` table (aa8a5bc6).
  1703. - [varLib] Fixed merging of class-based kerning. Before, the process could introduce
  1704. rogue kerning values and variations for random classes against class zero (everything
  1705. not otherwise classed).
  1706. - [varLib] Fixed merging GPOS tables from master fonts with different number of
  1707. ``SinglePos`` subtables (#1621, #1641).
  1708. - [unicodedata] Updated Blocks, Scripts and ScriptExtensions to Unicode 12.1.
  1709. 3.42.0 (released 2019-05-28)
  1710. ----------------------------
  1711. - [OS/2] Fixed sign of ``fsType``: it should be ``uint16``, not ``int16`` (#1619).
  1712. - [subset] Skip out-of-range class values in mark attachment (#1478).
  1713. - [fontBuilder] Add an empty ``DSIG`` table with ``setupDummyDSIG`` method (#1621).
  1714. - [varLib.merger] Fixed bug whereby ``GDEF.GlyphClassDef`` were being dropped
  1715. when generating instance via ``varLib.mutator`` (#1614).
  1716. - [varLib] Added command-line options ``-v`` and ``-q`` to configure logging (#1613).
  1717. - [subset] Update font extents in head table (#1612).
  1718. - [subset] Make --retain-gids truncate empty glyphs after the last non-empty glyph
  1719. (#1611).
  1720. - [requirements] Updated ``unicodedata2`` backport for Unicode 12.0.
  1721. 3.41.2 (released 2019-05-13)
  1722. ----------------------------
  1723. - [cffLib] Fixed issue when importing a ``CFF2`` variable font from XML, whereby
  1724. the VarStore state was not propagated to PrivateDict (#1598).
  1725. - [varLib] Don't drop ``post`` glyph names when building CFF2 variable font (#1609).
  1726. 3.41.1 (released 2019-05-13)
  1727. ----------------------------
  1728. - [designspaceLib] Added ``loadSourceFonts`` method to load source fonts using
  1729. custom opener function (#1606).
  1730. - [head] Round font bounding box coordinates to integers to fix compile error
  1731. if CFF font has float coordinates (#1604, #1605).
  1732. - [feaLib] Don't write ``None`` in ``ast.ValueRecord.asFea()`` (#1599).
  1733. - [subset] Fixed issue ``AssertionError`` when using ``--desubroutinize`` option
  1734. (#1590, #1594).
  1735. - [graphite] Fixed bug in ``Silf`` table's ``decompile`` method unmasked by
  1736. previous typo fix (#1597). Decode languange code as UTF-8 in ``Sill`` table's
  1737. ``decompile`` method (#1600).
  1738. 3.41.0 (released 2019-04-29)
  1739. ----------------------------
  1740. - [varLib/cffLib] Added support for building ``CFF2`` variable font from sparse
  1741. masters, or masters with more than one model (multiple ``VarStore.VarData``).
  1742. In ``cffLib.specializer``, added support for ``CFF2`` CharStrings with
  1743. ``blend`` operators (#1547, #1591).
  1744. - [subset] Fixed subsetting ``HVAR`` and ``VVAR`` with ``--retain-gids`` option,
  1745. and when advances mapping is null while sidebearings mappings are non-null
  1746. (#1587, #1588).
  1747. - Added ``otlLib.maxContextCalc`` module to compute ``OS/2.usMaxContext`` value.
  1748. Calculate it automatically when compiling features with feaLib. Added option
  1749. ``--recalc-max-context`` to ``subset`` module (#1582).
  1750. - [otBase/otTables] Fixed ``AttributeError`` on missing OT table fields after
  1751. importing font from TTX (#1584).
  1752. - [graphite] Fixed typo ``Silf`` table's ``decompile`` method (#1586).
  1753. - [otlLib] Better compress ``GPOS`` SinglePos (LookupType 1) subtables (#1539).
  1754. 3.40.0 (released 2019-04-08)
  1755. ----------------------------
  1756. - [subset] Fixed error while subsetting ``VVAR`` with ``--retain-gids``
  1757. option (#1552).
  1758. - [designspaceLib] Use up-to-date default location in ``findDefault`` method
  1759. (#1554).
  1760. - [voltLib] Allow passing file-like object to Parser.
  1761. - [arrayTools/glyf] ``calcIntBounds`` (used to compute bounding boxes of glyf
  1762. table's glyphs) now uses ``otRound`` instead of ``round3`` (#1566).
  1763. - [svgLib] Added support for converting more SVG shapes to path ``d`` strings
  1764. (ellipse, line, polyline), as well as support for ``transform`` attributes.
  1765. Only ``matrix`` transformations are currently supported (#1564, #1564).
  1766. - [varLib] Added support for building ``VVAR`` table from ``vmtx`` and ``VORG``
  1767. tables (#1551).
  1768. - [fontBuilder] Enable making CFF2 fonts with ``post`` table format 2 (#1557).
  1769. - Fixed ``DeprecationWarning`` on invalid escape sequences (#1562).
  1770. 3.39.0 (released 2019-03-19)
  1771. ----------------------------
  1772. - [ttLib/glyf] Raise more specific error when encountering recursive
  1773. component references (#1545, #1546).
  1774. - [Doc/designspaceLib] Defined new ``public.skipExportGlyphs`` lib key (#1534,
  1775. unified-font-object/ufo-spec#84).
  1776. - [varLib] Use ``vmtx`` to compute vertical phantom points; or ``hhea.ascent``
  1777. and ``head.unitsPerEM`` if ``vmtx`` is missing (#1528).
  1778. - [gvar/cvar] Sort XML element's min/value/max attributes in TupleVariation
  1779. toXML to improve readability of TTX dump (#1527).
  1780. - [varLib.plot] Added support for 2D plots with only 1 variation axis (#1522).
  1781. - [designspaceLib] Use axes maps when normalizing locations in
  1782. DesignSpaceDocument (#1226, #1521), and when finding default source (#1535).
  1783. - [mutator] Set ``OVERLAP_SIMPLE`` and ``OVERLAP_COMPOUND`` glyf flags by
  1784. default in ``instantiateVariableFont``. Added ``--no-overlap`` cli option
  1785. to disable this (#1518).
  1786. - [subset] Fixed subsetting ``VVAR`` table (#1516, #1517).
  1787. Fixed subsetting an ``HVAR`` table that has an ``AdvanceWidthMap`` when the
  1788. option ``--retain-gids`` is used.
  1789. - [feaLib] Added ``forceChained`` in MultipleSubstStatement (#1511).
  1790. Fixed double indentation of ``subtable`` statement (#1512).
  1791. Added support for ``subtable`` statement in more places than just PairPos
  1792. lookups (#1520).
  1793. Handle lookupflag 0 and lookupflag without a value (#1540).
  1794. - [varLib] In ``load_designspace``, provide a default English name for the
  1795. ``ital`` axis tag.
  1796. - Remove pyftinspect because it is unmaintained and bitrotted.
  1797. 3.38.0 (released 2019-02-18)
  1798. ----------------------------
  1799. - [cffLib] Fixed RecursionError when unpickling or deepcopying TTFont with
  1800. CFF table (#1488, 649dc49).
  1801. - [subset] Fixed AttributeError when using --desubroutinize option (#1490).
  1802. Also, fixed desubroutinizing bug when subrs contain hints (#1499).
  1803. - [CPAL] Make Color a subclass of namedtuple (173a0f5).
  1804. - [feaLib] Allow hyphen in glyph class names.
  1805. - [feaLib] Added 'tables' option to __main__.py (#1497).
  1806. - [feaLib] Add support for special-case contextual positioning formatting
  1807. (#1501).
  1808. - [svgLib] Support converting SVG basic shapes (rect, circle, etc.) into
  1809. equivalent SVG paths (#1500, #1508).
  1810. - [Snippets] Added name-viewer.ipynb Jupyter notebook.
  1811. 3.37.3 (released 2019-02-05)
  1812. ----------------------------
  1813. - The previous release accidentally changed several files from Unix to DOS
  1814. line-endings. Fix that.
  1815. 3.37.2 (released 2019-02-05)
  1816. ----------------------------
  1817. - [varLib] Temporarily revert the fix to ``load_masters()``, which caused a
  1818. crash in ``interpolate_layout()`` when ``deepcopy``-ing OTFs.
  1819. 3.37.1 (released 2019-02-05)
  1820. ----------------------------
  1821. - [varLib] ``load_masters()`` now actually assigns the fonts it loads to the
  1822. source.font attributes.
  1823. - [varLib] Fixed an MVAR table generation crash when sparse masters were
  1824. involved.
  1825. - [voltLib] ``parse_coverage_()`` returns a tuple instead of an ast.Enum.
  1826. - [feaLib] A MarkClassDefinition inside a block is no longer doubly indented
  1827. compared to the rest of the block.
  1828. 3.37.0 (released 2019-01-28)
  1829. ----------------------------
  1830. - [svgLib] Added support for converting elliptical arcs to cubic bezier curves
  1831. (#1464).
  1832. - [py23] Added backport for ``math.isfinite``.
  1833. - [varLib] Apply HIDDEN flag to fvar axis if designspace axis has attribute
  1834. ``hidden=1``.
  1835. - Fixed "DeprecationWarning: invalid escape sequence" in Python 3.7.
  1836. - [voltLib] Fixed parsing glyph groups. Distinguish different PROCESS_MARKS.
  1837. Accept COMPONENT glyph type.
  1838. - [feaLib] Distinguish missing value and explicit ``<NULL>`` for PairPos2
  1839. format A (#1459). Round-trip ``useExtension`` keyword. Implemented
  1840. ``ValueRecord.asFea`` method.
  1841. - [subset] Insert empty widths into hdmx when retaining gids (#1458).
  1842. 3.36.0 (released 2019-01-17)
  1843. ----------------------------
  1844. - [ttx] Added ``--no-recalc-timestamp`` option to keep the original font's
  1845. ``head.modified`` timestamp (#1455, #46).
  1846. - [ttx/psCharStrings] Fixed issues while dumping and round-tripping CFF2 table
  1847. with ttx (#1451, #1452, #1456).
  1848. - [voltLib] Fixed check for duplicate anchors (#1450). Don't try to read past
  1849. the ``END`` operator in .vtp file (#1453).
  1850. - [varLib] Use sentinel value -0x8000 (-32768) to ignore post.underlineThickness
  1851. and post.underlinePosition when generating MVAR deltas (#1449,
  1852. googlei18n/ufo2ft#308).
  1853. - [subset] Added ``--retain-gids`` option to subset font without modifying the
  1854. current glyph indices (#1443, #1447).
  1855. - [ufoLib] Replace deprecated calls to ``getbytes`` and ``setbytes`` with new
  1856. equivalent ``readbytes`` and ``writebytes`` calls. ``fs`` >= 2.2 no required.
  1857. - [varLib] Allow loading masters from TTX files as well (#1441).
  1858. 3.35.2 (released 2019-01-14)
  1859. ----------------------------
  1860. - [hmtx/vmtx]: Allow to compile/decompile ``hmtx`` and ``vmtx`` tables even
  1861. without the corresponding (required) metrics header tables, ``hhea`` and
  1862. ``vhea`` (#1439).
  1863. - [varLib] Added support for localized axes' ``labelname`` and named instances'
  1864. ``stylename`` (#1438).
  1865. 3.35.1 (released 2019-01-09)
  1866. ----------------------------
  1867. - [_m_a_x_p] Include ``maxComponentElements`` in ``maxp`` table's recalculation.
  1868. 3.35.0 (released 2019-01-07)
  1869. ----------------------------
  1870. - [psCharStrings] In ``encodeFloat`` function, use float's "general format" with
  1871. 8 digits of precision (i.e. ``%8g``) instead of ``str()``. This works around
  1872. a macOS rendering issue when real numbers in CFF table are too long, and
  1873. also makes sure that floats are encoded with the same precision in python 2.7
  1874. and 3.x (#1430, googlei18n/ufo2ft#306).
  1875. - [_n_a_m_e/fontBuilder] Make ``_n_a_m_e_table.addMultilingualName`` also add
  1876. Macintosh (platformID=1) names by default. Added options to ``FontBuilder``
  1877. ``setupNameTable`` method to optionally disable Macintosh or Windows names.
  1878. (#1359, #1431).
  1879. - [varLib] Make ``build`` optionally accept a ``DesignSpaceDocument`` object,
  1880. instead of a designspace file path. The caller can now set the ``font``
  1881. attribute of designspace's sources to a TTFont object, thus allowing to
  1882. skip filenames manipulation altogether (#1416, #1425).
  1883. - [sfnt] Allow SFNTReader objects to be deep-copied.
  1884. - Require typing>=3.6.4 on py27 to fix issue with singledispatch (#1423).
  1885. - [designspaceLib/t1Lib/macRes] Fixed some cases where pathlib.Path objects were
  1886. not accepted (#1421).
  1887. - [varLib] Fixed merging of multiple PairPosFormat2 subtables (#1411).
  1888. - [varLib] The default STAT table version is now set to 1.1, to improve
  1889. compatibility with legacy applications (#1413).
  1890. 3.34.2 (released 2018-12-17)
  1891. ----------------------------
  1892. - [merge] Fixed AssertionError when none of the script tables in GPOS/GSUB have
  1893. a DefaultLangSys record (#1408, 135a4a1).
  1894. 3.34.1 (released 2018-12-17)
  1895. ----------------------------
  1896. - [varLib] Work around macOS rendering issue for composites without gvar entry (#1381).
  1897. 3.34.0 (released 2018-12-14)
  1898. ----------------------------
  1899. - [varLib] Support generation of CFF2 variable fonts. ``model.reorderMasters()``
  1900. now supports arbitrary mapping. Fix handling of overlapping ranges for feature
  1901. variations (#1400).
  1902. - [cffLib, subset] Code clean-up and fixing related to CFF2 support.
  1903. - [ttLib.tables.ttProgram] Use raw strings for regex patterns (#1389).
  1904. - [fontbuilder] Initial support for building CFF2 fonts. Set CFF's
  1905. ``FontMatrix`` automatically from unitsPerEm.
  1906. - [plistLib] Accept the more general ``collections.Mapping`` instead of the
  1907. specific ``dict`` class to support custom data classes that should serialize
  1908. to dictionaries.
  1909. 3.33.0 (released 2018-11-30)
  1910. ----------------------------
  1911. - [subset] subsetter bug fix with variable fonts.
  1912. - [varLib.featureVar] Improve FeatureVariations generation with many rules.
  1913. - [varLib] Enable sparse masters when building variable fonts:
  1914. https://github.com/fonttools/fonttools/pull/1368#issuecomment-437257368
  1915. - [varLib.mutator] Add IDEF for GETVARIATION opcode, for handling hints in an
  1916. instance.
  1917. - [ttLib] Ignore the length of kern table subtable format 0
  1918. 3.32.0 (released 2018-11-01)
  1919. ----------------------------
  1920. - [ufoLib] Make ``UFOWriter`` a subclass of ``UFOReader``, and use mixins
  1921. for shared methods (#1344).
  1922. - [featureVars] Fixed normalization error when a condition's minimum/maximum
  1923. attributes are missing in designspace ``<rule>`` (#1366).
  1924. - [setup.py] Added ``[plot]`` to extras, to optionally install ``matplotlib``,
  1925. needed to use the ``fonTools.varLib.plot`` module.
  1926. - [varLib] Take total bounding box into account when resolving model (7ee81c8).
  1927. If multiple axes have the same range ratio, cut across both (62003f4).
  1928. - [subset] Don't error if ``STAT`` has no ``AxisValue`` tables.
  1929. - [fontBuilder] Added a new submodule which contains a ``FontBuilder`` wrapper
  1930. class around ``TTFont`` that makes it easier to create a working TTF or OTF
  1931. font from scratch with code. NOTE: the API is still experimental and may
  1932. change in future versions.
  1933. 3.31.0 (released 2018-10-21)
  1934. ----------------------------
  1935. - [ufoLib] Merged the `ufoLib <https://github.com/unified-font-objects/ufoLib>`__
  1936. master branch into a new ``fontTools.ufoLib`` package (#1335, #1095).
  1937. Moved ``ufoLib.pointPen`` module to ``fontTools.pens.pointPen``.
  1938. Moved ``ufoLib.etree`` module to ``fontTools.misc.etree``.
  1939. Moved ``ufoLib.plistlib`` module to ``fontTools.misc.plistlib``.
  1940. To use the new ``fontTools.ufoLib`` module you need to install fonttools
  1941. with the ``[ufo]`` extra, or you can manually install the required additional
  1942. dependencies (cf. README.rst).
  1943. - [morx] Support AAT action type to insert glyphs and clean up compilation
  1944. of AAT action tables (4a1871f, 2011ccf).
  1945. - [subset] The ``--no-hinting`` on a CFF font now also drops the optional
  1946. hinting keys in Private dict: ``ForceBold``, ``LanguageGroup``, and
  1947. ``ExpansionFactor`` (#1322).
  1948. - [subset] Include nameIDs referenced by STAT table (#1327).
  1949. - [loggingTools] Added ``msg=None`` argument to
  1950. ``CapturingLogHandler.assertRegex`` (0245f2c).
  1951. - [varLib.mutator] Implemented ``FeatureVariations`` instantiation (#1244).
  1952. - [g_l_y_f] Added PointPen support to ``_TTGlyph`` objects (#1334).
  1953. 3.30.0 (released 2018-09-18)
  1954. ----------------------------
  1955. - [feaLib] Skip building noop class PairPos subtables when Coverage is NULL
  1956. (#1318).
  1957. - [ttx] Expose the previously reserved bit flag ``OVERLAP_SIMPLE`` of
  1958. glyf table's contour points in the TTX dump. This is used in some
  1959. implementations to specify a non-zero fill with overlapping contours (#1316).
  1960. - [ttLib] Added support for decompiling/compiling ``TS1C`` tables containing
  1961. VTT sources for ``cvar`` variation table (#1310).
  1962. - [varLib] Use ``fontTools.designspaceLib`` to read DesignSpaceDocument. The
  1963. ``fontTools.varLib.designspace`` module is now deprecated and will be removed
  1964. in future versions. The presence of an explicit ``axes`` element is now
  1965. required in order to build a variable font (#1224, #1313).
  1966. - [varLib] Implemented building GSUB FeatureVariations table from the ``rules``
  1967. element of DesignSpace document (#1240, #713, #1314).
  1968. - [subset] Added ``--no-layout-closure`` option to not expand the subset with
  1969. the glyphs produced by OpenType layout features. Instead, OpenType features
  1970. will be subset to only rules that are relevant to the otherwise-specified
  1971. glyph set (#43, #1121).
  1972. 3.29.1 (released 2018-09-10)
  1973. ----------------------------
  1974. - [feaLib] Fixed issue whereby lookups from DFLT/dflt were not included in the
  1975. DFLT/non-dflt language systems (#1307).
  1976. - [graphite] Fixed issue on big-endian architectures (e.g. ppc64) (#1311).
  1977. - [subset] Added ``--layout-scripts`` option to add/exclude set of OpenType
  1978. layout scripts that will be preserved. By default all scripts are retained
  1979. (``'*'``) (#1303).
  1980. 3.29.0 (released 2018-07-26)
  1981. ----------------------------
  1982. - [feaLib] In the OTL table builder, when the ``name`` table is excluded
  1983. from the list of tables to be build, skip compiling ``featureNames`` blocks,
  1984. as the records referenced in ``FeatureParams`` table don't exist (68951b7).
  1985. - [otBase] Try ``ExtensionLookup`` if other offset-overflow methods fail
  1986. (05f95f0).
  1987. - [feaLib] Added support for explicit ``subtable;`` break statements in
  1988. PairPos lookups; previously these were ignored (#1279, #1300, #1302).
  1989. - [cffLib.specializer] Make sure the stack depth does not exceed maxstack - 1,
  1990. so that a subroutinizer can insert subroutine calls (#1301,
  1991. https://github.com/googlei18n/ufo2ft/issues/266).
  1992. - [otTables] Added support for fixing offset overflow errors occurring inside
  1993. ``MarkBasePos`` subtables (#1297).
  1994. - [subset] Write the default output file extension based on ``--flavor`` option,
  1995. or the value of ``TTFont.sfntVersion`` (d7ac0ad).
  1996. - [unicodedata] Updated Blocks, Scripts and ScriptExtensions for Unicode 11
  1997. (452c85e).
  1998. - [xmlWriter] Added context manager to XMLWriter class to autoclose file
  1999. descriptor on exit (#1290).
  2000. - [psCharStrings] Optimize the charstring's bytecode by encoding as integers
  2001. all float values that have no decimal portion (8d7774a).
  2002. - [ttFont] Fixed missing import of ``TTLibError`` exception (#1285).
  2003. - [feaLib] Allow any languages other than ``dflt`` under ``DFLT`` script
  2004. (#1278, #1292).
  2005. 3.28.0 (released 2018-06-19)
  2006. ----------------------------
  2007. - [featureVars] Added experimental module to build ``FeatureVariations``
  2008. tables. Still needs to be hooked up to ``varLib.build`` (#1240).
  2009. - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
  2010. positive Infinity. This is now used where we deal with visual data like X/Y
  2011. coordinates, advance widths/heights, variation deltas, and similar (#1274,
  2012. #1248).
  2013. - [subset] Improved GSUB closure memoize algorithm.
  2014. - [varLib.models] Fixed regression in model resolution (180124, #1269).
  2015. - [feaLib.ast] Fixed error when converting ``SubtableStatement`` to string
  2016. (#1275).
  2017. - [varLib.mutator] Set ``OS/2.usWeightClass`` and ``usWidthClass``, and
  2018. ``post.italicAngle`` based on the 'wght', 'wdth' and 'slnt' axis values
  2019. (#1276, #1264).
  2020. - [py23/loggingTools] Don't automatically set ``logging.lastResort`` handler
  2021. on py27. Moved ``LastResortLogger`` to the ``loggingTools`` module (#1277).
  2022. 3.27.1 (released 2018-06-11)
  2023. ----------------------------
  2024. - [ttGlyphPen] Issue a warning and skip building non-existing components
  2025. (https://github.com/googlei18n/fontmake/issues/411).
  2026. - [tests] Fixed issue running ttx_test.py from a tagged commit.
  2027. 3.27.0 (released 2018-06-11)
  2028. ----------------------------
  2029. - [designspaceLib] Added new ``conditionSet`` element to ``rule`` element in
  2030. designspace document. Bumped ``format`` attribute to ``4.0`` (previously,
  2031. it was formatted as an integer). Removed ``checkDefault``, ``checkAxes``
  2032. methods, and any kind of guessing about the axes when the ``<axes>`` element
  2033. is missing. The default master is expected at the intersection of all default
  2034. values for each axis (#1254, #1255, #1267).
  2035. - [cffLib] Fixed issues when compiling CFF2 or converting from CFF when the
  2036. font has an FDArray (#1211, #1271).
  2037. - [varLib] Avoid attempting to build ``cvar`` table when ``glyf`` table is not
  2038. present, as is the case for CFF2 fonts.
  2039. - [subset] Handle None coverages in MarkGlyphSets; revert commit 02616ab that
  2040. sets empty Coverage tables in MarkGlyphSets to None, to make OTS happy.
  2041. - [ttFont] Allow to build glyph order from ``maxp.numGlyphs`` when ``post`` or
  2042. ``cmap`` are missing.
  2043. - [ttFont] Added ``__len__`` method to ``_TTGlyphSet``.
  2044. - [glyf] Ensure ``GlyphCoordinates`` never overflow signed shorts (#1230).
  2045. - [py23] Added alias for ``itertools.izip`` shadowing the built-in ``zip``.
  2046. - [loggingTools] Memoize ``log`` property of ``LogMixin`` class (fbab12).
  2047. - [ttx] Impoved test coverage (#1261).
  2048. - [Snippets] Addded script to append a suffix to all family names in a font.
  2049. - [varLib.plot] Make it work with matplotlib >= 2.1 (b38e2b).
  2050. 3.26.0 (released 2018-05-03)
  2051. ----------------------------
  2052. - [designspace] Added a new optional ``layer`` attribute to the source element,
  2053. and a corresponding ``layerName`` attribute to the ``SourceDescriptor``
  2054. object (#1253).
  2055. Added ``conditionset`` element to the ``rule`` element to the spec, but not
  2056. implemented in designspace reader/writer yet (#1254).
  2057. - [varLib.models] Refine modeling one last time (0ecf5c5).
  2058. - [otBase] Fixed sharing of tables referred to by different offset sizes
  2059. (795f2f9).
  2060. - [subset] Don't drop a GDEF that only has VarStore (fc819d6). Set to None
  2061. empty Coverage tables in MarkGlyphSets (02616ab).
  2062. - [varLib]: Added ``--master-finder`` command-line option (#1249).
  2063. - [varLib.mutator] Prune fvar nameIDs from instance's name table (#1245).
  2064. - [otTables] Allow decompiling bad ClassDef tables with invalid format, with
  2065. warning (#1236).
  2066. - [varLib] Make STAT v1.2 and reuse nameIDs from fvar table (#1242).
  2067. - [varLib.plot] Show master locations. Set axis limits to -1, +1.
  2068. - [subset] Handle HVAR direct mapping. Passthrough 'cvar'.
  2069. Added ``--font-number`` command-line option for collections.
  2070. - [t1Lib] Allow a text encoding to be specified when parsing a Type 1 font
  2071. (#1234). Added ``kind`` argument to T1Font constructor (c5c161c).
  2072. - [ttLib] Added context manager API to ``TTFont`` class, so it can be used in
  2073. ``with`` statements to auto-close the file when exiting the context (#1232).
  2074. 3.25.0 (released 2018-04-03)
  2075. ----------------------------
  2076. - [varLib] Improved support-resolution algorithm. Previously, the on-axis
  2077. masters would always cut the space. They don't anymore. That's more
  2078. consistent, and fixes the main issue Erik showed at TYPO Labs 2017.
  2079. Any varfont built that had an unusual master configuration will change
  2080. when rebuilt (42bef17, a523a697,
  2081. https://github.com/googlei18n/fontmake/issues/264).
  2082. - [varLib.models] Added a ``main()`` entry point, that takes positions and
  2083. prints model results.
  2084. - [varLib.plot] Added new module to plot a designspace's
  2085. VariationModel. Requires ``matplotlib``.
  2086. - [varLib.mutator] Added -o option to specify output file path (2ef60fa).
  2087. - [otTables] Fixed IndexError while pruning of HVAR pre-write (6b6c34a).
  2088. - [varLib.models] Convert delta array to floats if values overflows signed
  2089. short integer (0055f94).
  2090. 3.24.2 (released 2018-03-26)
  2091. ----------------------------
  2092. - [otBase] Don't fail during ``ValueRecord`` copy if src has more items.
  2093. We drop hinting in the subsetter by simply changing ValueFormat, without
  2094. cleaning up the actual ValueRecords. This was causing assertion error if
  2095. a variable font was subsetted without hinting and then passed directly to
  2096. the mutator for instantiation without first it saving to disk.
  2097. 3.24.1 (released 2018-03-06)
  2098. ----------------------------
  2099. - [varLib] Don't remap the same ``DeviceTable`` twice in VarStore optimizer
  2100. (#1206).
  2101. - [varLib] Add ``--disable-iup`` option to ``fonttools varLib`` script,
  2102. and a ``optimize=True`` keyword argument to ``varLib.build`` function,
  2103. to optionally disable IUP optimization while building varfonts.
  2104. - [ttCollection] Fixed issue while decompiling ttc with python3 (#1207).
  2105. 3.24.0 (released 2018-03-01)
  2106. ----------------------------
  2107. - [ttGlyphPen] Decompose composite glyphs if any components' transform is too
  2108. large to fit a ``F2Dot14`` value, or clamp transform values that are
  2109. (almost) equal to +2.0 to make them fit and avoid decomposing (#1200,
  2110. #1204, #1205).
  2111. - [ttx] Added new ``-g`` option to dump glyphs from the ``glyf`` table
  2112. splitted as individual ttx files (#153, #1035, #1132, #1202).
  2113. - Copied ``ufoLib.filenames`` module to ``fontTools.misc.filenames``, used
  2114. for the ttx split-glyphs option (#1202).
  2115. - [feaLib] Added support for ``cvParameters`` blocks in Character Variant
  2116. feautures ``cv01-cv99`` (#860, #1169).
  2117. - [Snippets] Added ``checksum.py`` script to generate/check SHA1 hash of
  2118. ttx files (#1197).
  2119. - [varLib.mutator] Fixed issue while instantiating some variable fonts
  2120. whereby the horizontal advance width computed from ``gvar`` phantom points
  2121. could turn up to be negative (#1198).
  2122. - [varLib/subset] Fixed issue with subsetting GPOS variation data not
  2123. picking up ``ValueRecord`` ``Device`` objects (54fd71f).
  2124. - [feaLib/voltLib] In all AST elements, the ``location`` is no longer a
  2125. required positional argument, but an optional kewyord argument (defaults
  2126. to ``None``). This will make it easier to construct feature AST from
  2127. code (#1201).
  2128. 3.23.0 (released 2018-02-26)
  2129. ----------------------------
  2130. - [designspaceLib] Added an optional ``lib`` element to the designspace as a
  2131. whole, as well as to the instance elements, to store arbitrary data in a
  2132. property list dictionary, similar to the UFO's ``lib``. Added an optional
  2133. ``font`` attribute to the ``SourceDescriptor``, to allow operating on
  2134. in-memory font objects (#1175).
  2135. - [cffLib] Fixed issue with lazy-loading of attributes when attempting to
  2136. set the CFF TopDict.Encoding (#1177, #1187).
  2137. - [ttx] Fixed regression introduced in 3.22.0 that affected the split tables
  2138. ``-s`` option (#1188).
  2139. - [feaLib] Added ``IncludedFeaNotFound`` custom exception subclass, raised
  2140. when an included feature file cannot be found (#1186).
  2141. - [otTables] Changed ``VarIdxMap`` to use glyph names internally instead of
  2142. glyph indexes. The old ttx dumps of HVAR/VVAR tables that contain indexes
  2143. can still be imported (21cbab8, 38a0ffb).
  2144. - [varLib] Implemented VarStore optimizer (#1184).
  2145. - [subset] Implemented pruning of GDEF VarStore, HVAR and MVAR (#1179).
  2146. - [sfnt] Restore backward compatiblity with ``numFonts`` attribute of
  2147. ``SFNTReader`` object (#1181).
  2148. - [merge] Initial support for merging ``LangSysRecords`` (#1180).
  2149. - [ttCollection] don't seek(0) when writing to possibly unseekable strems.
  2150. - [subset] Keep all ``--name-IDs`` from 0 to 6 by default (#1170, #605, #114).
  2151. - [cffLib] Added ``width`` module to calculate optimal CFF default and
  2152. nominal glyph widths.
  2153. - [varLib] Don’t fail if STAT already in the master fonts (#1166).
  2154. 3.22.0 (released 2018-02-04)
  2155. ----------------------------
  2156. - [subset] Support subsetting ``endchar`` acting as ``seac``-like components
  2157. in ``CFF`` (fixes #1162).
  2158. - [feaLib] Allow to build from pre-parsed ``ast.FeatureFile`` object.
  2159. Added ``tables`` argument to only build some tables instead of all (#1159,
  2160. #1163).
  2161. - [textTools] Replaced ``safeEval`` with ``ast.literal_eval`` (#1139).
  2162. - [feaLib] Added option to the parser to not resolve ``include`` statements
  2163. (#1154).
  2164. - [ttLib] Added new ``ttCollection`` module to read/write TrueType and
  2165. OpenType Collections. Exports a ``TTCollection`` class with a ``fonts``
  2166. attribute containing a list of ``TTFont`` instances, the methods ``save``
  2167. and ``saveXML``, plus some list-like methods. The ``importXML`` method is
  2168. not implemented yet (#17).
  2169. - [unicodeadata] Added ``ot_tag_to_script`` function that converts from
  2170. OpenType script tag to Unicode script code.
  2171. - Added new ``designspaceLib`` subpackage, originally from Erik Van Blokland's
  2172. ``designSpaceDocument``: https://github.com/LettError/designSpaceDocument
  2173. NOTE: this is not yet used internally by varLib, and the API may be subject
  2174. to changes (#911, #1110, LettError/designSpaceDocument#28).
  2175. - Added new FontTools icon images (8ee7c32).
  2176. - [unicodedata] Added ``script_horizontal_direction`` function that returns
  2177. either "LTR" or "RTL" given a unicode script code.
  2178. - [otConverters] Don't write descriptive name string as XML comment if the
  2179. NameID value is 0 (== NULL) (#1151, #1152).
  2180. - [unicodedata] Add ``ot_tags_from_script`` function to get the list of
  2181. OpenType script tags associated with unicode script code (#1150).
  2182. - [feaLib] Don't error when "enumerated" kern pairs conflict with preceding
  2183. single pairs; emit warning and chose the first value (#1147, #1148).
  2184. - [loggingTools] In ``CapturingLogHandler.assertRegex`` method, match the
  2185. fully formatted log message.
  2186. - [sbix] Fixed TypeError when concatenating str and bytes (#1154).
  2187. - [bezierTools] Implemented cusp support and removed ``approximate_fallback``
  2188. arg in ``calcQuadraticArcLength``. Added ``calcCubicArcLength`` (#1142).
  2189. 3.21.2 (released 2018-01-08)
  2190. ----------------------------
  2191. - [varLib] Fixed merging PairPos Format1/2 with missing subtables (#1125).
  2192. 3.21.1 (released 2018-01-03)
  2193. ----------------------------
  2194. - [feaLib] Allow mixed single/multiple substitutions (#612)
  2195. - Added missing ``*.afm`` test assets to MAINFEST.in (#1137).
  2196. - Fixed dumping ``SVG`` tables containing color palettes (#1124).
  2197. 3.21.0 (released 2017-12-18)
  2198. ----------------------------
  2199. - [cmap] when compiling format6 subtable, don't assume gid0 is always called
  2200. '.notdef' (1e42224).
  2201. - [ot] Allow decompiling fonts with bad Coverage format number (1aafae8).
  2202. - Change FontTools licence to MIT (#1127).
  2203. - [post] Prune extra names already in standard Mac set (df1e8c7).
  2204. - [subset] Delete empty SubrsIndex after subsetting (#994, #1118).
  2205. - [varLib] Don't share points in cvar by default, as it currently fails on
  2206. some browsers (#1113).
  2207. - [afmLib] Make poor old afmLib work on python3.
  2208. 3.20.1 (released 2017-11-22)
  2209. ----------------------------
  2210. - [unicodedata] Fixed issue with ``script`` and ``script_extension`` functions
  2211. returning inconsistent short vs long names. They both return the short four-
  2212. letter script codes now. Added ``script_name`` and ``script_code`` functions
  2213. to look up the long human-readable script name from the script code, and
  2214. viceversa (#1109, #1111).
  2215. 3.20.0 (released 2017-11-21)
  2216. ----------------------------
  2217. - [unicodedata] Addded new module ``fontTools.unicodedata`` which exports the
  2218. same interface as the built-in ``unicodedata`` module, with the addition of
  2219. a few functions that are missing from the latter, such as ``script``,
  2220. ``script_extension`` and ``block``. Added a ``MetaTools/buildUCD.py`` script
  2221. to download and parse data files from the Unicode Character Database and
  2222. generate python modules containing lists of ranges and property values.
  2223. - [feaLib] Added ``__str__`` method to all ``ast`` elements (delegates to the
  2224. ``asFea`` method).
  2225. - [feaLib] ``Parser`` constructor now accepts a ``glyphNames`` iterable
  2226. instead of ``glyphMap`` dict. The latter still works but with a pending
  2227. deprecation warning (#1104).
  2228. - [bezierTools] Added arc length calculation functions originally from
  2229. ``pens.perimeterPen`` module (#1101).
  2230. - [varLib] Started generating STAT table (8af4309). Right now it just reflects
  2231. the axes, and even that with certain limitations:
  2232. * AxisOrdering is set to the order axes are defined,
  2233. * Name-table entries are not shared with fvar.
  2234. - [py23] Added backports for ``redirect_stdout`` and ``redirect_stderr``
  2235. context managers (#1097).
  2236. - [Graphite] Fixed some round-trip bugs (#1093).
  2237. 3.19.0 (released 2017-11-06)
  2238. ----------------------------
  2239. - [varLib] Try set of used points instead of all points when testing whether to
  2240. share points between tuples (#1090).
  2241. - [CFF2] Fixed issue with reading/writing PrivateDict BlueValues to TTX file.
  2242. Read the commit message 8b02b5a and issue #1030 for more details.
  2243. NOTE: this change invalidates all the TTX files containing CFF2 tables
  2244. that where dumped with previous verisons of fonttools.
  2245. CFF2 Subr items can have values on the stack after the last operator, thus
  2246. a ``CFF2Subr`` class was added to accommodate this (#1091).
  2247. - [_k_e_r_n] Fixed compilation of AAT kern version=1.0 tables (#1089, #1094)
  2248. - [ttLib] Added getBestCmap() convenience method to TTFont class and cmap table
  2249. class that returns a preferred Unicode cmap subtable given a list of options
  2250. (#1092).
  2251. - [morx] Emit more meaningful subtable flags. Implement InsertionMorphAction
  2252. 3.18.0 (released 2017-10-30)
  2253. ----------------------------
  2254. - [feaLib] Fixed writing back nested glyph classes (#1086).
  2255. - [TupleVariation] Reactivated shared points logic, bugfixes (#1009).
  2256. - [AAT] Implemented ``morx`` ligature subtables (#1082).
  2257. - [reverseContourPen] Keep duplicate lineTo following a moveTo (#1080,
  2258. https://github.com/googlei18n/cu2qu/issues/51).
  2259. - [varLib.mutator] Suport instantiation of GPOS, GDEF and MVAR (#1079).
  2260. - [sstruct] Fixed issue with ``unicode_literals`` and ``struct`` module in
  2261. old versions of python 2.7 (#993).
  2262. 3.17.0 (released 2017-10-16)
  2263. ----------------------------
  2264. - [svgPathPen] Added an ``SVGPathPen`` that translates segment pen commands
  2265. into SVG path descriptions. Copied from Tal Leming's ``ufo2svg.svgPathPen``
  2266. https://github.com/typesupply/ufo2svg/blob/d69f992/Lib/ufo2svg/svgPathPen.py
  2267. - [reverseContourPen] Added ``ReverseContourPen``, a filter pen that draws
  2268. contours with the winding direction reversed, while keeping the starting
  2269. point (#1071).
  2270. - [filterPen] Added ``ContourFilterPen`` to manipulate contours as a whole
  2271. rather than segment by segment.
  2272. - [arrayTools] Added ``Vector`` class to apply math operations on an array
  2273. of numbers, and ``pairwise`` function to loop over pairs of items in an
  2274. iterable.
  2275. - [varLib] Added support for building and interpolation of ``cvar`` table
  2276. (f874cf6, a25a401).
  2277. 3.16.0 (released 2017-10-03)
  2278. ----------------------------
  2279. - [head] Try using ``SOURCE_DATE_EPOCH`` environment variable when setting
  2280. the ``head`` modified timestamp to ensure reproducible builds (#1063).
  2281. See https://reproducible-builds.org/specs/source-date-epoch/
  2282. - [VTT] Decode VTT's ``TSI*`` tables text as UTF-8 (#1060).
  2283. - Added support for Graphite font tables: Feat, Glat, Gloc, Silf and Sill.
  2284. Thanks @mhosken! (#1054).
  2285. - [varLib] Default to using axis "name" attribute if "labelname" element
  2286. is missing (588f524).
  2287. - [merge] Added support for merging Script records. Remove unused features
  2288. and lookups after merge (d802580, 556508b).
  2289. - Added ``fontTools.svgLib`` package. Includes a parser for SVG Paths that
  2290. supports the Pen protocol (#1051). Also, added a snippet to convert SVG
  2291. outlines to UFO GLIF (#1053).
  2292. - [AAT] Added support for ``ankr``, ``bsln``, ``mort``, ``morx``, ``gcid``,
  2293. and ``cidg``.
  2294. - [subset] Implemented subsetting of ``prop``, ``opbd``, ``bsln``, ``lcar``.
  2295. 3.15.1 (released 2017-08-18)
  2296. ----------------------------
  2297. - [otConverters] Implemented ``__add__`` and ``__radd__`` methods on
  2298. ``otConverters._LazyList`` that decompile a lazy list before adding
  2299. it to another list or ``_LazyList`` instance. Fixes an ``AttributeError``
  2300. in the ``subset`` module when attempting to sum ``_LazyList`` objects
  2301. (6ef48bd2, 1aef1683).
  2302. - [AAT] Support the `opbd` table with optical bounds (a47f6588).
  2303. - [AAT] Support `prop` table with glyph properties (d05617b4).
  2304. 3.15.0 (released 2017-08-17)
  2305. ----------------------------
  2306. - [AAT] Added support for AAT lookups. The ``lcar`` table can be decompiled
  2307. and recompiled; futher work needed to handle ``morx`` table (#1025).
  2308. - [subset] Keep (empty) DefaultLangSys for Script 'DFLT' (6eb807b5).
  2309. - [subset] Support GSUB/GPOS.FeatureVariations (fe01d87b).
  2310. - [varLib] In ``models.supportScalars``, ignore an axis when its peak value
  2311. is 0 (fixes #1020).
  2312. - [varLib] Add default mappings to all axes in avar to fix rendering issue
  2313. in some rasterizers (19c4b377, 04eacf13).
  2314. - [varLib] Flatten multiple tail PairPosFormat2 subtables before merging
  2315. (c55ef525).
  2316. - [ttLib] Added support for recalculating font bounding box in ``CFF`` and
  2317. ``head`` tables, and min/max values in ``hhea`` and ``vhea`` tables (#970).
  2318. 3.14.0 (released 2017-07-31)
  2319. ----------------------------
  2320. - [varLib.merger] Remove Extensions subtables before merging (f7c20cf8).
  2321. - [varLib] Initialize the avar segment map with required default entries
  2322. (#1014).
  2323. - [varLib] Implemented optimal IUP optmiziation (#1019).
  2324. - [otData] Add ``AxisValueFormat4`` for STAT table v1.2 from OT v1.8.2
  2325. (#1015).
  2326. - [name] Fixed BCP46 language tag for Mac langID=9: 'si' -> 'sl'.
  2327. - [subset] Return value from ``_DehintingT2Decompiler.op_hintmask``
  2328. (c0d672ba).
  2329. - [cffLib] Allow to get TopDict by index as well as by name (dca96c9c).
  2330. - [cffLib] Removed global ``isCFF2`` state; use one set of classes for
  2331. both CFF and CFF2, maintaining backward compatibility existing code (#1007).
  2332. - [cffLib] Deprecated maxstack operator, per OpenType spec update 1.8.1.
  2333. - [cffLib] Added missing default (-100) for UnderlinePosition (#983).
  2334. - [feaLib] Enable setting nameIDs greater than 255 (#1003).
  2335. - [varLib] Recalculate ValueFormat when merging SinglePos (#996).
  2336. - [varLib] Do not emit MVAR if there are no entries in the variation store
  2337. (#987).
  2338. - [ttx] For ``-x`` option, pad with space if table tag length is < 4.
  2339. 3.13.1 (released 2017-05-30)
  2340. ----------------------------
  2341. - [feaLib.builder] Removed duplicate lookups optimization. The original
  2342. lookup order and semantics of the feature file are preserved (#976).
  2343. 3.13.0 (released 2017-05-24)
  2344. ----------------------------
  2345. - [varLib.mutator] Implement IUP optimization (#969).
  2346. - [_g_l_y_f.GlyphCoordinates] Changed ``__bool__()`` semantics to match those
  2347. of other iterables (e46f949). Removed ``__abs__()`` (3db5be2).
  2348. - [varLib.interpolate_layout] Added ``mapped`` keyword argument to
  2349. ``interpolate_layout`` to allow disabling avar mapping: if False (default),
  2350. the location is mapped using the map element of the axes in designspace file;
  2351. if True, it is assumed that location is in designspace's internal space and
  2352. no mapping is performed (#950, #975).
  2353. - [varLib.interpolate_layout] Import designspace-loading logic from varLib.
  2354. - [varLib] Fixed bug with recombining PairPosClass2 subtables (81498e5, #914).
  2355. - [cffLib.specializer] When copying iterables, cast to list (462b7f86).
  2356. 3.12.1 (released 2017-05-18)
  2357. ----------------------------
  2358. - [pens.t2CharStringPen] Fixed AttributeError when calling addComponent in
  2359. T2CharStringPen (#965).
  2360. 3.12.0 (released 2017-05-17)
  2361. ----------------------------
  2362. - [cffLib.specializer] Added new ``specializer`` module to optimize CFF
  2363. charstrings, used by the T2CharStringPen (#948).
  2364. - [varLib.mutator] Sort glyphs by component depth before calculating composite
  2365. glyphs' bounding boxes to ensure deltas are correctly caclulated (#945).
  2366. - [_g_l_y_f] Fixed loss of precision in GlyphCoordinates by using 'd' (double)
  2367. instead of 'f' (float) as ``array.array`` typecode (#963, #964).
  2368. 3.11.0 (released 2017-05-03)
  2369. ----------------------------
  2370. - [t2CharStringPen] Initial support for specialized Type2 path operators:
  2371. vmoveto, hmoveto, vlineto, hlineto, vvcurveto, hhcurveto, vhcurveto and
  2372. hvcurveto. This should produce more compact charstrings (#940, #403).
  2373. - [Doc] Added Sphinx sources for the documentation. Thanks @gferreira (#935).
  2374. - [fvar] Expose flags in XML (#932)
  2375. - [name] Add helper function for building multi-lingual names (#921)
  2376. - [varLib] Fixed kern merging when a PairPosFormat2 has ClassDef1 with glyphs
  2377. that are NOT present in the Coverage (1b5e1c4, #939).
  2378. - [varLib] Fixed non-deterministic ClassDef order with PY3 (f056c12, #927).
  2379. - [feLib] Throw an error when the same glyph is defined in multiple mark
  2380. classes within the same lookup (3e3ff00, #453).
  2381. 3.10.0 (released 2017-04-14)
  2382. ----------------------------
  2383. - [varLib] Added support for building ``avar`` table, using the designspace
  2384. ``<map>`` elements.
  2385. - [varLib] Removed unused ``build(..., axisMap)`` argument. Axis map should
  2386. be specified in designspace file now. We do not accept nonstandard axes
  2387. if ``<axes>`` element is not present.
  2388. - [varLib] Removed "custom" axis from the ``standard_axis_map``. This was
  2389. added before when glyphsLib was always exporting the (unused) custom axis.
  2390. - [varLib] Added partial support for building ``MVAR`` table; does not
  2391. implement ``gasp`` table variations yet.
  2392. - [pens] Added FilterPen base class, for pens that control another pen;
  2393. factored out ``addComponent`` method from BasePen into a separate abstract
  2394. DecomposingPen class; added DecomposingRecordingPen, which records
  2395. components decomposed as regular contours.
  2396. - [TSI1] Fixed computation of the textLength of VTT private tables (#913).
  2397. - [loggingTools] Added ``LogMixin`` class providing a ``log`` property to
  2398. subclasses, which returns a ``logging.Logger`` named after the latter.
  2399. - [loggingTools] Added ``assertRegex`` method to ``CapturingLogHandler``.
  2400. - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.
  2401. - [EBLC] Fixed issue with python 3 ``zip`` iterator.
  2402. 3.9.2 (released 2017-04-08)
  2403. ---------------------------
  2404. - [pens] Added pen to draw glyphs using WxPython ``GraphicsPath`` class:
  2405. https://wxpython.org/docs/api/wx.GraphicsPath-class.html
  2406. - [varLib.merger] Fixed issue with recombining multiple PairPosFormat2
  2407. subtables (#888)
  2408. - [varLib] Do not encode gvar deltas that are all zeroes, or if all values
  2409. are smaller than tolerance.
  2410. - [ttLib] _TTGlyphSet glyphs now also have ``height`` and ``tsb`` (top
  2411. side bearing) attributes from the ``vmtx`` table, if present.
  2412. - [glyf] In ``GlyphCoordintes`` class, added ``__bool__`` / ``__nonzero__``
  2413. methods, and ``array`` property to get raw array.
  2414. - [ttx] Support reading TTX files with BOM (#896)
  2415. - [CFF2] Fixed the reporting of the number of regions in the font.
  2416. 3.9.1 (released 2017-03-20)
  2417. ---------------------------
  2418. - [varLib.merger] Fixed issue while recombining multiple PairPosFormat2
  2419. subtables if they were split because of offset overflows (9798c30).
  2420. - [varLib.merger] Only merge multiple PairPosFormat1 subtables if there is
  2421. at least one of the fonts with a non-empty Format1 subtable (0f5a46b).
  2422. - [varLib.merger] Fixed IndexError with empty ClassDef1 in PairPosFormat2
  2423. (aad0d46).
  2424. - [varLib.merger] Avoid reusing Class2Record (mutable) objects (e6125b3).
  2425. - [varLib.merger] Calculate ClassDef1 and ClassDef2's Format when merging
  2426. PairPosFormat2 (23511fd).
  2427. - [macUtils] Added missing ttLib import (b05f203).
  2428. 3.9.0 (released 2017-03-13)
  2429. ---------------------------
  2430. - [feaLib] Added (partial) support for parsing feature file comments ``# ...``
  2431. appearing in between statements (#879).
  2432. - [feaLib] Cleaned up syntax tree for FeatureNames.
  2433. - [ttLib] Added support for reading/writing ``CFF2`` table (thanks to
  2434. @readroberts at Adobe), and ``TTFA`` (ttfautohint) table.
  2435. - [varLib] Fixed regression introduced with 3.8.0 in the calculation of
  2436. ``NumShorts``, i.e. the number of deltas in ItemVariationData's delta sets
  2437. that use a 16-bit representation (b2825ff).
  2438. 3.8.0 (released 2017-03-05)
  2439. ---------------------------
  2440. - New pens: MomentsPen, StatisticsPen, RecordingPen, and TeePen.
  2441. - [misc] Added new ``fontTools.misc.symfont`` module, for symbolic font
  2442. statistical analysis; requires ``sympy`` (http://www.sympy.org/en/index.html)
  2443. - [varLib] Added experimental ``fontTools.varLib.interpolatable`` module for
  2444. finding wrong contour order between different masters
  2445. - [varLib] designspace.load() now returns a dictionary, instead of a tuple,
  2446. and supports <axes> element (#864); the 'masters' item was renamed 'sources',
  2447. like the <sources> element in the designspace document
  2448. - [ttLib] Fixed issue with recalculating ``head`` modified timestamp when
  2449. saving CFF fonts
  2450. - [ttLib] In TupleVariation, round deltas before compiling (#861, fixed #592)
  2451. - [feaLib] Ignore duplicate glyphs in classes used as MarkFilteringSet and
  2452. MarkAttachmentType (#863)
  2453. - [merge] Changed the ``gasp`` table merge logic so that only the one from
  2454. the first font is retained, similar to other hinting tables (#862)
  2455. - [Tests] Added tests for the ``varLib`` package, as well as test fonts
  2456. from the "Annotated OpenType Specification" (AOTS) to exercise ``ttLib``'s
  2457. table readers/writers (<https://github.com/adobe-type-tools/aots>)
  2458. 3.7.2 (released 2017-02-17)
  2459. ---------------------------
  2460. - [subset] Keep advance widths when stripping ".notdef" glyph outline in
  2461. CID-keyed CFF fonts (#845)
  2462. - [feaLib] Zero values now produce the same results as makeotf (#633, #848)
  2463. - [feaLib] More compact encoding for “Contextual positioning with in-line
  2464. single positioning rules” (#514)
  2465. 3.7.1 (released 2017-02-15)
  2466. ---------------------------
  2467. - [subset] Fixed issue with ``--no-hinting`` option whereby advance widths in
  2468. Type 2 charstrings were also being stripped (#709, #343)
  2469. - [feaLib] include statements now resolve relative paths like makeotf (#838)
  2470. - [feaLib] table ``name`` now handles Unicode codepoints beyond the Basic
  2471. Multilingual Plane, also supports old-style MacOS platform encodings (#842)
  2472. - [feaLib] correctly escape string literals when emitting feature syntax (#780)
  2473. 3.7.0 (released 2017-02-11)
  2474. ---------------------------
  2475. - [ttx, mtiLib] Preserve ordering of glyph alternates in GSUB type 3 (#833).
  2476. - [feaLib] Glyph names can have dashes, as per new AFDKO syntax v1.20 (#559).
  2477. - [feaLib] feaLib.Parser now needs the font's glyph map for parsing.
  2478. - [varLib] Fix regression where GPOS values were stored as 0.
  2479. - [varLib] Allow merging of class-based kerning when ClassDefs are different
  2480. 3.6.3 (released 2017-02-06)
  2481. ---------------------------
  2482. - [varLib] Fix building variation of PairPosFormat2 (b5c34ce).
  2483. - Populate defaults even for otTables that have postRead (e45297b).
  2484. - Fix compiling of MultipleSubstFormat1 with zero 'out' glyphs (b887860).
  2485. 3.6.2 (released 2017-01-30)
  2486. ---------------------------
  2487. - [varLib.merger] Fixed "TypeError: reduce() of empty sequence with no
  2488. initial value" (3717dc6).
  2489. 3.6.1 (released 2017-01-28)
  2490. ---------------------------
  2491. - [py23] Fixed unhandled exception occurring at interpreter shutdown in
  2492. the "last resort" logging handler (972b3e6).
  2493. - [agl] Ensure all glyph names are of native 'str' type; avoid mixing
  2494. 'str' and 'unicode' in TTFont.glyphOrder (d8c4058).
  2495. - Fixed inconsistent title levels in README.rst that caused PyPI to
  2496. incorrectly render the reStructuredText page.
  2497. 3.6.0 (released 2017-01-26)
  2498. ---------------------------
  2499. - [varLib] Refactored and improved the variation-font-building process.
  2500. - Assembly code in the fpgm, prep, and glyf tables is now indented in
  2501. XML output for improved readability. The ``instruction`` element is
  2502. written as a simple tag if empty (#819).
  2503. - [ttx] Fixed 'I/O operation on closed file' error when dumping
  2504. multiple TTXs to standard output with the '-o -' option.
  2505. - The unit test modules (``*_test.py``) have been moved outside of the
  2506. fontTools package to the Tests folder, thus they are no longer
  2507. installed (#811).
  2508. 3.5.0 (released 2017-01-14)
  2509. ---------------------------
  2510. - Font tables read from XML can now be written back to XML with no
  2511. loss.
  2512. - GSUB/GPOS LookupType is written out in XML as an element, not
  2513. comment. (#792)
  2514. - When parsing cmap table, do not store items mapped to glyph id 0.
  2515. (#790)
  2516. - [otlLib] Make ClassDef sorting deterministic. Fixes #766 (7d1ddb2)
  2517. - [mtiLib] Added unit tests (#787)
  2518. - [cvar] Implemented cvar table
  2519. - [gvar] Renamed GlyphVariation to TupleVariation to match OpenType
  2520. terminology.
  2521. - [otTables] Handle gracefully empty VarData.Item array when compiling
  2522. XML. (#797)
  2523. - [varLib] Re-enabled generation of ``HVAR`` table for fonts with
  2524. TrueType outlines; removed ``--build-HVAR`` command-line option.
  2525. - [feaLib] The parser can now be extended to support non-standard
  2526. statements in FEA code by using a customized Abstract Syntax Tree.
  2527. See, for example, ``feaLib.builder_test.test_extensions`` and
  2528. baseClass.feax (#794, fixes #773).
  2529. - [feaLib] Added ``feaLib`` command to the 'fonttools' command-line
  2530. tool; applies a feature file to a font. ``fonttools feaLib -h`` for
  2531. help.
  2532. - [pens] The ``T2CharStringPen`` now takes an optional
  2533. ``roundTolerance`` argument to control the rounding of coordinates
  2534. (#804, fixes #769).
  2535. - [ci] Measure test coverage on all supported python versions and OSes,
  2536. combine coverage data and upload to
  2537. https://codecov.io/gh/fonttools/fonttools (#786)
  2538. - [ci] Configured Travis and Appveyor for running tests on Python 3.6
  2539. (#785, 55c03bc)
  2540. - The manual pages installation directory can be customized through
  2541. ``FONTTOOLS_MANPATH`` environment variable (#799, fixes #84).
  2542. - [Snippets] Added otf2ttf.py, for converting fonts from CFF to
  2543. TrueType using the googlei18n/cu2qu module (#802)
  2544. 3.4.0 (released 2016-12-21)
  2545. ---------------------------
  2546. - [feaLib] Added support for generating FEA text from abstract syntax
  2547. tree (AST) objects (#776). Thanks @mhosken
  2548. - Added ``agl.toUnicode`` function to convert AGL-compliant glyph names
  2549. to Unicode strings (#774)
  2550. - Implemented MVAR table (b4d5381)
  2551. 3.3.1 (released 2016-12-15)
  2552. ---------------------------
  2553. - [setup] We no longer use versioneer.py to compute fonttools version
  2554. from git metadata, as this has caused issues for some users (#767).
  2555. Now we bump the version strings manually with a custom ``release``
  2556. command of setup.py script.
  2557. 3.3.0 (released 2016-12-06)
  2558. ---------------------------
  2559. - [ttLib] Implemented STAT table from OpenType 1.8 (#758)
  2560. - [cffLib] Fixed decompilation of CFF fonts containing non-standard
  2561. key/value pairs in FontDict (issue #740; PR #744)
  2562. - [py23] minor: in ``round3`` function, allow the second argument to be
  2563. ``None`` (#757)
  2564. - The standalone ``sstruct`` and ``xmlWriter`` modules, deprecated
  2565. since vesion 3.2.0, have been removed. They can be imported from the
  2566. ``fontTools.misc`` package.
  2567. 3.2.3 (released 2016-12-02)
  2568. ---------------------------
  2569. - [py23] optimized performance of round3 function; added backport for
  2570. py35 math.isclose() (9d8dacb)
  2571. - [subset] fixed issue with 'narrow' (UCS-2) Python 2 builds and
  2572. ``--text``/``--text-file`` options containing non-BMP chararcters
  2573. (16d0e5e)
  2574. - [varLib] fixed issuewhen normalizing location values (8fa2ee1, #749)
  2575. - [inspect] Made it compatible with both python2 and python3 (167ee60,
  2576. #748). Thanks @pnemade
  2577. 3.2.2 (released 2016-11-24)
  2578. ---------------------------
  2579. - [varLib] Do not emit null axes in fvar (1bebcec). Thanks @robmck-ms
  2580. - [varLib] Handle fonts without GPOS (7915a45)
  2581. - [merge] Ignore LangSys if None (a11bc56)
  2582. - [subset] Fix subsetting MathVariants (78d3cbe)
  2583. - [OS/2] Fix "Private Use (plane 15)" range (08a0d55). Thanks @mashabow
  2584. 3.2.1 (released 2016-11-03)
  2585. ---------------------------
  2586. - [OS/2] fix checking ``fsSelection`` bits matching ``head.macStyle``
  2587. bits
  2588. - [varLib] added ``--build-HVAR`` option to generate ``HVAR`` table for
  2589. fonts with TrueType outlines. For ``CFF2``, it is enabled by default.
  2590. 3.2.0 (released 2016-11-02)
  2591. ---------------------------
  2592. - [varLib] Improve support for OpenType 1.8 Variable Fonts:
  2593. - Implement GDEF's VariationStore
  2594. - Implement HVAR/VVAR tables
  2595. - Partial support for loading MutatorMath .designspace files with
  2596. varLib.designspace module
  2597. - Add varLib.models with Variation fonts interpolation models
  2598. - Implement GSUB/GPOS FeatureVariations
  2599. - Initial support for interpolating and merging OpenType Layout tables
  2600. (see ``varLib.interpolate_layout`` and ``varLib.merger`` modules)
  2601. - [API change] Change version to be an integer instead of a float in
  2602. XML output for GSUB, GPOS, GDEF, MATH, BASE, JSTF, HVAR, VVAR, feat,
  2603. hhea and vhea tables. Scripts that set the Version for those to 1.0
  2604. or other float values also need fixing. A warning is emitted when
  2605. code or XML needs fix.
  2606. - several bug fixes to the cffLib module, contributed by Adobe's
  2607. @readroberts
  2608. - The XML output for CFF table now has a 'major' and 'minor' elements
  2609. for specifying whether it's version 1.0 or 2.0 (support for CFF2 is
  2610. coming soon)
  2611. - [setup.py] remove undocumented/deprecated ``extra_path`` Distutils
  2612. argument. This means that we no longer create a "FontTools" subfolder
  2613. in site-packages containing the actual fontTools package, as well as
  2614. the standalone xmlWriter and sstruct modules. The latter modules are
  2615. also deprecated, and scheduled for removal in upcoming releases.
  2616. Please change your import statements to point to from fontTools.misc
  2617. import xmlWriter and from fontTools.misc import sstruct.
  2618. - [scripts] Add a 'fonttools' command-line tool that simply runs
  2619. ``fontTools.*`` sub-modules: e.g. ``fonttools ttx``,
  2620. ``fonttools subset``, etc.
  2621. - [hmtx/vmts] Read advance width/heights as unsigned short (uint16);
  2622. automatically round float values to integers.
  2623. - [ttLib/xmlWriter] add 'newlinestr=None' keyword argument to
  2624. ``TTFont.saveXML`` for overriding os-specific line endings (passed on
  2625. to ``XMLWriter`` instances).
  2626. - [versioning] Use versioneer instead of ``setuptools_scm`` to
  2627. dynamically load version info from a git checkout at import time.
  2628. - [feaLib] Support backslash-prefixed glyph names.
  2629. 3.1.2 (released 2016-09-27)
  2630. ---------------------------
  2631. - restore Makefile as an alternative way to build/check/install
  2632. - README.md: update instructions for installing package from source,
  2633. and for running test suite
  2634. - NEWS: Change log was out of sync with tagged release
  2635. 3.1.1 (released 2016-09-27)
  2636. ---------------------------
  2637. - Fix ``ttLibVersion`` attribute in TTX files still showing '3.0'
  2638. instead of '3.1'.
  2639. - Use ``setuptools_scm`` to manage package versions.
  2640. 3.1.0 (released 2016-09-26)
  2641. ---------------------------
  2642. - [feaLib] New library to parse and compile Adobe FDK OpenType Feature
  2643. files.
  2644. - [mtiLib] New library to parse and compile Monotype 'FontDame'
  2645. OpenType Layout Tables files.
  2646. - [voltLib] New library to parse Microsoft VOLT project files.
  2647. - [otlLib] New library to work with OpenType Layout tables.
  2648. - [varLib] New library to work with OpenType Font Variations.
  2649. - [pens] Add ttGlyphPen to draw to TrueType glyphs, and t2CharStringPen
  2650. to draw to Type 2 Charstrings (CFF); add areaPen and perimeterPen.
  2651. - [ttLib.tables] Implement 'meta' and 'trak' tables.
  2652. - [ttx] Add --flavor option for compiling to 'woff' or 'woff2'; add
  2653. ``--with-zopfli`` option to use Zopfli to compress WOFF 1.0 fonts.
  2654. - [subset] Support subsetting 'COLR'/'CPAL' and 'CBDT'/'CBLC' color
  2655. fonts tables, and 'gvar' table for variation fonts.
  2656. - [Snippets] Add ``symfont.py``, for symbolic font statistics analysis;
  2657. interpolatable.py, a preliminary script for detecting interpolation
  2658. errors; ``{merge,dump}_woff_metadata.py``.
  2659. - [classifyTools] Helpers to classify things into classes.
  2660. - [CI] Run tests on Windows, Linux and macOS using Appveyor and Travis
  2661. CI; check unit test coverage with Coverage.py/Coveralls; automatic
  2662. deployment to PyPI on tags.
  2663. - [loggingTools] Use Python built-in logging module to print messages.
  2664. - [py23] Make round() behave like Python 3 built-in round(); define
  2665. round2() and round3().
  2666. 3.0 (released 2015-09-01)
  2667. -------------------------
  2668. - Add Snippet scripts for cmap subtable format conversion, printing
  2669. GSUB/GPOS features, building a GX font from two masters
  2670. - TTX WOFF2 support and a ``-f`` option to overwrite output file(s)
  2671. - Support GX tables: ``avar``, ``gvar``, ``fvar``, ``meta``
  2672. - Support ``feat`` and gzip-compressed SVG tables
  2673. - Upgrade Mac East Asian encodings to native implementation if
  2674. available
  2675. - Add Roman Croatian and Romanian encodings, codecs for mac-extended
  2676. East Asian encodings
  2677. - Implement optimal GLYF glyph outline packing; disabled by default
  2678. 2.5 (released 2014-09-24)
  2679. -------------------------
  2680. - Add a Qt pen
  2681. - Add VDMX table converter
  2682. - Load all OpenType sub-structures lazily
  2683. - Add support for cmap format 13.
  2684. - Add pyftmerge tool
  2685. - Update to Unicode 6.3.0d3
  2686. - Add pyftinspect tool
  2687. - Add support for Google CBLC/CBDT color bitmaps, standard EBLC/EBDT
  2688. embedded bitmaps, and ``SVG`` table (thanks to Read Roberts at Adobe)
  2689. - Add support for loading, saving and ttx'ing WOFF file format
  2690. - Add support for Microsoft COLR/CPAL layered color glyphs
  2691. - Support PyPy
  2692. - Support Jython, by replacing numpy with array/lists modules and
  2693. removed it, pure-Python StringIO, not cStringIO
  2694. - Add pyftsubset and Subsetter object, supporting CFF and TTF
  2695. - Add to ttx args for -q for quiet mode, -z to choose a bitmap dump
  2696. format
  2697. 2.4 (released 2013-06-22)
  2698. -------------------------
  2699. - Option to write to arbitrary files
  2700. - Better dump format for DSIG
  2701. - Better detection of OTF XML
  2702. - Fix issue with Apple's kern table format
  2703. - Fix mangling of TT glyph programs
  2704. - Fix issues related to mona.ttf
  2705. - Fix Windows Installer instructions
  2706. - Fix some modern MacOS issues
  2707. - Fix minor issues and typos
  2708. 2.3 (released 2009-11-08)
  2709. -------------------------
  2710. - TrueType Collection (TTC) support
  2711. - Python 2.6 support
  2712. - Update Unicode data to 5.2.0
  2713. - Couple of bug fixes
  2714. 2.2 (released 2008-05-18)
  2715. -------------------------
  2716. - ClearType support
  2717. - cmap format 1 support
  2718. - PFA font support
  2719. - Switched from Numeric to numpy
  2720. - Update Unicode data to 5.1.0
  2721. - Update AGLFN data to 1.6
  2722. - Many bug fixes
  2723. 2.1 (released 2008-01-28)
  2724. -------------------------
  2725. - Many years worth of fixes and features
  2726. 2.0b2 (released 2002-??-??)
  2727. ---------------------------
  2728. - Be "forgiving" when interpreting the maxp table version field:
  2729. interpret any value as 1.0 if it's not 0.5. Fixes dumping of these
  2730. GPL fonts: http://www.freebsd.org/cgi/pds.cgi?ports/chinese/wangttf
  2731. - Fixed ttx -l: it turned out this part of the code didn't work with
  2732. Python 2.2.1 and earlier. My bad to do most of my testing with a
  2733. different version than I shipped TTX with :-(
  2734. - Fixed bug in ClassDef format 1 subtable (Andreas Seidel bumped into
  2735. this one).
  2736. 2.0b1 (released 2002-09-10)
  2737. ---------------------------
  2738. - Fixed embarrassing bug: the master checksum in the head table is now
  2739. calculated correctly even on little-endian platforms (such as Intel).
  2740. - Made the cmap format 4 compiler smarter: the binary data it creates
  2741. is now more or less as compact as possible. TTX now makes more
  2742. compact data than in any shipping font I've tested it with.
  2743. - Dump glyph names as a separate "GlyphOrder" pseudo table as opposed
  2744. to as part of the glyf table (obviously needed for CFF-OTF's).
  2745. - Added proper support for the CFF table.
  2746. - Don't barf on empty tables (questionable, but "there are font out
  2747. there...")
  2748. - When writing TT glyf data, align glyphs on 4-byte boundaries. This
  2749. seems to be the current recommendation by MS. Also: don't barf on
  2750. fonts which are already 4-byte aligned.
  2751. - Windows installer contributed bu Adam Twardoch! Yay!
  2752. - Changed the command line interface again, now by creating one new
  2753. tool replacing the old ones: ttx It dumps and compiles, depending on
  2754. input file types. The options have changed somewhat.
  2755. - The -d option is back (output dir)
  2756. - ttcompile's -i options is now called -m (as in "merge"), to avoid
  2757. clash with dump's -i.
  2758. - The -s option ("split tables") no longer creates a directory, but
  2759. instead outputs a small .ttx file containing references to the
  2760. individual table files. This is not a true link, it's a simple file
  2761. name, and the referenced file should be in the same directory so
  2762. ttcompile can find them.
  2763. - compile no longer accepts a directory as input argument. Instead it
  2764. can parse the new "mini-ttx" format as output by "ttx -s".
  2765. - all arguments are input files
  2766. - Renamed the command line programs and moved them to the Tools
  2767. subdirectory. They are now installed by the setup.py install script.
  2768. - Added OpenType support. BASE, GDEF, GPOS, GSUB and JSTF are (almost)
  2769. fully supported. The XML output is not yet final, as I'm still
  2770. considering to output certain subtables in a more human-friendly
  2771. manner.
  2772. - Fixed 'kern' table to correctly accept subtables it doesn't know
  2773. about, as well as interpreting Apple's definition of the 'kern' table
  2774. headers correctly.
  2775. - Fixed bug where glyphnames were not calculated from 'cmap' if it was
  2776. (one of the) first tables to be decompiled. More specifically: it
  2777. cmap was the first to ask for a glyphID -> glyphName mapping.
  2778. - Switched XML parsers: use expat instead of xmlproc. Should be faster.
  2779. - Removed my UnicodeString object: I now require Python 2.0 or up,
  2780. which has unicode support built in.
  2781. - Removed assert in glyf table: redundant data at the end of the table
  2782. is now ignored instead of raising an error. Should become a warning.
  2783. - Fixed bug in hmtx/vmtx code that only occured if all advances were
  2784. equal.
  2785. - Fixed subtle bug in TT instruction disassembler.
  2786. - Couple of fixes to the 'post' table.
  2787. - Updated OS/2 table to latest spec.
  2788. 1.0b1 (released 2001-08-10)
  2789. ---------------------------
  2790. - Reorganized the command line interface for ttDump.py and
  2791. ttCompile.py, they now behave more like "normal" command line tool,
  2792. in that they accept multiple input files for batch processing.
  2793. - ttDump.py and ttCompile.py don't silently override files anymore, but
  2794. ask before doing so. Can be overridden by -f.
  2795. - Added -d option to both ttDump.py and ttCompile.py.
  2796. - Installation is now done with distutils. (Needs work for environments
  2797. without compilers.)
  2798. - Updated installation instructions.
  2799. - Added some workarounds so as to handle certain buggy fonts more
  2800. gracefully.
  2801. - Updated Unicode table to Unicode 3.0 (Thanks Antoine!)
  2802. - Included a Python script by Adam Twardoch that adds some useful stuff
  2803. to the Windows registry.
  2804. - Moved the project to SourceForge.
  2805. 1.0a6 (released 2000-03-15)
  2806. ---------------------------
  2807. - Big reorganization: made ttLib a subpackage of the new fontTools
  2808. package, changed several module names. Called the entire suite
  2809. "FontTools"
  2810. - Added several submodules to fontTools, some new, some older.
  2811. - Added experimental CFF/GPOS/GSUB support to ttLib, read-only (but XML
  2812. dumping of GPOS/GSUB is for now disabled)
  2813. - Fixed hdmx endian bug
  2814. - Added -b option to ttCompile.py, it disables recalculation of
  2815. bounding boxes, as requested by Werner Lemberg.
  2816. - Renamed tt2xml.pt to ttDump.py and xml2tt.py to ttCompile.py
  2817. - Use ".ttx" as file extension instead of ".xml".
  2818. - TTX is now the name of the XML-based *format* for TT fonts, and not
  2819. just an application.
  2820. 1.0a5
  2821. -----
  2822. Never released
  2823. - More tables supported: hdmx, vhea, vmtx
  2824. 1.0a3 & 1.0a4
  2825. -------------
  2826. Never released
  2827. - fixed most portability issues
  2828. - retracted the "Euro_or_currency" change from 1.0a2: it was
  2829. nonsense!
  2830. 1.0a2 (released 1999-05-02)
  2831. ---------------------------
  2832. - binary release for MacOS
  2833. - genenates full FOND resources: including width table, PS font name
  2834. info and kern table if applicable.
  2835. - added cmap format 4 support. Extra: dumps Unicode char names as XML
  2836. comments!
  2837. - added cmap format 6 support
  2838. - now accepts true type files starting with "true" (instead of just
  2839. 0x00010000 and "OTTO")
  2840. - 'glyf' table support is now complete: I added support for composite
  2841. scale, xy-scale and two-by-two for the 'glyf' table. For now,
  2842. component offset scale behaviour defaults to Apple-style. This only
  2843. affects the (re)calculation of the glyph bounding box.
  2844. - changed "Euro" to "Euro_or_currency" in the Standard Apple Glyph
  2845. order list, since we cannot tell from the 'post' table which is
  2846. meant. I should probably doublecheck with a Unicode encoding if
  2847. available. (This does not affect the output!)
  2848. Fixed bugs: - 'hhea' table is now recalculated correctly - fixed wrong
  2849. assumption about sfnt resource names
  2850. 1.0a1 (released 1999-04-27)
  2851. ---------------------------
  2852. - initial binary release for MacOS