fonttools 4.55.6__cp311-cp311-musllinux_1_2_x86_64.whl

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

Potentially problematic release.


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

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