fonttools 4.58.3__cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fonttools might be problematic. Click here for more details.

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