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