fontlab-fontlabapp 1.2.29__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1038) hide show
  1. fontlab_fontlabapp-1.2.29.dist-info/METADATA +855 -0
  2. fontlab_fontlabapp-1.2.29.dist-info/RECORD +1038 -0
  3. fontlab_fontlabapp-1.2.29.dist-info/WHEEL +4 -0
  4. fontlab_fontlabapp-1.2.29.dist-info/licenses/LICENSE +201 -0
  5. fontlab_fontlabapp-1.2.29.dist-info/licenses/NOTICE +2034 -0
  6. fontlab_fontlabapp-1.2.29.dist-info/licenses/examples/LICENSE-native-ui +12 -0
  7. fontlabapp/__init__.py +111 -0
  8. fontlabapp/_legacy.py +522 -0
  9. fontlabapp/anchors/__init__.py +10 -0
  10. fontlabapp/anchors/canvas_rings/__init__.py +2 -0
  11. fontlabapp/anchors/canvas_rings/model.py +189 -0
  12. fontlabapp/anchors/canvas_rings/ui.py +93 -0
  13. fontlabapp/anchors/coordinates/__init__.py +2 -0
  14. fontlabapp/anchors/coordinates/model.py +223 -0
  15. fontlabapp/anchors/coordinates/ui.py +567 -0
  16. fontlabapp/anchors/copy/__init__.py +2 -0
  17. fontlabapp/anchors/copy/model.py +203 -0
  18. fontlabapp/anchors/copy/ui.py +165 -0
  19. fontlabapp/anchors/crossfont/__init__.py +2 -0
  20. fontlabapp/anchors/crossfont/capture.py +227 -0
  21. fontlabapp/anchors/crossfont/controls.py +180 -0
  22. fontlabapp/anchors/crossfont/model.py +172 -0
  23. fontlabapp/anchors/crossfont/names.py +48 -0
  24. fontlabapp/anchors/crossfont/native.py +141 -0
  25. fontlabapp/anchors/crossfont/transaction.py +258 -0
  26. fontlabapp/anchors/crossfont/ui.py +202 -0
  27. fontlabapp/anchors/duplicates/__init__.py +2 -0
  28. fontlabapp/anchors/duplicates/capture.py +118 -0
  29. fontlabapp/anchors/duplicates/controls.py +176 -0
  30. fontlabapp/anchors/duplicates/model.py +120 -0
  31. fontlabapp/anchors/duplicates/native.py +169 -0
  32. fontlabapp/anchors/duplicates/ui.py +166 -0
  33. fontlabapp/anchors/edit.py +374 -0
  34. fontlabapp/anchors/inspect/__init__.py +2 -0
  35. fontlabapp/anchors/inspect/model.py +175 -0
  36. fontlabapp/anchors/inspect/ui.py +215 -0
  37. fontlabapp/anchors/inspect/views.py +178 -0
  38. fontlabapp/anchors/panel/__init__.py +2 -0
  39. fontlabapp/anchors/panel/model.py +99 -0
  40. fontlabapp/anchors/panel/ui.py +319 -0
  41. fontlabapp/anchors/writer.py +422 -0
  42. fontlabapp/components/__init__.py +10 -0
  43. fontlabapp/components/creation.py +348 -0
  44. fontlabapp/components/decompose.py +134 -0
  45. fontlabapp/components/graph/__init__.py +2 -0
  46. fontlabapp/components/graph/elastic/__init__.py +2 -0
  47. fontlabapp/components/graph/elastic/items.py +201 -0
  48. fontlabapp/components/graph/elastic/physics.py +187 -0
  49. fontlabapp/components/graph/elastic/ui.py +297 -0
  50. fontlabapp/components/graph/elastic/view.py +117 -0
  51. fontlabapp/components/graph/model.py +36 -0
  52. fontlabapp/components/graph/native.py +69 -0
  53. fontlabapp/components/inspect/__init__.py +2 -0
  54. fontlabapp/components/inspect/model.py +293 -0
  55. fontlabapp/components/inspect/ui.py +265 -0
  56. fontlabapp/components/inspect/views.py +143 -0
  57. fontlabapp/components/panel/__init__.py +2 -0
  58. fontlabapp/components/panel/model.py +71 -0
  59. fontlabapp/components/panel/ui.py +325 -0
  60. fontlabapp/components/recipes/__init__.py +2 -0
  61. fontlabapp/components/recipes/model.py +126 -0
  62. fontlabapp/components/recipes/ui.py +28 -0
  63. fontlabapp/components/writer.py +424 -0
  64. fontlabapp/contours/__init__.py +2 -0
  65. fontlabapp/contours/affine.py +145 -0
  66. fontlabapp/contours/angularizzle/__init__.py +2 -0
  67. fontlabapp/contours/angularizzle/_native_records.py +194 -0
  68. fontlabapp/contours/angularizzle/_native_write.py +226 -0
  69. fontlabapp/contours/angularizzle/_sampling.py +134 -0
  70. fontlabapp/contours/angularizzle/model.py +112 -0
  71. fontlabapp/contours/angularizzle/native.py +441 -0
  72. fontlabapp/contours/angularizzle/session.py +180 -0
  73. fontlabapp/contours/angularizzle/settings.py +87 -0
  74. fontlabapp/contours/angularizzle/ui.py +195 -0
  75. fontlabapp/contours/copy.py +174 -0
  76. fontlabapp/contours/dangerous_offcurves/__init__.py +2 -0
  77. fontlabapp/contours/dangerous_offcurves/model.py +200 -0
  78. fontlabapp/contours/dangerous_offcurves/native.py +187 -0
  79. fontlabapp/contours/dangerous_offcurves/ui.py +66 -0
  80. fontlabapp/contours/extent.py +168 -0
  81. fontlabapp/contours/near_miss/__init__.py +2 -0
  82. fontlabapp/contours/near_miss/model.py +224 -0
  83. fontlabapp/contours/near_miss/native.py +206 -0
  84. fontlabapp/contours/near_miss/ui.py +26 -0
  85. fontlabapp/contours/nodes/__init__.py +2 -0
  86. fontlabapp/contours/nodes/coordinates.py +71 -0
  87. fontlabapp/contours/nodes/duplicator/__init__.py +2 -0
  88. fontlabapp/contours/nodes/duplicator/_capture.py +298 -0
  89. fontlabapp/contours/nodes/duplicator/_finish.py +98 -0
  90. fontlabapp/contours/nodes/duplicator/_write.py +208 -0
  91. fontlabapp/contours/nodes/duplicator/model.py +240 -0
  92. fontlabapp/contours/nodes/duplicator/native.py +148 -0
  93. fontlabapp/contours/nodes/duplicator/ui.py +68 -0
  94. fontlabapp/contours/nodes_near_zones/__init__.py +2 -0
  95. fontlabapp/contours/nodes_near_zones/model.py +87 -0
  96. fontlabapp/contours/nodes_near_zones/native.py +36 -0
  97. fontlabapp/contours/open_contours/__init__.py +2 -0
  98. fontlabapp/contours/open_contours/model.py +60 -0
  99. fontlabapp/contours/open_contours/native.py +23 -0
  100. fontlabapp/contours/panel/__init__.py +2 -0
  101. fontlabapp/contours/panel/model.py +137 -0
  102. fontlabapp/contours/panel/ui.py +397 -0
  103. fontlabapp/contours/point_counts/__init__.py +2 -0
  104. fontlabapp/contours/point_counts/model.py +59 -0
  105. fontlabapp/contours/point_counts/native.py +144 -0
  106. fontlabapp/contours/point_counts/ui.py +28 -0
  107. fontlabapp/contours/raise_ascender/__init__.py +2 -0
  108. fontlabapp/contours/raise_ascender/_capture.py +128 -0
  109. fontlabapp/contours/raise_ascender/_geometry.py +160 -0
  110. fontlabapp/contours/raise_ascender/_write.py +110 -0
  111. fontlabapp/contours/raise_ascender/model.py +115 -0
  112. fontlabapp/contours/raise_ascender/native.py +201 -0
  113. fontlabapp/contours/raise_ascender/ui.py +152 -0
  114. fontlabapp/contours/reflect.py +79 -0
  115. fontlabapp/contours/selection/__init__.py +2 -0
  116. fontlabapp/contours/selection/model.py +133 -0
  117. fontlabapp/contours/selection/native.py +243 -0
  118. fontlabapp/contours/selection/panel/__init__.py +2 -0
  119. fontlabapp/contours/selection/panel/model.py +117 -0
  120. fontlabapp/contours/selection/panel/ui.py +358 -0
  121. fontlabapp/contours/selection/ui.py +92 -0
  122. fontlabapp/contours/svg_path/__init__.py +2 -0
  123. fontlabapp/contours/svg_path/model.py +46 -0
  124. fontlabapp/contours/svg_path/native.py +89 -0
  125. fontlabapp/contours/transform/__init__.py +2 -0
  126. fontlabapp/contours/transform/model.py +271 -0
  127. fontlabapp/contours/transform/ui.py +156 -0
  128. fontlabapp/contours/writer.py +254 -0
  129. fontlabapp/core/__init__.py +2 -0
  130. fontlabapp/core/application/__init__.py +46 -0
  131. fontlabapp/core/application/context.py +147 -0
  132. fontlabapp/core/application/paths.py +85 -0
  133. fontlabapp/core/application/preflib.py +93 -0
  134. fontlabapp/core/application/ui.py +694 -0
  135. fontlabapp/core/application/versions.py +81 -0
  136. fontlabapp/core/completion.py +99 -0
  137. fontlabapp/core/controls.py +183 -0
  138. fontlabapp/core/edit_guards.py +261 -0
  139. fontlabapp/core/history/__init__.py +2 -0
  140. fontlabapp/core/history/glyphs.py +434 -0
  141. fontlabapp/core/history/masters.py +302 -0
  142. fontlabapp/core/host.py +703 -0
  143. fontlabapp/core/hotkey/__init__.py +20 -0
  144. fontlabapp/core/hotkey/mac.py +170 -0
  145. fontlabapp/core/hotkey/manager.py +101 -0
  146. fontlabapp/core/hotkey/win.py +3 -0
  147. fontlabapp/core/legacy/__init__.py +2 -0
  148. fontlabapp/core/legacy/examples.py +167 -0
  149. fontlabapp/core/legacy/vanilla.py +24 -0
  150. fontlabapp/core/menu_names.py +87 -0
  151. fontlabapp/core/native_tabs.py +113 -0
  152. fontlabapp/core/outline.py +71 -0
  153. fontlabapp/core/scripting.py +1424 -0
  154. fontlabapp/core/sharing.py +107 -0
  155. fontlabapp/core/shimgen.py +359 -0
  156. fontlabapp/core/signals/__init__.py +2 -0
  157. fontlabapp/core/signals/callbacks.py +37 -0
  158. fontlabapp/core/signals/connections.py +46 -0
  159. fontlabapp/core/signals/deferred.py +46 -0
  160. fontlabapp/core/signals/scope.py +75 -0
  161. fontlabapp/core/utils/__init__.py +57 -0
  162. fontlabapp/core/utils/collections.py +290 -0
  163. fontlabapp/core/utils/json.py +70 -0
  164. fontlabapp/core/utils/merge.py +126 -0
  165. fontlabapp/core/utils/text.py +186 -0
  166. fontlabapp/features/__init__.py +2 -0
  167. fontlabapp/features/categories/__init__.py +2 -0
  168. fontlabapp/features/categories/model.py +107 -0
  169. fontlabapp/features/categories/ui.py +30 -0
  170. fontlabapp/features/classes/__init__.py +2 -0
  171. fontlabapp/features/classes/model.py +112 -0
  172. fontlabapp/features/classes/native.py +78 -0
  173. fontlabapp/features/classes/ui.py +87 -0
  174. fontlabapp/features/code.py +63 -0
  175. fontlabapp/features/editor/__init__.py +2 -0
  176. fontlabapp/features/editor/ui.py +84 -0
  177. fontlabapp/features/identity_tools/__init__.py +2 -0
  178. fontlabapp/features/identity_tools/feature_authoring/__init__.py +2 -0
  179. fontlabapp/features/identity_tools/feature_authoring/classes_browser.py +136 -0
  180. fontlabapp/features/identity_tools/feature_authoring/feature_code_viewer.py +176 -0
  181. fontlabapp/features/identity_tools/feature_authoring/random_alternates.py +403 -0
  182. fontlabapp/features/identity_tools/feature_authoring/suffix_substitution.py +233 -0
  183. fontlabapp/features/identity_tools/feature_explorer/__init__.py +2 -0
  184. fontlabapp/features/identity_tools/feature_explorer/alternate_preview.py +223 -0
  185. fontlabapp/features/identity_tools/feature_explorer/ligature_finder.py +161 -0
  186. fontlabapp/features/identity_tools/feature_explorer/suffix_report.py +194 -0
  187. fontlabapp/features/identity_tools/nastaliq_connections/__init__.py +2 -0
  188. fontlabapp/features/identity_tools/nastaliq_connections/editor.py +521 -0
  189. fontlabapp/features/identity_tools/table.py +40 -0
  190. fontlabapp/fonts/__init__.py +2 -0
  191. fontlabapp/fonts/identity_tools/__init__.py +2 -0
  192. fontlabapp/fonts/identity_tools/encoding_order/__init__.py +2 -0
  193. fontlabapp/fonts/identity_tools/encoding_order/order.py +567 -0
  194. fontlabapp/fonts/identity_tools/encoding_order/paste.py +264 -0
  195. fontlabapp/fonts/identity_tools/encoding_order/ranges.py +410 -0
  196. fontlabapp/fonts/identity_tools/font_identity/__init__.py +2 -0
  197. fontlabapp/fonts/identity_tools/font_identity/names.py +205 -0
  198. fontlabapp/fonts/identity_tools/font_identity/trial.py +456 -0
  199. fontlabapp/fonts/identity_tools/font_identity/version.py +205 -0
  200. fontlabapp/fonts/info/__init__.py +2 -0
  201. fontlabapp/fonts/info/ui.py +155 -0
  202. fontlabapp/fonts/revisions/__init__.py +2 -0
  203. fontlabapp/fonts/revisions/model.py +196 -0
  204. fontlabapp/fonts/revisions/ui.py +355 -0
  205. fontlabapp/fonts/style_names.py +129 -0
  206. fontlabapp/fontui/__init__.py +469 -0
  207. fontlabapp/fontui/_canvas_palette.py +70 -0
  208. fontlabapp/fontui/_font_reads.py +142 -0
  209. fontlabapp/fontui/_fontport.py +25 -0
  210. fontlabapp/fontui/anchor_components.py +240 -0
  211. fontlabapp/fontui/anchor_components_studio.py +131 -0
  212. fontlabapp/fontui/appshell.py +356 -0
  213. fontlabapp/fontui/batch.py +370 -0
  214. fontlabapp/fontui/batch_recipes.py +195 -0
  215. fontlabapp/fontui/batch_worker.py +497 -0
  216. fontlabapp/fontui/category_xml.py +45 -0
  217. fontlabapp/fontui/contour_selection.py +151 -0
  218. fontlabapp/fontui/core_pythonqt_labs/__init__.py +10 -0
  219. fontlabapp/fontui/core_pythonqt_labs/app.py +143 -0
  220. fontlabapp/fontui/core_pythonqt_labs/closing.py +45 -0
  221. fontlabapp/fontui/core_pythonqt_labs/profiles/apply_unicode_map.py +297 -0
  222. fontlabapp/fontui/core_pythonqt_labs/profiles/calendar_proof.py +319 -0
  223. fontlabapp/fontui/core_pythonqt_labs/profiles/deferred_glyph_report.py +306 -0
  224. fontlabapp/fontui/core_pythonqt_labs/profiles/draggable_glyph_names.py +279 -0
  225. fontlabapp/fontui/core_pythonqt_labs/profiles/e01_e03.py +88 -0
  226. fontlabapp/fontui/core_pythonqt_labs/profiles/e01_e03_actions.py +88 -0
  227. fontlabapp/fontui/core_pythonqt_labs/profiles/e04_e06.py +95 -0
  228. fontlabapp/fontui/core_pythonqt_labs/profiles/e07_e09.py +52 -0
  229. fontlabapp/fontui/core_pythonqt_labs/profiles/e07_e09_actions.py +86 -0
  230. fontlabapp/fontui/core_pythonqt_labs/profiles/expandable_search.py +161 -0
  231. fontlabapp/fontui/core_pythonqt_labs/profiles/font_drop_inspector.py +329 -0
  232. fontlabapp/fontui/core_pythonqt_labs/profiles/font_file_drop_shelf.py +339 -0
  233. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_batch_recipe_settings.py +163 -0
  234. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_coverage_grid.py +288 -0
  235. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_encoding_chart.py +261 -0
  236. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_mark_colour_board.py +433 -0
  237. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_mark_colours.py +453 -0
  238. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_pair_board.py +338 -0
  239. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_proof_batch_wizard.py +193 -0
  240. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_proof_groups.py +171 -0
  241. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_proof_layout.py +365 -0
  242. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_proof_pad.py +297 -0
  243. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_proof_worksheet.py +373 -0
  244. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_review_cards.py +299 -0
  245. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_review_form.py +473 -0
  246. fontlabapp/fontui/core_pythonqt_labs/profiles/glyph_review_priorities.py +487 -0
  247. fontlabapp/fontui/core_pythonqt_labs/profiles/lesson_lists.py +64 -0
  248. fontlabapp/fontui/core_pythonqt_labs/profiles/pair_proof_generator.py +225 -0
  249. fontlabapp/fontui/core_pythonqt_labs/profiles/proof_text_coverage_dialog.py +158 -0
  250. fontlabapp/fontui/core_pythonqt_labs/profiles/proof_word_magnets.py +347 -0
  251. fontlabapp/fontui/core_pythonqt_labs/profiles/saved_proof_sample.py +222 -0
  252. fontlabapp/fontui/core_pythonqt_labs/profiles/table_sorting.py +51 -0
  253. fontlabapp/fontui/core_pythonqt_labs/profiles/unicode_issues_dock.py +395 -0
  254. fontlabapp/fontui/core_pythonqt_labs/profiles/units_calculator.py +158 -0
  255. fontlabapp/fontui/designspace.py +161 -0
  256. fontlabapp/fontui/designspace_sources.py +196 -0
  257. fontlabapp/fontui/detached_transform.py +463 -0
  258. fontlabapp/fontui/feature_blocks.py +106 -0
  259. fontlabapp/fontui/feature_proof.py +227 -0
  260. fontlabapp/fontui/feature_source.py +542 -0
  261. fontlabapp/fontui/features.py +246 -0
  262. fontlabapp/fontui/features_state.py +94 -0
  263. fontlabapp/fontui/features_view.py +53 -0
  264. fontlabapp/fontui/font_info_metrics.py +88 -0
  265. fontlabapp/fontui/font_revision_comparison.py +53 -0
  266. fontlabapp/fontui/fontinfo.py +295 -0
  267. fontlabapp/fontui/fonts.py +70 -0
  268. fontlabapp/fontui/geometry_audit.py +58 -0
  269. fontlabapp/fontui/getgo_labs.py +183 -0
  270. fontlabapp/fontui/glyph_metrics.py +257 -0
  271. fontlabapp/fontui/glyph_row_table.py +87 -0
  272. fontlabapp/fontui/groups.py +216 -0
  273. fontlabapp/fontui/groups_view.py +64 -0
  274. fontlabapp/fontui/hint_autohint.py +149 -0
  275. fontlabapp/fontui/hint_removal.py +154 -0
  276. fontlabapp/fontui/hint_tools.py +120 -0
  277. fontlabapp/fontui/hinting.py +158 -0
  278. fontlabapp/fontui/identity_tools.py +273 -0
  279. fontlabapp/fontui/interpolation_preview.py +189 -0
  280. fontlabapp/fontui/kerning.py +315 -0
  281. fontlabapp/fontui/kerning_groups.py +255 -0
  282. fontlabapp/fontui/kerning_proof.py +154 -0
  283. fontlabapp/fontui/kerning_view.py +56 -0
  284. fontlabapp/fontui/lifecycle.py +266 -0
  285. fontlabapp/fontui/livesync.py +43 -0
  286. fontlabapp/fontui/master_compatibility.py +139 -0
  287. fontlabapp/fontui/master_structure_audit.py +41 -0
  288. fontlabapp/fontui/master_width_comparison.py +282 -0
  289. fontlabapp/fontui/metric_reports.py +36 -0
  290. fontlabapp/fontui/model.py +165 -0
  291. fontlabapp/fontui/native.py +318 -0
  292. fontlabapp/fontui/node_counts_masters.py +209 -0
  293. fontlabapp/fontui/node_editor/__init__.py +9 -0
  294. fontlabapp/fontui/node_editor/coordinates.py +219 -0
  295. fontlabapp/fontui/node_editor/duplicate.py +278 -0
  296. fontlabapp/fontui/node_editor/preview.py +47 -0
  297. fontlabapp/fontui/node_editor/session.py +116 -0
  298. fontlabapp/fontui/node_editor/ui.py +252 -0
  299. fontlabapp/fontui/nodes_near_zones.py +70 -0
  300. fontlabapp/fontui/open_contours.py +55 -0
  301. fontlabapp/fontui/open_fonts_overview.py +140 -0
  302. fontlabapp/fontui/outline_compatibility.py +185 -0
  303. fontlabapp/fontui/outline_compatibility_routes/__init__.py +3 -0
  304. fontlabapp/fontui/outline_compatibility_routes/compatible.py +173 -0
  305. fontlabapp/fontui/outline_compatibility_routes/order.py +129 -0
  306. fontlabapp/fontui/outline_compatibility_routes/statistics.py +175 -0
  307. fontlabapp/fontui/outline_editing.py +245 -0
  308. fontlabapp/fontui/outline_generators.py +45 -0
  309. fontlabapp/fontui/outline_order.py +233 -0
  310. fontlabapp/fontui/outline_routes/__init__.py +3 -0
  311. fontlabapp/fontui/outline_routes/add_extremes.py +231 -0
  312. fontlabapp/fontui/outline_routes/align_and_distribute.py +455 -0
  313. fontlabapp/fontui/outline_routes/correct_contour_direction.py +108 -0
  314. fontlabapp/fontui/outline_routes/curve_all_straights.py +186 -0
  315. fontlabapp/fontui/outline_routes/delete_close_points.py +165 -0
  316. fontlabapp/fontui/outline_routes/delete_duplicate_contours.py +192 -0
  317. fontlabapp/fontui/outline_routes/delete_small_contours.py +189 -0
  318. fontlabapp/fontui/outline_routes/fix_zero_handles.py +224 -0
  319. fontlabapp/fontui/outline_routes/interpolated_nudge.py +173 -0
  320. fontlabapp/fontui/outline_routes/optimize_start_points.py +136 -0
  321. fontlabapp/fontui/outline_routes/overlap_nodes.py +249 -0
  322. fontlabapp/fontui/outline_routes/raise_ascender.py +41 -0
  323. fontlabapp/fontui/outline_routes/reflect_horizontally.py +266 -0
  324. fontlabapp/fontui/outline_routes/reflect_vertically.py +266 -0
  325. fontlabapp/fontui/outline_routes/remove_overlap.py +235 -0
  326. fontlabapp/fontui/outline_routes/retract_handles.py +164 -0
  327. fontlabapp/fontui/outline_routes/rotate_selection.py +284 -0
  328. fontlabapp/fontui/outline_routes/round_coordinates.py +243 -0
  329. fontlabapp/fontui/outline_routes/simplify_selected_nodes.py +70 -0
  330. fontlabapp/fontui/outline_routes/slant.py +155 -0
  331. fontlabapp/fontui/outline_routes/smart_slant.py +244 -0
  332. fontlabapp/fontui/outline_routes/straighten_all_curves.py +182 -0
  333. fontlabapp/fontui/outline_routes/straighten_short_curves.py +192 -0
  334. fontlabapp/fontui/outline_routes/transform.py +184 -0
  335. fontlabapp/fontui/outline_simplify.py +89 -0
  336. fontlabapp/fontui/outline_studios.py +194 -0
  337. fontlabapp/fontui/preview.py +187 -0
  338. fontlabapp/fontui/raise_ascender.py +110 -0
  339. fontlabapp/fontui/reference_images.py +91 -0
  340. fontlabapp/fontui/representation_notifications.py +152 -0
  341. fontlabapp/fontui/sequence.py +300 -0
  342. fontlabapp/fontui/sequence_canvas.py +149 -0
  343. fontlabapp/fontui/shaping.py +410 -0
  344. fontlabapp/fontui/snapshot_audit.py +101 -0
  345. fontlabapp/fontui/source_comparison.py +146 -0
  346. fontlabapp/fontui/superaligner.py +214 -0
  347. fontlabapp/fontui/table.py +126 -0
  348. fontlabapp/fontui/tabular_audit.py +198 -0
  349. fontlabapp/fontui/teaching/__init__.py +3 -0
  350. fontlabapp/fontui/teaching/files.py +88 -0
  351. fontlabapp/fontui/teaching/host.py +129 -0
  352. fontlabapp/fontui/teaching_graph/__init__.py +45 -0
  353. fontlabapp/fontui/teaching_graph/feature_graph.py +278 -0
  354. fontlabapp/fontui/teaching_painter/__init__.py +62 -0
  355. fontlabapp/fontui/teaching_painter/outline_svg.py +420 -0
  356. fontlabapp/fontui/teaching_painter/polygon.py +400 -0
  357. fontlabapp/fontui/teaching_painter/sketch.py +351 -0
  358. fontlabapp/fontui/teaching_painter/svg_reference.py +386 -0
  359. fontlabapp/fontui/teaching_text/__init__.py +59 -0
  360. fontlabapp/fontui/teaching_text/console.py +282 -0
  361. fontlabapp/fontui/teaching_text/diff.py +353 -0
  362. fontlabapp/fontui/teaching_text/feature.py +350 -0
  363. fontlabapp/fontui/teaching_text/handoff.py +341 -0
  364. fontlabapp/fontui/teaching_text/icons.py +150 -0
  365. fontlabapp/fontui/teaching_text/inventory.py +144 -0
  366. fontlabapp/fontui/teaching_text/notebook.py +485 -0
  367. fontlabapp/fontui/teaching_text/palette.py +247 -0
  368. fontlabapp/fontui/teaching_text/paths.py +389 -0
  369. fontlabapp/fontui/teaching_text/review.py +307 -0
  370. fontlabapp/fontui/teaching_text/scaffold.py +145 -0
  371. fontlabapp/fontui/teaching_text/slots.py +220 -0
  372. fontlabapp/fontui/teaching_text/tags.py +271 -0
  373. fontlabapp/fontui/teaching_text/xml.py +263 -0
  374. fontlabapp/fontui/teaching_writers/__init__.py +3 -0
  375. fontlabapp/fontui/teaching_writers/app.py +126 -0
  376. fontlabapp/fontui/teaching_writers/copy_layers_from_font.py +646 -0
  377. fontlabapp/fontui/teaching_writers/font_info_snapshot.py +339 -0
  378. fontlabapp/fontui/teaching_writers/font_name_encoding_audit.py +287 -0
  379. fontlabapp/fontui/teaching_writers/import_kerning_pair_list.py +316 -0
  380. fontlabapp/fontui/teaching_writers/kerning_copy_rules.py +255 -0
  381. fontlabapp/fontui/teaching_writers/layer_metric_comparison.py +277 -0
  382. fontlabapp/fontui/teaching_writers/localized_font_names.py +326 -0
  383. fontlabapp/fontui/teaching_writers/node_slope_and_handles.py +543 -0
  384. fontlabapp/fontui/teaching_writers/node_table.py +615 -0
  385. fontlabapp/fontui/teaching_writers/scale_with_stem_compensation.py +576 -0
  386. fontlabapp/fontui/teaching_writers/stem_blend.py +636 -0
  387. fontlabapp/fontui/tglyph.py +910 -0
  388. fontlabapp/fontui/tglyph_edit.py +430 -0
  389. fontlabapp/fontui/tglyph_model.py +518 -0
  390. fontlabapp/fontui/tmetrics.py +903 -0
  391. fontlabapp/fontui/tmetrics_model.py +640 -0
  392. fontlabapp/fontui/transform.py +248 -0
  393. fontlabapp/fontui/transform_view.py +156 -0
  394. fontlabapp/fontui/twindow_host.py +145 -0
  395. fontlabapp/fontui/ufo_roundtrip.py +31 -0
  396. fontlabapp/fontui/ufo_roundtrip_editor.py +194 -0
  397. fontlabapp/fontui/unicode_order.py +293 -0
  398. fontlabapp/fontui/wrap.py +31 -0
  399. fontlabapp/glyphs/__init__.py +2 -0
  400. fontlabapp/glyphs/background.py +38 -0
  401. fontlabapp/glyphs/calendar/__init__.py +2 -0
  402. fontlabapp/glyphs/calendar/model.py +85 -0
  403. fontlabapp/glyphs/calendar/ui.py +148 -0
  404. fontlabapp/glyphs/case_coverage/__init__.py +2 -0
  405. fontlabapp/glyphs/case_coverage/capture.py +172 -0
  406. fontlabapp/glyphs/case_coverage/cleanup.py +113 -0
  407. fontlabapp/glyphs/case_coverage/controller.py +126 -0
  408. fontlabapp/glyphs/case_coverage/model.py +228 -0
  409. fontlabapp/glyphs/case_coverage/proof.py +230 -0
  410. fontlabapp/glyphs/case_coverage/settings.py +46 -0
  411. fontlabapp/glyphs/case_coverage/targets.py +95 -0
  412. fontlabapp/glyphs/case_coverage/ui.py +269 -0
  413. fontlabapp/glyphs/case_coverage/views.py +136 -0
  414. fontlabapp/glyphs/catalog/__init__.py +2 -0
  415. fontlabapp/glyphs/catalog/model.py +90 -0
  416. fontlabapp/glyphs/catalog/native.py +112 -0
  417. fontlabapp/glyphs/character_map/__init__.py +2 -0
  418. fontlabapp/glyphs/character_map/capture.py +50 -0
  419. fontlabapp/glyphs/character_map/controls.py +112 -0
  420. fontlabapp/glyphs/character_map/fonts.py +166 -0
  421. fontlabapp/glyphs/character_map/grid.py +106 -0
  422. fontlabapp/glyphs/character_map/model.py +96 -0
  423. fontlabapp/glyphs/character_map/paint.py +82 -0
  424. fontlabapp/glyphs/character_map/ui.py +144 -0
  425. fontlabapp/glyphs/common/__init__.py +2 -0
  426. fontlabapp/glyphs/common/capture.py +87 -0
  427. fontlabapp/glyphs/common/controller.py +69 -0
  428. fontlabapp/glyphs/common/lifetime.py +97 -0
  429. fontlabapp/glyphs/common/mime.py +94 -0
  430. fontlabapp/glyphs/common/model.py +218 -0
  431. fontlabapp/glyphs/common/ui.py +272 -0
  432. fontlabapp/glyphs/completion/__init__.py +2 -0
  433. fontlabapp/glyphs/completion/controls.py +57 -0
  434. fontlabapp/glyphs/completion/model.py +57 -0
  435. fontlabapp/glyphs/completion/ui.py +186 -0
  436. fontlabapp/glyphs/copies.py +232 -0
  437. fontlabapp/glyphs/creation.py +505 -0
  438. fontlabapp/glyphs/identity.py +74 -0
  439. fontlabapp/glyphs/identity_tools/__init__.py +2 -0
  440. fontlabapp/glyphs/identity_tools/character_consistency/__init__.py +2 -0
  441. fontlabapp/glyphs/identity_tools/character_consistency/case_pairs.py +202 -0
  442. fontlabapp/glyphs/identity_tools/character_consistency/character_set_compare.py +232 -0
  443. fontlabapp/glyphs/identity_tools/character_consistency/style_linker.py +263 -0
  444. fontlabapp/glyphs/identity_tools/glyph_browser/__init__.py +2 -0
  445. fontlabapp/glyphs/identity_tools/glyph_browser/character_info.py +373 -0
  446. fontlabapp/glyphs/identity_tools/glyph_browser/glyph_finder.py +215 -0
  447. fontlabapp/glyphs/identity_tools/glyph_browser/glyph_metadata_tree.py +38 -0
  448. fontlabapp/glyphs/identity_tools/glyph_browser/glyph_name_completion.py +37 -0
  449. fontlabapp/glyphs/identity_tools/glyph_browser/panels.py +22 -0
  450. fontlabapp/glyphs/identity_tools/glyph_identity/__init__.py +2 -0
  451. fontlabapp/glyphs/identity_tools/glyph_identity/batch_rename.py +310 -0
  452. fontlabapp/glyphs/identity_tools/glyph_identity/duplicate_unicodes.py +29 -0
  453. fontlabapp/glyphs/identity_tools/glyph_identity/suffix_tool.py +431 -0
  454. fontlabapp/glyphs/identity_tools/glyph_identity/unicode_from_names.py +424 -0
  455. fontlabapp/glyphs/identity_tools/glyph_labels/__init__.py +2 -0
  456. fontlabapp/glyphs/identity_tools/glyph_labels/batch_glyph_notes.py +266 -0
  457. fontlabapp/glyphs/identity_tools/glyph_labels/controls.py +60 -0
  458. fontlabapp/glyphs/identity_tools/glyph_labels/different_colours.py +44 -0
  459. fontlabapp/glyphs/identity_tools/glyph_labels/glyph_notes.py +289 -0
  460. fontlabapp/glyphs/identity_tools/glyph_labels/glyph_tags.py +331 -0
  461. fontlabapp/glyphs/identity_tools/glyph_labels/mark_color_palette.py +333 -0
  462. fontlabapp/glyphs/identity_tools/glyph_labels/select_by_mark.py +244 -0
  463. fontlabapp/glyphs/identity_tools/glyph_labels/select_different_mark_colours.py +26 -0
  464. fontlabapp/glyphs/names/__init__.py +2 -0
  465. fontlabapp/glyphs/names/model.py +207 -0
  466. fontlabapp/glyphs/names/ui.py +161 -0
  467. fontlabapp/glyphs/others.py +27 -0
  468. fontlabapp/glyphs/pattern.py +30 -0
  469. fontlabapp/glyphs/selection/__init__.py +2 -0
  470. fontlabapp/glyphs/selection/_mark_colors_native.py +99 -0
  471. fontlabapp/glyphs/selection/mark_colors.py +46 -0
  472. fontlabapp/glyphs/smallcaps/__init__.py +2 -0
  473. fontlabapp/glyphs/smallcaps/capture.py +138 -0
  474. fontlabapp/glyphs/smallcaps/model.py +179 -0
  475. fontlabapp/glyphs/tree/__init__.py +2 -0
  476. fontlabapp/glyphs/tree/editable/__init__.py +2 -0
  477. fontlabapp/glyphs/tree/editable/model.py +33 -0
  478. fontlabapp/glyphs/tree/editable/ui.py +176 -0
  479. fontlabapp/glyphs/tree/model.py +64 -0
  480. fontlabapp/glyphs/tree/ui.py +167 -0
  481. fontlabapp/glyphs/unicode/__init__.py +2 -0
  482. fontlabapp/glyphs/unicode/duplicates/__init__.py +2 -0
  483. fontlabapp/glyphs/unicode/duplicates/capture.py +81 -0
  484. fontlabapp/glyphs/unicode/duplicates/model.py +106 -0
  485. fontlabapp/glyphs/unicode/duplicates/native.py +152 -0
  486. fontlabapp/glyphs/unicode/duplicates/tree.py +64 -0
  487. fontlabapp/glyphs/unicode/duplicates/ui.py +198 -0
  488. fontlabapp/glyphs/unreferenced.py +126 -0
  489. fontlabapp/guides/__init__.py +10 -0
  490. fontlabapp/guides/inspect/__init__.py +2 -0
  491. fontlabapp/guides/inspect/model.py +211 -0
  492. fontlabapp/guides/inspect/sources.py +102 -0
  493. fontlabapp/guides/inspect/ui.py +125 -0
  494. fontlabapp/guides/inspect/views.py +88 -0
  495. fontlabapp/guides/perpendicular/__init__.py +2 -0
  496. fontlabapp/guides/perpendicular/model.py +54 -0
  497. fontlabapp/guides/perpendicular/native.py +209 -0
  498. fontlabapp/guides/perpendicular/selection.py +83 -0
  499. fontlabapp/guides/records.py +70 -0
  500. fontlabapp/guides/rewrite/__init__.py +2 -0
  501. fontlabapp/guides/rewrite/editor_ui.py +73 -0
  502. fontlabapp/guides/rewrite/model.py +140 -0
  503. fontlabapp/guides/rewrite/ui.py +97 -0
  504. fontlabapp/hints/__init__.py +10 -0
  505. fontlabapp/hints/postscript.py +45 -0
  506. fontlabapp/kerning/__init__.py +2 -0
  507. fontlabapp/kerning/batch.py +286 -0
  508. fontlabapp/kerning/cutoff.py +83 -0
  509. fontlabapp/kerning/edit/__init__.py +2 -0
  510. fontlabapp/kerning/edit/model.py +283 -0
  511. fontlabapp/kerning/edit/ui.py +177 -0
  512. fontlabapp/kerning/edit/values_ui.py +73 -0
  513. fontlabapp/kerning/group_proof/__init__.py +2 -0
  514. fontlabapp/kerning/group_proof/model.py +103 -0
  515. fontlabapp/kerning/group_proof/native.py +163 -0
  516. fontlabapp/kerning/group_proof/selection.py +100 -0
  517. fontlabapp/kerning/groups.py +44 -0
  518. fontlabapp/kerning/identity.py +65 -0
  519. fontlabapp/kerning/inspect/__init__.py +2 -0
  520. fontlabapp/kerning/inspect/ui.py +86 -0
  521. fontlabapp/kerning/kerning_proof_texts.json +15 -0
  522. fontlabapp/kerning/persistence/__init__.py +2 -0
  523. fontlabapp/kerning/persistence/model.py +137 -0
  524. fontlabapp/kerning/persistence/ui.py +189 -0
  525. fontlabapp/kerning/proofs.py +63 -0
  526. fontlabapp/kerning/selection.py +149 -0
  527. fontlabapp/kerning/symmetry/__init__.py +2 -0
  528. fontlabapp/kerning/symmetry/model.py +183 -0
  529. fontlabapp/kerning/symmetry/native.py +172 -0
  530. fontlabapp/masters/__init__.py +10 -0
  531. fontlabapp/masters/angles/__init__.py +2 -0
  532. fontlabapp/masters/angles/model.py +172 -0
  533. fontlabapp/masters/angles/ui.py +157 -0
  534. fontlabapp/masters/angles/views.py +75 -0
  535. fontlabapp/masters/background/__init__.py +2 -0
  536. fontlabapp/masters/background/capture.py +151 -0
  537. fontlabapp/masters/background/clear/__init__.py +2 -0
  538. fontlabapp/masters/background/clear/capture.py +97 -0
  539. fontlabapp/masters/background/clear/controls.py +70 -0
  540. fontlabapp/masters/background/clear/model.py +153 -0
  541. fontlabapp/masters/background/clear/native.py +203 -0
  542. fontlabapp/masters/background/clear/ui.py +159 -0
  543. fontlabapp/masters/background/model.py +86 -0
  544. fontlabapp/masters/background/native.py +138 -0
  545. fontlabapp/masters/background/records.py +128 -0
  546. fontlabapp/masters/background/selection.py +66 -0
  547. fontlabapp/masters/background/stage.py +97 -0
  548. fontlabapp/masters/background/transaction.py +144 -0
  549. fontlabapp/masters/background/ui.py +72 -0
  550. fontlabapp/masters/inspect/__init__.py +2 -0
  551. fontlabapp/masters/inspect/model.py +405 -0
  552. fontlabapp/masters/inspect/ui.py +349 -0
  553. fontlabapp/masters/inspect/views.py +237 -0
  554. fontlabapp/masters/interpolation/__init__.py +2 -0
  555. fontlabapp/masters/interpolation/model.py +108 -0
  556. fontlabapp/masters/interpolation/outlines.py +52 -0
  557. fontlabapp/masters/interpolation/view.py +69 -0
  558. fontlabapp/masters/layers/__init__.py +2 -0
  559. fontlabapp/masters/layers/brackets/__init__.py +2 -0
  560. fontlabapp/masters/layers/brackets/_snapshot.py +163 -0
  561. fontlabapp/masters/layers/brackets/model.py +110 -0
  562. fontlabapp/masters/layers/brackets/native.py +64 -0
  563. fontlabapp/masters/layers/brackets/ui.py +30 -0
  564. fontlabapp/masters/layers/compatibility/__init__.py +2 -0
  565. fontlabapp/masters/layers/compatibility/_records.py +90 -0
  566. fontlabapp/masters/layers/compatibility/model.py +107 -0
  567. fontlabapp/masters/layers/compatibility/native.py +116 -0
  568. fontlabapp/masters/layers/compatibility/ui.py +28 -0
  569. fontlabapp/masters/layers/extrema/__init__.py +2 -0
  570. fontlabapp/masters/layers/extrema/model.py +67 -0
  571. fontlabapp/masters/layers/extrema/native.py +173 -0
  572. fontlabapp/masters/layers/navigation/__init__.py +2 -0
  573. fontlabapp/masters/layers/navigation/context.py +67 -0
  574. fontlabapp/masters/layers/navigation/data.py +54 -0
  575. fontlabapp/masters/layers/navigation/model.py +80 -0
  576. fontlabapp/masters/layers/navigation/native.py +190 -0
  577. fontlabapp/masters/layers/navigation/symbols.py +55 -0
  578. fontlabapp/masters/layers/selection.py +182 -0
  579. fontlabapp/masters/layers/show_all/__init__.py +2 -0
  580. fontlabapp/masters/layers/show_all/model.py +31 -0
  581. fontlabapp/masters/layers/show_all/native.py +129 -0
  582. fontlabapp/masters/layers/writer.py +225 -0
  583. fontlabapp/masters/node_report/__init__.py +2 -0
  584. fontlabapp/masters/node_report/model.py +103 -0
  585. fontlabapp/masters/node_report/native.py +127 -0
  586. fontlabapp/masters/point_counts/__init__.py +2 -0
  587. fontlabapp/masters/point_counts/model.py +34 -0
  588. fontlabapp/masters/point_counts/native.py +72 -0
  589. fontlabapp/masters/point_counts/ui.py +76 -0
  590. fontlabapp/masters/switcher/__init__.py +2 -0
  591. fontlabapp/masters/switcher/model.py +46 -0
  592. fontlabapp/masters/switcher/ui.py +58 -0
  593. fontlabapp/masters/text/__init__.py +2 -0
  594. fontlabapp/masters/text/capture.py +114 -0
  595. fontlabapp/masters/text/controller.py +43 -0
  596. fontlabapp/masters/text/model.py +199 -0
  597. fontlabapp/masters/text/owners.py +99 -0
  598. fontlabapp/masters/text/proof.py +241 -0
  599. fontlabapp/masters/text/sender.py +96 -0
  600. fontlabapp/masters/text/settings.py +151 -0
  601. fontlabapp/masters/text/ui.py +450 -0
  602. fontlabapp/menus/__init__.py +40 -0
  603. fontlabapp/metrics/__init__.py +2 -0
  604. fontlabapp/metrics/canvas_rsb/__init__.py +2 -0
  605. fontlabapp/metrics/canvas_rsb/model.py +189 -0
  606. fontlabapp/metrics/canvas_rsb/ui.py +191 -0
  607. fontlabapp/metrics/master_writer.py +134 -0
  608. fontlabapp/metrics/offset/__init__.py +2 -0
  609. fontlabapp/metrics/offset/capture.py +76 -0
  610. fontlabapp/metrics/offset/controls.py +93 -0
  611. fontlabapp/metrics/offset/model.py +78 -0
  612. fontlabapp/metrics/offset/ui.py +133 -0
  613. fontlabapp/metrics/panel/__init__.py +2 -0
  614. fontlabapp/metrics/panel/model.py +416 -0
  615. fontlabapp/metrics/panel/ui.py +384 -0
  616. fontlabapp/metrics/tabular_width/__init__.py +2 -0
  617. fontlabapp/metrics/tabular_width/model.py +146 -0
  618. fontlabapp/metrics/tabular_width/ui.py +28 -0
  619. fontlabapp/metrics/vertical/__init__.py +2 -0
  620. fontlabapp/metrics/vertical/model.py +77 -0
  621. fontlabapp/metrics/vertical/native.py +143 -0
  622. fontlabapp/metrics/vertical/ui.py +28 -0
  623. fontlabapp/metrics/worksheet/__init__.py +2 -0
  624. fontlabapp/metrics/worksheet/capture.py +57 -0
  625. fontlabapp/metrics/worksheet/controls.py +84 -0
  626. fontlabapp/metrics/worksheet/data.py +88 -0
  627. fontlabapp/metrics/worksheet/model.py +39 -0
  628. fontlabapp/metrics/worksheet/ui.py +195 -0
  629. fontlabapp/metrics/zones/__init__.py +2 -0
  630. fontlabapp/metrics/zones/capture.py +146 -0
  631. fontlabapp/metrics/zones/capture_codec.py +38 -0
  632. fontlabapp/metrics/zones/capture_data.py +30 -0
  633. fontlabapp/metrics/zones/controls.py +158 -0
  634. fontlabapp/metrics/zones/data.py +72 -0
  635. fontlabapp/metrics/zones/editor.py +73 -0
  636. fontlabapp/metrics/zones/guide_prepare.py +109 -0
  637. fontlabapp/metrics/zones/model.py +189 -0
  638. fontlabapp/metrics/zones/native.py +380 -0
  639. fontlabapp/metrics/zones/native_rules.py +27 -0
  640. fontlabapp/metrics/zones/prepare.py +157 -0
  641. fontlabapp/metrics/zones/prepared.py +31 -0
  642. fontlabapp/metrics/zones/rows.py +186 -0
  643. fontlabapp/metrics/zones/ui.py +231 -0
  644. fontlabapp/metrics/zones/write_plan.py +181 -0
  645. fontlabapp/objects/__init__.py +44 -0
  646. fontlabapp/objects/json_data.py +845 -0
  647. fontlabapp/plugins/__init__.py +42 -0
  648. fontlabapp/plugins/backend.py +611 -0
  649. fontlabapp/plugins/boot.py +173 -0
  650. fontlabapp/plugins/bundles.py +122 -0
  651. fontlabapp/plugins/filter.py +83 -0
  652. fontlabapp/plugins/filters/__init__.py +4 -0
  653. fontlabapp/plugins/filters/apply.py +447 -0
  654. fontlabapp/plugins/filters/dialog.py +119 -0
  655. fontlabapp/plugins/filters/host.py +122 -0
  656. fontlabapp/plugins/general.py +144 -0
  657. fontlabapp/plugins/general_plugins/__init__.py +4 -0
  658. fontlabapp/plugins/general_plugins/host.py +137 -0
  659. fontlabapp/plugins/geometry.py +100 -0
  660. fontlabapp/plugins/kinds.py +33 -0
  661. fontlabapp/plugins/menu.py +73 -0
  662. fontlabapp/plugins/palette.py +24 -0
  663. fontlabapp/plugins/palettes/__init__.py +4 -0
  664. fontlabapp/plugins/palettes/apply.py +159 -0
  665. fontlabapp/plugins/palettes/host.py +372 -0
  666. fontlabapp/plugins/palettes/ui.py +86 -0
  667. fontlabapp/plugins/plugin.py +14 -0
  668. fontlabapp/plugins/plugins/__init__.py +2 -0
  669. fontlabapp/plugins/registry.py +447 -0
  670. fontlabapp/plugins/reporter.py +230 -0
  671. fontlabapp/plugins/reporters_panel.py +189 -0
  672. fontlabapp/plugins/snapshot.py +731 -0
  673. fontlabapp/plugins/startup.py +75 -0
  674. fontlabapp/plugins/tool.py +108 -0
  675. fontlabapp/plugins/tools/__init__.py +4 -0
  676. fontlabapp/plugins/tools/bridge.py +178 -0
  677. fontlabapp/plugins/tools/host.py +145 -0
  678. fontlabapp/plugmix/__init__.py +64 -0
  679. fontlabapp/proof/__init__.py +10 -0
  680. fontlabapp/proof/context.py +101 -0
  681. fontlabapp/proof/crossfont/__init__.py +2 -0
  682. fontlabapp/proof/crossfont/model.py +88 -0
  683. fontlabapp/proof/crossfont/native.py +86 -0
  684. fontlabapp/proof/crossfont/ui.py +113 -0
  685. fontlabapp/proof/extrema/__init__.py +2 -0
  686. fontlabapp/proof/extrema/model.py +56 -0
  687. fontlabapp/proof/extrema/ui.py +36 -0
  688. fontlabapp/proof/inspect/__init__.py +2 -0
  689. fontlabapp/proof/inspect/model.py +176 -0
  690. fontlabapp/proof/inspect/ui.py +176 -0
  691. fontlabapp/proof/inspect/views.py +288 -0
  692. fontlabapp/proof/inspectors/__init__.py +2 -0
  693. fontlabapp/proof/inspectors/model.py +165 -0
  694. fontlabapp/proof/inspectors/ui.py +274 -0
  695. fontlabapp/proof/inspectors/views.py +256 -0
  696. fontlabapp/proof/numeric/__init__.py +2 -0
  697. fontlabapp/proof/numeric/controls.py +205 -0
  698. fontlabapp/proof/numeric/launcher.py +95 -0
  699. fontlabapp/proof/numeric/model.py +93 -0
  700. fontlabapp/proof/numeric/results.py +60 -0
  701. fontlabapp/proof/numeric/ui.py +176 -0
  702. fontlabapp/proof/random.py +72 -0
  703. fontlabapp/proof/random_proof_words.json +5045 -0
  704. fontlabapp/proof/real_text_passages.json +54 -0
  705. fontlabapp/proof/reports/__init__.py +2 -0
  706. fontlabapp/proof/reports/model.py +68 -0
  707. fontlabapp/proof/reports/snapshot_ui.py +104 -0
  708. fontlabapp/proof/reports/specialized_ui.py +49 -0
  709. fontlabapp/proof/reports/ui.py +82 -0
  710. fontlabapp/proof/review/__init__.py +2 -0
  711. fontlabapp/proof/review/ui.py +157 -0
  712. fontlabapp/proof/tabs/__init__.py +2 -0
  713. fontlabapp/proof/tabs/named.py +260 -0
  714. fontlabapp/proof/tabs/text.py +143 -0
  715. fontlabapp/proof/text_filter/__init__.py +2 -0
  716. fontlabapp/proof/text_filter/controls.py +54 -0
  717. fontlabapp/proof/text_filter/model.py +51 -0
  718. fontlabapp/proof/text_filter/settings.py +56 -0
  719. fontlabapp/proof/text_filter/ui.py +147 -0
  720. fontlabapp/proof/text_holder/__init__.py +2 -0
  721. fontlabapp/proof/text_holder/editor.py +213 -0
  722. fontlabapp/proof/text_holder/model.py +126 -0
  723. fontlabapp/proof/text_holder/storage.py +82 -0
  724. fontlabapp/proof/text_holder/ui.py +207 -0
  725. fontlabapp/qt/__init__.py +2 -0
  726. fontlabapp/qt/calendars/__init__.py +2 -0
  727. fontlabapp/qt/calendars/base.py +128 -0
  728. fontlabapp/qt/calendars/classic/__init__.py +2 -0
  729. fontlabapp/qt/calendars/classic/controls.py +107 -0
  730. fontlabapp/qt/calendars/classic/formats.py +94 -0
  731. fontlabapp/qt/calendars/official/__init__.py +2 -0
  732. fontlabapp/qt/calendars/official/controls.py +161 -0
  733. fontlabapp/qt/calendars/official/formats.py +73 -0
  734. fontlabapp/qt/choices.py +46 -0
  735. fontlabapp/qt/colors.py +90 -0
  736. fontlabapp/qt/completion/__init__.py +2 -0
  737. fontlabapp/qt/completion/editor.py +134 -0
  738. fontlabapp/qt/completion/events.py +91 -0
  739. fontlabapp/qt/dialogs.py +293 -0
  740. fontlabapp/qt/events/__init__.py +2 -0
  741. fontlabapp/qt/events/key.py +30 -0
  742. fontlabapp/qt/events/resize.py +30 -0
  743. fontlabapp/qt/find_files/__init__.py +2 -0
  744. fontlabapp/qt/find_files/actions.py +114 -0
  745. fontlabapp/qt/find_files/io.py +44 -0
  746. fontlabapp/qt/find_files/model.py +30 -0
  747. fontlabapp/qt/find_files/search.py +190 -0
  748. fontlabapp/qt/find_files/text.py +83 -0
  749. fontlabapp/qt/find_files/ui.py +185 -0
  750. fontlabapp/qt/images/__init__.py +2 -0
  751. fontlabapp/qt/images/resources.py +171 -0
  752. fontlabapp/qt/images/view.py +53 -0
  753. fontlabapp/qt/images/viewer/__init__.py +2 -0
  754. fontlabapp/qt/images/viewer/controls.py +52 -0
  755. fontlabapp/qt/images/viewer/dialogs.py +85 -0
  756. fontlabapp/qt/images/viewer/io.py +81 -0
  757. fontlabapp/qt/images/viewer/model.py +41 -0
  758. fontlabapp/qt/images/viewer/ui.py +173 -0
  759. fontlabapp/qt/layouts/__init__.py +2 -0
  760. fontlabapp/qt/layouts/content.py +17 -0
  761. fontlabapp/qt/layouts/linear.py +57 -0
  762. fontlabapp/qt/layouts/stack.py +48 -0
  763. fontlabapp/qt/literal_text.py +136 -0
  764. fontlabapp/qt/menus.py +414 -0
  765. fontlabapp/qt/numeric.py +33 -0
  766. fontlabapp/qt/painting/__init__.py +2 -0
  767. fontlabapp/qt/painting/drawing.py +163 -0
  768. fontlabapp/qt/painting/editor.py +442 -0
  769. fontlabapp/qt/painting/view.py +90 -0
  770. fontlabapp/qt/properties.py +37 -0
  771. fontlabapp/qt/regexp/__init__.py +2 -0
  772. fontlabapp/qt/regexp/controls.py +67 -0
  773. fontlabapp/qt/regexp/model.py +100 -0
  774. fontlabapp/qt/regexp/ui.py +141 -0
  775. fontlabapp/qt/safe.py +85 -0
  776. fontlabapp/qt/slider/__init__.py +2 -0
  777. fontlabapp/qt/slider/profiles.py +126 -0
  778. fontlabapp/qt/spinbox/__init__.py +2 -0
  779. fontlabapp/qt/spinbox/delegate.py +214 -0
  780. fontlabapp/qt/tables/__init__.py +2 -0
  781. fontlabapp/qt/tables/filter/__init__.py +2 -0
  782. fontlabapp/qt/tables/filter/controls.py +156 -0
  783. fontlabapp/qt/tables/filter/model.py +162 -0
  784. fontlabapp/qt/tables/filter/official.py +68 -0
  785. fontlabapp/qt/tables/filter/official_proxy.py +107 -0
  786. fontlabapp/qt/tables/filter/proxy.py +49 -0
  787. fontlabapp/qt/tables/filter/ui.py +198 -0
  788. fontlabapp/qt/tables/items.py +55 -0
  789. fontlabapp/qt/tables/selection.py +58 -0
  790. fontlabapp/qt/trees/__init__.py +2 -0
  791. fontlabapp/qt/trees/data.py +46 -0
  792. fontlabapp/qt/trees/draft.py +187 -0
  793. fontlabapp/qt/trees/editable/__init__.py +2 -0
  794. fontlabapp/qt/trees/editable/actions.py +115 -0
  795. fontlabapp/qt/trees/editable/base.py +164 -0
  796. fontlabapp/qt/trees/editable/controls.py +108 -0
  797. fontlabapp/qt/trees/editable/editor.py +75 -0
  798. fontlabapp/qt/trees/editable/model.py +127 -0
  799. fontlabapp/qt/trees/editable/view.py +75 -0
  800. fontlabapp/qt/trees/readonly.py +146 -0
  801. fontlabapp/qt/ui_graph.py +139 -0
  802. fontlabapp/qt/views.py +221 -0
  803. fontlabapp/qt/widgets.py +291 -0
  804. fontlabapp/qtsafe_api/__init__.py +50 -0
  805. fontlabapp/shortcuts/__init__.py +36 -0
  806. fontlabapp/signals/__init__.py +40 -0
  807. fontlabapp/studios/__init__.py +48 -0
  808. fontlabapp/studios/_contours.py +194 -0
  809. fontlabapp/studios/_kerning.py +157 -0
  810. fontlabapp/studios/_kerning_app.py +118 -0
  811. fontlabapp/studios/_kerning_ui.py +337 -0
  812. fontlabapp/studios/_records.py +129 -0
  813. fontlabapp/studios/advance_widths/__init__.py +70 -0
  814. fontlabapp/studios/advance_widths/_layers.py +170 -0
  815. fontlabapp/studios/advance_widths/app.py +35 -0
  816. fontlabapp/studios/advance_widths/chart.py +60 -0
  817. fontlabapp/studios/advance_widths/marks.py +50 -0
  818. fontlabapp/studios/advance_widths/rounding.py +73 -0
  819. fontlabapp/studios/advance_widths/table.py +152 -0
  820. fontlabapp/studios/advance_widths/tabular.py +92 -0
  821. fontlabapp/studios/advance_widths/widths.py +312 -0
  822. fontlabapp/studios/align_nudge/__init__.py +55 -0
  823. fontlabapp/studios/align_nudge/app.py +55 -0
  824. fontlabapp/studios/align_nudge/model.py +485 -0
  825. fontlabapp/studios/align_nudge/session.py +22 -0
  826. fontlabapp/studios/align_nudge/tabs.py +192 -0
  827. fontlabapp/studios/anchor_component_inspector/__init__.py +12 -0
  828. fontlabapp/studios/anchor_studio/__init__.py +55 -0
  829. fontlabapp/studios/anchor_studio/app.py +53 -0
  830. fontlabapp/studios/anchor_studio/model.py +521 -0
  831. fontlabapp/studios/anchor_studio/session.py +481 -0
  832. fontlabapp/studios/anchor_studio/tabs.py +531 -0
  833. fontlabapp/studios/anchor_transfer/__init__.py +72 -0
  834. fontlabapp/studios/anchor_transfer/_panel.py +168 -0
  835. fontlabapp/studios/anchor_transfer/app.py +61 -0
  836. fontlabapp/studios/anchor_transfer/components.py +37 -0
  837. fontlabapp/studios/anchor_transfer/csv_import.py +65 -0
  838. fontlabapp/studios/anchor_transfer/fonts.py +190 -0
  839. fontlabapp/studios/anchor_transfer/from_glyph.py +70 -0
  840. fontlabapp/studios/anchor_transfer/masters.py +66 -0
  841. fontlabapp/studios/anchor_transfer/transfer.py +639 -0
  842. fontlabapp/studios/character_consistency/__init__.py +2 -0
  843. fontlabapp/studios/character_consistency/app.py +24 -0
  844. fontlabapp/studios/component_audit/__init__.py +81 -0
  845. fontlabapp/studios/component_audit/_shared.py +169 -0
  846. fontlabapp/studios/component_audit/app.py +63 -0
  847. fontlabapp/studios/component_audit/brackets.py +62 -0
  848. fontlabapp/studios/component_audit/composites.py +110 -0
  849. fontlabapp/studios/component_audit/graph.py +52 -0
  850. fontlabapp/studios/component_audit/missing_bases.py +79 -0
  851. fontlabapp/studios/component_audit/nested.py +115 -0
  852. fontlabapp/studios/component_audit/where_used.py +108 -0
  853. fontlabapp/studios/component_studio/__init__.py +77 -0
  854. fontlabapp/studios/component_studio/_shared.py +383 -0
  855. fontlabapp/studios/component_studio/app.py +63 -0
  856. fontlabapp/studios/component_studio/build.py +411 -0
  857. fontlabapp/studios/component_studio/decompose.py +333 -0
  858. fontlabapp/studios/component_studio/locations.py +466 -0
  859. fontlabapp/studios/component_studio/locks.py +216 -0
  860. fontlabapp/studios/component_studio/offsets.py +167 -0
  861. fontlabapp/studios/component_studio/replace.py +231 -0
  862. fontlabapp/studios/core_pythonqt_labs/__init__.py +11 -0
  863. fontlabapp/studios/derived_glyphs/__init__.py +85 -0
  864. fontlabapp/studios/derived_glyphs/_component_sets.py +343 -0
  865. fontlabapp/studios/derived_glyphs/_shared.py +346 -0
  866. fontlabapp/studios/derived_glyphs/app.py +63 -0
  867. fontlabapp/studios/derived_glyphs/compat_placeholders.py +274 -0
  868. fontlabapp/studios/derived_glyphs/compat_small_caps.py +79 -0
  869. fontlabapp/studios/derived_glyphs/compat_sups_subs.py +93 -0
  870. fontlabapp/studios/derived_glyphs/compat_tabular.py +91 -0
  871. fontlabapp/studios/derived_glyphs/default_figures.py +242 -0
  872. fontlabapp/studios/derived_glyphs/effect.py +297 -0
  873. fontlabapp/studios/derived_glyphs/effects.py +71 -0
  874. fontlabapp/studios/derived_glyphs/outline.py +122 -0
  875. fontlabapp/studios/derived_glyphs/placeholders.py +380 -0
  876. fontlabapp/studios/derived_glyphs/shadow.py +280 -0
  877. fontlabapp/studios/derived_glyphs/small_caps.py +112 -0
  878. fontlabapp/studios/derived_glyphs/sups_subs.py +148 -0
  879. fontlabapp/studios/derived_glyphs/tabular.py +132 -0
  880. fontlabapp/studios/derived_glyphs/unicase.py +245 -0
  881. fontlabapp/studios/encoding_order/__init__.py +9 -0
  882. fontlabapp/studios/encoding_order/app.py +25 -0
  883. fontlabapp/studios/feature_authoring/__init__.py +8 -0
  884. fontlabapp/studios/feature_authoring/app.py +35 -0
  885. fontlabapp/studios/feature_explorer/__init__.py +8 -0
  886. fontlabapp/studios/feature_explorer/app.py +35 -0
  887. fontlabapp/studios/font_audit/__init__.py +60 -0
  888. fontlabapp/studios/font_audit/app.py +68 -0
  889. fontlabapp/studios/font_audit/blocks.py +356 -0
  890. fontlabapp/studios/font_audit/model.py +270 -0
  891. fontlabapp/studios/font_audit/practical.py +87 -0
  892. fontlabapp/studios/font_audit/session.py +127 -0
  893. fontlabapp/studios/font_audit/tabs.py +503 -0
  894. fontlabapp/studios/font_identity/__init__.py +9 -0
  895. fontlabapp/studios/font_identity/app.py +22 -0
  896. fontlabapp/studios/glyph_browser/__init__.py +11 -0
  897. fontlabapp/studios/glyph_browser/app.py +17 -0
  898. fontlabapp/studios/glyph_identity/__init__.py +2 -0
  899. fontlabapp/studios/glyph_identity/app.py +26 -0
  900. fontlabapp/studios/glyph_labels/__init__.py +11 -0
  901. fontlabapp/studios/glyph_labels/app.py +19 -0
  902. fontlabapp/studios/hint_tools/__init__.py +10 -0
  903. fontlabapp/studios/hint_tools/autohint.py +177 -0
  904. fontlabapp/studios/hint_tools/removal.py +182 -0
  905. fontlabapp/studios/hint_tools/session.py +69 -0
  906. fontlabapp/studios/interpolation_doctor/__init__.py +59 -0
  907. fontlabapp/studios/interpolation_doctor/app.py +56 -0
  908. fontlabapp/studios/interpolation_doctor/model.py +444 -0
  909. fontlabapp/studios/interpolation_doctor/session.py +351 -0
  910. fontlabapp/studios/interpolation_doctor/tabs.py +267 -0
  911. fontlabapp/studios/kerning_batch/__init__.py +71 -0
  912. fontlabapp/studios/kerning_batch/app.py +35 -0
  913. fontlabapp/studios/kerning_batch/clamp.py +69 -0
  914. fontlabapp/studios/kerning_batch/copy_masters.py +179 -0
  915. fontlabapp/studios/kerning_batch/punctuation.py +301 -0
  916. fontlabapp/studios/kerning_batch/remove_small.py +61 -0
  917. fontlabapp/studios/kerning_batch/rounding.py +93 -0
  918. fontlabapp/studios/kerning_batch/scale.py +40 -0
  919. fontlabapp/studios/kerning_browser/__init__.py +70 -0
  920. fontlabapp/studios/kerning_browser/app.py +58 -0
  921. fontlabapp/studios/kerning_browser/classes.py +163 -0
  922. fontlabapp/studios/kerning_browser/consolidated.py +74 -0
  923. fontlabapp/studios/kerning_browser/energy.py +185 -0
  924. fontlabapp/studios/kerning_browser/exceptions.py +132 -0
  925. fontlabapp/studios/kerning_browser/masters.py +126 -0
  926. fontlabapp/studios/kerning_browser/missing.py +162 -0
  927. fontlabapp/studios/kerning_browser/owner.py +33 -0
  928. fontlabapp/studios/kerning_browser/pairs.py +146 -0
  929. fontlabapp/studios/kerning_proof/__init__.py +15 -0
  930. fontlabapp/studios/kerning_proof/app.py +68 -0
  931. fontlabapp/studios/kerning_proof/pairs.py +151 -0
  932. fontlabapp/studios/kerning_proof/stage.py +69 -0
  933. fontlabapp/studios/kerning_proof/tabs.py +123 -0
  934. fontlabapp/studios/kerning_proof/text.py +119 -0
  935. fontlabapp/studios/kerning_studio/__init__.py +54 -0
  936. fontlabapp/studios/kerning_studio/app.py +166 -0
  937. fontlabapp/studios/kerning_studio/current_pair.py +150 -0
  938. fontlabapp/studios/kerning_studio/model.py +263 -0
  939. fontlabapp/studios/kerning_studio/pairs.py +270 -0
  940. fontlabapp/studios/kerning_studio/selected_delete.py +166 -0
  941. fontlabapp/studios/kerning_studio/selected_steal.py +332 -0
  942. fontlabapp/studios/kerning_studio/session.py +301 -0
  943. fontlabapp/studios/kerning_studio/staged.py +86 -0
  944. fontlabapp/studios/kerning_studio/tabs.py +432 -0
  945. fontlabapp/studios/layer_manager/__init__.py +84 -0
  946. fontlabapp/studios/layer_manager/_duplicate.py +249 -0
  947. fontlabapp/studios/layer_manager/_empty.py +234 -0
  948. fontlabapp/studios/layer_manager/_from_font.py +637 -0
  949. fontlabapp/studios/layer_manager/_modes.py +51 -0
  950. fontlabapp/studios/layer_manager/_restore.py +446 -0
  951. fontlabapp/studios/layer_manager/_shared.py +346 -0
  952. fontlabapp/studios/layer_manager/_use_master.py +319 -0
  953. fontlabapp/studios/layer_manager/app.py +63 -0
  954. fontlabapp/studios/layer_manager/backups.py +26 -0
  955. fontlabapp/studios/layer_manager/cleanup.py +341 -0
  956. fontlabapp/studios/layer_manager/copy_masters.py +447 -0
  957. fontlabapp/studios/layer_manager/deliver.py +559 -0
  958. fontlabapp/studios/layer_manager/intermediate.py +349 -0
  959. fontlabapp/studios/layer_manager/twins.py +412 -0
  960. fontlabapp/studios/mark_attachment/__init__.py +70 -0
  961. fontlabapp/studios/mark_attachment/_shared.py +348 -0
  962. fontlabapp/studios/mark_attachment/align.py +191 -0
  963. fontlabapp/studios/mark_attachment/app.py +30 -0
  964. fontlabapp/studios/mark_attachment/cursive.py +384 -0
  965. fontlabapp/studios/mark_attachment/preview.py +159 -0
  966. fontlabapp/studios/nastaliq_connections/__init__.py +8 -0
  967. fontlabapp/studios/nastaliq_connections/app.py +35 -0
  968. fontlabapp/studios/node_editor/__init__.py +17 -0
  969. fontlabapp/studios/outline_doctor/__init__.py +56 -0
  970. fontlabapp/studios/outline_doctor/app.py +55 -0
  971. fontlabapp/studios/outline_doctor/checks.py +86 -0
  972. fontlabapp/studios/outline_doctor/fixes.py +719 -0
  973. fontlabapp/studios/outline_doctor/model.py +251 -0
  974. fontlabapp/studios/outline_doctor/reports.py +201 -0
  975. fontlabapp/studios/outline_doctor/session.py +235 -0
  976. fontlabapp/studios/outline_doctor/tabs.py +175 -0
  977. fontlabapp/studios/proof_studio/__init__.py +79 -0
  978. fontlabapp/studios/proof_studio/app.py +69 -0
  979. fontlabapp/studios/proof_studio/generators/__init__.py +237 -0
  980. fontlabapp/studios/proof_studio/generators/_context.py +30 -0
  981. fontlabapp/studios/proof_studio/generators/_text.py +26 -0
  982. fontlabapp/studios/proof_studio/generators/between.py +36 -0
  983. fontlabapp/studios/proof_studio/generators/kerning_texts.py +47 -0
  984. fontlabapp/studios/proof_studio/generators/master_text.py +156 -0
  985. fontlabapp/studios/proof_studio/generators/random_proofs.py +74 -0
  986. fontlabapp/studios/proof_studio/generators/real_text.py +78 -0
  987. fontlabapp/studios/proof_studio/generators/saved_sample.py +127 -0
  988. fontlabapp/studios/proof_studio/generators/surround.py +30 -0
  989. fontlabapp/studios/proof_studio/generators/text_by_master.py +58 -0
  990. fontlabapp/studios/proof_studio/generators/text_filter.py +92 -0
  991. fontlabapp/studios/proof_studio/generators/waterfall.py +71 -0
  992. fontlabapp/studios/proof_studio/generators/word_finder.py +65 -0
  993. fontlabapp/studios/proof_studio/practical.py +96 -0
  994. fontlabapp/studios/proof_studio/session.py +236 -0
  995. fontlabapp/studios/proof_studio/tabs.py +412 -0
  996. fontlabapp/studios/shape_generators/__init__.py +3 -0
  997. fontlabapp/studios/shape_generators/angular.py +138 -0
  998. fontlabapp/studios/shape_generators/app.py +65 -0
  999. fontlabapp/studios/shape_generators/comb.py +266 -0
  1000. fontlabapp/studios/shape_generators/medial.py +43 -0
  1001. fontlabapp/studios/shape_generators/myanmar.py +582 -0
  1002. fontlabapp/studios/shape_generators/panel.py +137 -0
  1003. fontlabapp/studios/shape_generators/sandblast.py +249 -0
  1004. fontlabapp/studios/shape_generators/sansomatic.py +316 -0
  1005. fontlabapp/studios/spacing_studio/__init__.py +55 -0
  1006. fontlabapp/studios/spacing_studio/app.py +123 -0
  1007. fontlabapp/studios/spacing_studio/model.py +299 -0
  1008. fontlabapp/studios/spacing_studio/raw.py +162 -0
  1009. fontlabapp/studios/spacing_studio/session.py +454 -0
  1010. fontlabapp/studios/spacing_studio/staged.py +227 -0
  1011. fontlabapp/studios/spacing_studio/tabs.py +636 -0
  1012. fontlabapp/studios/transform_studio/__init__.py +54 -0
  1013. fontlabapp/studios/transform_studio/actions.py +24 -0
  1014. fontlabapp/studios/transform_studio/app.py +55 -0
  1015. fontlabapp/studios/transform_studio/geometry.py +422 -0
  1016. fontlabapp/studios/transform_studio/model.py +264 -0
  1017. fontlabapp/studios/transform_studio/native.py +127 -0
  1018. fontlabapp/studios/transform_studio/session.py +373 -0
  1019. fontlabapp/studios/transform_studio/tabs.py +474 -0
  1020. fontlabapp/studios/vertical_metrics/__init__.py +78 -0
  1021. fontlabapp/studios/vertical_metrics/_shared.py +164 -0
  1022. fontlabapp/studios/vertical_metrics/angle.py +123 -0
  1023. fontlabapp/studios/vertical_metrics/app.py +102 -0
  1024. fontlabapp/studios/vertical_metrics/calculate.py +296 -0
  1025. fontlabapp/studios/vertical_metrics/diagram.py +430 -0
  1026. fontlabapp/studios/vertical_metrics/table.py +269 -0
  1027. fontlabapp/studios/vertical_metrics/zones.py +464 -0
  1028. fontlabapp/ui/__init__.py +39 -0
  1029. fontlabapp/ui/actions/__init__.py +49 -0
  1030. fontlabapp/ui/canvas/__init__.py +45 -0
  1031. fontlabapp/ui/dialogs/__init__.py +50 -0
  1032. fontlabapp/ui/panels/__init__.py +38 -0
  1033. fontlabapp/ui/widgets/__init__.py +39 -0
  1034. fontlabapp/ui/windows/__init__.py +37 -0
  1035. fontlabapp/vfjo/__init__.py +124 -0
  1036. fontlabapp/vfjo/_data.py +453 -0
  1037. fontlabapp/vfjo/_edit.py +369 -0
  1038. fontlabapp/vfjo/nodes.py +145 -0
@@ -0,0 +1,855 @@
1
+ Metadata-Version: 2.5
2
+ Name: fontlab-fontlabapp
3
+ Version: 1.2.29
4
+ Summary: FontLab application context and utilities
5
+ Project-URL: Repository, https://github.com/fontlabcom/fontlab-fontlabapp
6
+ License-Expression: Apache-2.0 AND MIT AND BSD-3-Clause AND LicenseRef-Proprietary
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ License-File: examples/LICENSE-native-ui
10
+ Requires-Python: >=3.11
11
+ Requires-Dist: fontlab-python-pens>=1.0.0
12
+ Requires-Dist: python-box<9,>=7.1
13
+ Provides-Extra: fontport
14
+ Requires-Dist: fontlab-fontport>=1.2.2; extra == 'fontport'
15
+ Provides-Extra: fontui
16
+ Requires-Dist: fonttools>=4.59; extra == 'fontui'
17
+ Provides-Extra: fontui-shaping
18
+ Requires-Dist: fonttools>=4.59; extra == 'fontui-shaping'
19
+ Requires-Dist: uharfbuzz>=0.39; extra == 'fontui-shaping'
20
+ Provides-Extra: hotkeys
21
+ Requires-Dist: pyobjc-framework-quartz>=10; (sys_platform == 'darwin') and extra == 'hotkeys'
22
+ Provides-Extra: markdown
23
+ Requires-Dist: markdown>=3.7; extra == 'markdown'
24
+ Requires-Dist: pymdown-extensions>=10; extra == 'markdown'
25
+ Provides-Extra: test
26
+ Requires-Dist: fontparts<2,>=1.1; extra == 'test'
27
+ Requires-Dist: fonttools>=4.59; extra == 'test'
28
+ Requires-Dist: markdown>=3.7; extra == 'test'
29
+ Requires-Dist: pymdown-extensions>=10; extra == 'test'
30
+ Requires-Dist: pyside6-essentials>=6.7; extra == 'test'
31
+ Requires-Dist: pytest>=8; extra == 'test'
32
+ Requires-Dist: ufolib2>=0.18; extra == 'test'
33
+ Requires-Dist: uharfbuzz>=0.39; extra == 'test'
34
+ Provides-Extra: unicode
35
+ Requires-Dist: unicodedata2>=15; extra == 'unicode'
36
+ Description-Content-Type: text/markdown
37
+
38
+ ---
39
+ this_file: README.md
40
+ ---
41
+
42
+ User scripts and examples require FontLab Fly 1.3.0 or later in the interpreter
43
+ that runs them. Use `fly.ap` for App and explicit domain imports; the aliases
44
+ share the canonical provider objects and load only on use. Library internals
45
+ retain direct provider imports without a mandatory Fly dependency.
46
+
47
+ The source installer copies Scripts and writes App's owned startup block, but
48
+ does not install or check Fly. Install
49
+ [Fly and its matching providers](https://github.com/fontlabcom/fontlab-fly#install)
50
+ separately in the same interpreter before running these consumers or relying on
51
+ plugin startup. A missing Fly import makes the startup block print
52
+ `FontLab plugins startup:` and skip activation.
53
+
54
+ ## Install in FontLab
55
+
56
+ To install into FontLab 9, open `install.vfpy` from a checkout in FontLab
57
+ (double-click it or drop it onto FontLab), then restart FontLab. The file is a
58
+ short stub that hands the work to
59
+ [fontlab-instamix](https://github.com/fontlabcom/fontlab-python-instamix); if
60
+ instamix is not installed yet, the stub installs it from PyPI first. Instamix
61
+ installs the package into FontLab's own `site-packages` and records the install
62
+ under the extension id `com.fontlab.fontlabapp`.
63
+
64
+ ## UFO and representation inspectors
65
+
66
+ `fontlabapp.fontui.ufo_roundtrip.show(font, parent=None)` opens an explicit
67
+ export/reopen/import inspection in owned temporary staging. It never saves or
68
+ closes the borrowed source. Its report distinguishes source/export, saved UFO and
69
+ imported-model differences, including interchange losses. Native fonts expose only
70
+ the adapter-readable UFO model; native preservation remains unverified.
71
+
72
+ `fontlabapp.fontui.representation_notifications.show(font, parent=None)` combines
73
+ glyph browsing, outline inspection and representation cache observations. It
74
+ reports actual scripting-model notifications and cache states. Representation reads
75
+ populate caches; external native synchronization remains unverified. Both tools
76
+ have paired demonstrations under **Font Editors** and Scriptmix **Font UI Lab**.
77
+
78
+
79
+ Batch UFO Recipe Workbench is available through `fontlabapp.fontui.batch_recipes.show(parent=None, python=None)`. Use the real affine recipe controls without opening a font or geometry preview, then explicitly select UFO sources, an output directory and Python 3.11+ with Fontport. Start writes new outputs; existing files and destinations inside any input UFO are refused. The actual panel shows per-file results, progress and failures. Cancel stops between files and retains completed outputs. Closing transfers an active run to supervision; terminal cleanup and independently reopened outputs are separate observations. Source review, ordinary artifacts and native qualification remain distinct.
80
+
81
+ Detached Transform Preview is available through `fontlabapp.fontui.detached_transform.show(font, parent=None)`. Run **Font Editors > Detached Transform Preview Demo**. Choose an explicit layer and glyph, then Capture to compare the backend-stored snapshot with an affine result. Refresh reads the same captured font; borrowed caches and pending edits remain untouched. Settings Save creates only a chosen new JSON file, and Show script displays text without executing it. No font Apply/save/export is provided. This workflow is independently source-qualified. Combined-main review, matching ordinary installation and native behavior remain pending.
82
+
83
+
84
+ Feature Source and Proof is available through `fontlabapp.fontui.feature_proof.show(font, parent=None)`. It keeps the ordinary code view, refuses unsupported input before selection loss, and quarantines opaque document changes until explicit Revert. Accepted source Apply refreshes the independent Unicode/kerning sequence once; it does not compile or shape OpenType features. The window captures one borrowed font. External changes retain dirty drafts with a warning; explicit Apply can overwrite newer source. Refresh proof retries only the view. Original paragraph separators are inspect-only. Focused checks confirm exact UFO source preservation through the backend and editor for CR, CRLF, mixed endings and absent final newlines, including untouched siblings; duplicate feature tags are inspect-only. This workflow is source-qualified through independent review and complete controlled Fontport/App/Scriptmix suites. Ordinary artifact and native history/reopen qualification remain pending. Native PythonQt/FontLab, full literal paragraph-separator editing and broader clipboard routes remain unqualified.
85
+
86
+
87
+
88
+ ## Development status — 2026-11-05
89
+
90
+ Canonical source inspected for this proposal: `6c48291ca654`. This is a dated source observation, not an installed or native acceptance claim.
91
+
92
+ Issue 210 separates the plugin core in `src/fontlabapp/plugins` from the concrete Plugmix Extensions bundles. Native qualification remains open.
93
+
94
+ Complete Issue 211 native probes and four minor fixes with independent regression review; reconcile Issue 207 before integrating over current Issue 208/209/M12 code.
95
+
96
+ ## Repository and development
97
+
98
+ `src/fontlabapp/` owns domain packages; `Scripts/` holds package demonstrations; `tests/` contains source and offline UI checks; `examples/` holds external/native drivers. The plugin core lives in `src/fontlabapp/plugins/`, with regression tests in `tests/plugmix/`; `fontlabapp.plugmix` is a deprecated compatibility shim.
99
+
100
+ Use README Testing to prepare arm64 Python 3.11 with App[test], Fontport, Glyport and Fly. Run that interpreter with `python -B -m pytest -q -p no:cacheprovider`. `./test.sh` uses sibling Fontport/Glyport checkouts and Fly source when present; classify missing peers and skips.
101
+
102
+ Keep runtime, ordinary installed artifacts, native workflows and published documentation as separate acceptance results. Track open checks in [TODO.md](TODO.md), the implementation route in [PLAN.md](PLAN.md), and dated evidence in [CHANGELOG.md](CHANGELOG.md).
103
+
104
+ Private release-ancestry integration candidate: v0.2.25 and the reviewed issue123 feature source are both ancestors. This source retains held writers, including Italic Angle, whose prerelease remains outside accepted main after the unrelated active-state regression. No writer/native acceptance, canonical promotion or release follows from this private integration; all existing holds remain.
105
+
106
+ Common Glyphs now reports every open font without requiring a current one. It preserves one-font glyph order, deterministic multi-font intersections, first-font primary character strings and exact trailing name/string spaces. The caller supplies verified GlyphData production names; unknowns and all alternative encodings stay visible. Escaped JSON preserves exact Unicode when Qt normalizes copied text; literal NUL uses a disclosed display escape. Ordinary primary-selection copying can normalize NBSP/line separators. Explicit Copy Characters/Copy Original Report actions stage the exact detached source as literal MIME data using the existing Qt helper. Their native callbacks, OS clipboard handoff and rendering remain unqualified. Its owned report refreshes without clearing Output. The charcoal option is visible, unchecked and unavailable: the full all-font action still needs a supported glyph-only mark/history API (FontLab issue 8564). This partial source milestone does not complete the original workflow or establish native acceptance.
107
+
108
+ Master Text Comparison restores the original preset/custom workflow, usable-character sanitation, exact master-copy delimiters and owned settings. It stages named glyph/layer symbols in a fresh proof; native model binding, rendering and full preservation remain unqualified. Multiline/paragraph custom input is held explicitly; exact UTF-8 presets retain those scalars.
109
+
110
+ # FontLab application utilities
111
+
112
+ `fontlab-fontlabapp` provides the `fontlabapp` package: shared FontLab application, UI, drawing, reporting and guarded editing helpers. It supplies reusable mechanics for Fly, Fontport, Glyport and FontLab scripts. Python 3.11 arm64 is the host target. The package declares Python >=3.11 and requires fontlab-python-pens>=1.0.0. Fontport remains optional through the fontport extra.
113
+
114
+ The host-free `smallcap_consistency` engine reports exporting case counts, missing and orphan smallcaps, legacy capital/lowercase coverage and two-sided kerning-group differences. The `legacy_lowercase_without_smallcaps` section independently requires an exporting `.sc` glyph even when modern `.smcp` coverage passes. `smallcap_capture.current_report()` lazily captures the current font and master within a shared three-second budget. Export scope is explicitly the `public.skipExportGlyphs` compatibility policy; unknown mappings and ambiguous groups are disclosed. Native qualification remains pending.
115
+
116
+ Pure utility modules load outside FontLab. Native operations require FontLab's `fontlab`, `FL`, `fontgate`, `fontpr` and PythonQt APIs as used by each operation. Native modules and panels load on demand. General UI belongs here; FontParts/UFO adapters belong in Fontport; Glyphs.app compatibility belongs in Glyport. App never imports Glyport. Optional Fontport imports are confined to `fontui`;
117
+ base App still installs without Fontport. Scriptmix scripts and App's own `Scripts/` access App through `fly.ap`.
118
+
119
+ ## Designspace source report (Issue 234 #14)
120
+
121
+ The Source Comparison view offers **Open designspace…** beside its captured-font
122
+ refresh control. External reports identify their file and retain the previous
123
+ complete report on cancel or failure. Install the existing `fontport` extra.
124
+ The Qt-free `fontlabapp.fontui.designspace_sources` module also supports:
125
+
126
+ ```python
127
+ from fly.ap.fontui.designspace_sources import compare, render, refresh
128
+ report = compare("Family.designspace")
129
+ print(render(report))
130
+ # Update a view after a complete read:
131
+ refresh(path, view.setPlainText)
132
+ ```
133
+
134
+ For an ordinary Python command-line report (with App and Fontport installed):
135
+
136
+ ```sh
137
+ python "Scripts/Font Editors/Designspace Source Report Demo.py" Family.designspace
138
+ ```
139
+
140
+ `Report` contains ordered sources, axis bounds/maps, design/user locations,
141
+ UPM/ascender/descender/xHeight/capHeight/italicAngle, glyph-set differences
142
+ relative to source 1, and sorted per-glyph advances/structural diagnostics.
143
+ Metrics are raw source units; unset values remain unset. Named source layers
144
+ use their glyphs and the UFO's shared font info. Missing glyphs and single-source
145
+ reports are not comparable. `refresh(path, set_text)` reads the complete report
146
+ before calling the supplied text setter; errors propagate to the caller.
147
+
148
+ This uses Fontport's FontTools designspace adapter and UFO readers. Continuous
149
+ axes and UFO sources are supported; discrete axes, anisotropic locations and
150
+ multi-axis mappings are refused. FontTools discards dimensions for undefined
151
+ axes during parsing. Compatibility uses App's ordered node types and anchor/
152
+ component name sets; it does not certify interpolation or export. No fonts are
153
+ written, no Qt is imported and no widget is owned. C5 view wiring, native
154
+ PythonQt behavior and ordinary artifact qualification remain open.
155
+
156
+ ## API map
157
+
158
+ The [module and domain map](src_docs/md/guides/api-map.md) lists every App module, its public
159
+ names and purpose. Additive lazy facades give the main capabilities shorter
160
+ import paths without loading PythonQt when the facade itself is imported:
161
+
162
+ ```python
163
+ from fly.ap.objects import FontLab, current_package
164
+ from fly.ap.ui.actions import Action, ActionDisabledError
165
+ from fly.ap.ui.canvas import EditorPainters
166
+ from fly.ap.ui.dialogs import run_standard_message_box
167
+ from fly.ap.menus import OwnedMenus
168
+ from fly.ap.signals import track_connection
169
+ from fly.ap.qtsafe_api import qt_list
170
+ ```
171
+
172
+ The other facades are `fontlabapp.ui.panels`, `.widgets`, `.windows`,
173
+ `fontlabapp.ui`, `fontlabapp.shortcuts` and `fontlabapp.qtsafe_api`. Accessing
174
+ native objects still requires FontLab. The legacy `fontlabapp.actions` package
175
+ attribute remains the live host action tree; the facade lives at
176
+ `fontlabapp.ui.actions`. The Qt helper facade uses `qtsafe_api` so its path
177
+ cannot differ from the existing lazy `fontlabapp.Qt` name only by case.
178
+
179
+ Case Coverage provides the original four report controls, complete detached
180
+ case diagnostics and an explicit existing-view chooser when inactive views are
181
+ ambiguous. GlyphData metadata is supplied by the Scriptmix caller. Exact native
182
+ text-block binding and proof usability remain unqualified; a capability refusal
183
+ is not native acceptance.
184
+
185
+ ## Original Node Duplicator actions
186
+
187
+ `node_duplicator_native.duplicate_selected_nodes(mode)` is the guarded immediate
188
+ entry point. Choose mode `"current"`, `"all"` or `"handles"` for the three source policies. Current
189
+ and handles operate on the first selected layer. All broadcasts its selected
190
+ on-curve indices to every stored foreground layer of each selected parent
191
+ occurrence, retaining duplicate layer names and repeated parents. Handles adds
192
+ two fresh coincident controls and a copied curve endpoint. The separate Scriptmix
193
+ Node Duplicator panel retains its per-glyph reference/preview behavior.
194
+
195
+ Copies restore named native metadata and fractional positions; existing node
196
+ and captured layer/shape metadata are checked. Shared owners, automatic
197
+ dependants, hinted topology and unrepresentable control cases are refused.
198
+ Queue ids are disclosed without clearing them. A partial failure carries exact
199
+ owned recovery handles and whether its history notification returned; this does
200
+ not prove actual Undo/Redo or saved-font preservation. Do not blindly retry it.
201
+ The full native/four-font/window-priority/lifetime workflow still needs acceptance.
202
+
203
+ ## Install
204
+
205
+ Use Python 3.11 arm64. The test extra supplies pytest, Markdown/PyMdown, ufoLib2, fontParts, fontTools and PySide6-Essentials. PySide6 is an offline test binding; it does not replace FontLab's PythonQt.
206
+
207
+ The full suite also needs **fontlab-fly installed with its target packages**. Adding Fly's source directory to PYTHONPATH alone is insufficient. The commands under Testing install the local App, Fontport and Glyport checkouts with their dependencies into a prepared virtual environment, and Fly with `--no-deps`: Fly's own target packages (Echopy, PythonQtSide) are not published on a package index. Sibling checkouts must exist at `../fontlab-fly`, `../fontlab-fontport` and `../fontlab-glyport`.
208
+
209
+ Editable installation into FontLab is owner-managed. Do not install or uninstall packages in FontLab's Python site-packages from a development or test session. Use a reviewed installed artifact and verify its import origin for native tests. This branch is development source; a historical tag or candidate floor does not prove that its current API is available from a package index.
210
+
211
+ Optional extras:
212
+
213
+ | Extra | Purpose |
214
+ | --- | --- |
215
+ | `markdown` | Python-Markdown and PyMdown conversion |
216
+ | `hotkeys` | macOS Quartz hooks; needs existing Accessibility permission |
217
+ | `unicode` | Extended Unicode data through unicodedata2 |
218
+ | `fontui` | fontTools for outline and browser helpers |
219
+ | `fontport` | `fontlab-fontport` and its fontParts/UFO stack, which the six FontParts editors and feature helpers in `fontlabapp.fontui` need |
220
+ | `fontui-shaping` | fontTools and uharfbuzz, which TMetrics uses to shape text; without them it maps characters one to one and says the text is unshaped |
221
+
222
+ Windows global hotkeys are not implemented. macOS global capture remains unverified. No feature compiler is supplied.
223
+
224
+ ## Use inside FontLab
225
+
226
+ Read application state without opening or saving PrefLib:
227
+
228
+ ```python
229
+ from fly.ap import Application
230
+ app = Application(with_ui=True, with_preflib=False)
231
+ print(app.versions.app_version)
232
+ print(app.control.current_font())
233
+ ```
234
+
235
+ `fontlabapp.app` creates the legacy context lazily. Explicit `Application()` initializes UI and PrefLib by default. PrefLib preserves attribute dictionaries and JSON; malformed or non-object JSON fails before saving.
236
+
237
+ Scripts use the Fly namespace. Keep the module import form:
238
+
239
+ ```python
240
+ import fly.ap.core.scripting as scripting
241
+ import fly.ap.core.history.glyphs as history
242
+
243
+ package = scripting.current_package()
244
+ print(scripting.font_id(package)) # fontpr uses fgId, not package.id
245
+ ```
246
+
247
+ Outside FontLab, import a pure submodule directly:
248
+
249
+ ```python
250
+ from fly.ap.core.utils import deepmerge, slugify
251
+ from fly.ap.contours.affine import apply, IDENTITY
252
+ print(apply(IDENTITY, 20, 30))
253
+ ```
254
+
255
+ Real subpackages and legacy aliases resolve before native API names, so `from fly.ap import core` also works outside FontLab. Prefer explicit domain paths in new code. Outside FontLab, unknown names raise `AttributeError` on attribute access or `ImportError` on from-import. Explicit native names still raise a host-required `RuntimeError` outside FontLab.
256
+
257
+ Read and trigger native menus with `fontlabapp.core.host`:
258
+
259
+ ```python
260
+ from fly.ap.core import host
261
+ host.menu.font.find("kern")
262
+ host.panels.preview.show()
263
+ host.menu.view.measurements.tension.set_checked(True)
264
+ ```
265
+
266
+ Lookups resolve current QAction objects after menu rebuilds. Reading an attribute, `dir` or `repr` does not trigger an action. Disabled actions raise `ActionDisabledError`. Font Map has no exposed panel state.
267
+
268
+ ## UI and drawing
269
+
270
+ `FontLab()` or `Application.control` reads fonts, glyphs, metrics and live views; it also exposes native open/new/save/close and tool calls. Tool results and errors retain their JSON form. Raw wrapper reads can produce different Python objects; compare native IDs. `output()` reads Output without clearing it.
271
+
272
+ `create_panel`, `create_dialog` and `create_widget` in `fontlabapp.qt.widgets` build owned UI under MainWindow. Keep handles alive; close them when finished, and retry Close if it returns False or raises. Context exit removes owned controls and overlays. It preserves user views and fonts. Failed factory cleanup exposes both errors and its exact recovery owner. Floating docks and plugin tools request priority. See [window recovery](examples/owned_windows.md) for six standalone experiments; native acceptance remains separate.
273
+
274
+ `fontlabapp.qt.views.Drawing` paints one widget. Glyph overlays accept pixel or canvas coordinates; canvas coordinates are not implicit glyph-local coordinates. `fontlabapp.qt.painting.editor.EditorPainters` registers after-native-layer callbacks across visible glyph windows, with affine mapping and active/inactive layer filters. Before-native-layer painting is refused. `fontlabapp.qt.menus.OwnedMenus` owns actions and tool windows; removal inside its own connected slots is deferred until dispatch returns. Other slots must queue their own teardown. `_defer(fn, first=True)` queues prerequisite cleanup before pending teardown.
275
+
276
+ `fontlabapp.qt.safe.qt_list` converts widget lists with cyclic GC disabled on the GUI thread. `fontlabapp.qt.safe.main_window` raises `MainWindowNotFound`. `fontlabapp.qt.dialogs` executes owned input/file/message dialogs and releases them on exit. Caller adapters retain button, conversion and cancel policy. The extracted painter/menu/dialog workflows still need native acceptance. Offline tests do not establish PythonQt safety.
277
+
278
+ `fontlabapp.qt.dialogs.run_standard_message_box(qt, parent, title, text, icon, buttons, default_button=None)` runs an owned priority dialog with static warning/question semantics. Pass `"Warning"` or `"Question"` for the icon; the title and primary text stay separate. It preserves standard-button results, explicit No defaults and automatic defaults, and deletes the box on every exit.
279
+
280
+ `fontlabapp.fontui` also holds the editors for FontParts-style fonts: `font_info_editor(font, parent=None, on_apply=None)`, `groups_editor(font, parent=None, on_apply=None)`, `kerning_editor(font, parent=None, on_apply=None)`, `transform_editor(font, name=None, parent=None, on_change=None, on_invalidate=None)` (a detached affine glyph transform), `batch_panel(recipe, parent=None, on_finish=None, python=None)` (a recipe over source UFOs) and `glyph_sequence(font, parent=None, on_select=None)` (text or slash-separated glyph names). They validate and apply data with Fontport, so install it with `pip install "fontlab-fontlabapp[fontport]"`; without it a factory raises `ImportError` that names the extra. Importing `fontlabapp.fontui` loads neither PythonQt nor an editor module. Batch work runs in a separate Python 3.11+ that has `fontlab-fontport`: pass `python=` or set `FONTLABAPP_BATCH_PYTHON`. [The transform example](examples/font_transform.py) connects preview and batch. Fontport has no UI (issue 201); these editors lived in `fontlab_fontport.ui` for one release. Moved editor interaction still needs native acceptance.
281
+
282
+ The optional transform `on_invalidate()` callback runs before subsequent update, intensity synchronization, Reset and selected-load work. It is registered after the initial preview, which keeps the existing `on_change` timing. Use it to clear linked proof, not calculate or publish. Callback reentry refuses; ordinary callback errors refuse the attempt, and `BaseException` propagates with the notification fence restored. A cancelled chooser keeps valid proof. Consumers must clear their own validity before fallible view work and check actual publication: `update()` success alone does not establish it. This shared helper is a source candidate; the complete Detached Transform Preview workflow and native qualification remain pending.
283
+
284
+ [The external native UI example](examples/native_ui.py) uses `fontlab-remopy` in
285
+ ordinary external Python to create a native panel, modeless dialog and removable
286
+ Preview drawing. Install App inside FontLab first; `--typerig` also needs TypeRig
287
+ in FontLab. From this source checkout or an extracted sdist, run
288
+ `python examples/native_ui.py --seconds 5` with Remopy installed in
289
+ the external interpreter. It retains its handles across calls, waits outside the
290
+ UI thread and removes only its own resources in `finally`. The example retains
291
+ its [Fontlab Ltd proprietary licence](examples/LICENSE-native-ui); it is included
292
+ in the sdist, separate from the installed App runtime. Native requalification
293
+ against the current combined cohort remains pending.
294
+
295
+ See [drawing](examples/drawing.py), [font browser](examples/font_browser.py), [features](examples/font_features.py), [native smoke](examples/native_smoke.py), [Text Holder](examples/text_holder.md), [Find Files](examples/find_files.md), [Character Map](examples/character_map.md), [Raise Ascender](examples/raise_ascender.md) and [kerning proofs](examples/kerning_proofs.md).
296
+
297
+ ## TMetrics and TGlyph windows
298
+
299
+ `TMetrics.set_text()` uses a successful synchronous refresh from the public
300
+ `text_control.textChanged` signal. Observers that change font data or need to
301
+ retry a failed refresh after an earlier successful refresh must call `refresh()`
302
+ explicitly; `set_text()` does not add a trailing refresh after those observers.
303
+
304
+ Two modeless windows in `fontlabapp.fontui` follow and edit a FontParts-style
305
+ font. Inside FontLab they open on the current font through Fontport, so they
306
+ need the `fontport` extra; `fontui-shaping` adds HarfBuzz shaping. FontLab edits
307
+ and Undo/Redo refresh both windows within the follow delay. Their own writes are
308
+ recognised and do not refresh them twice.
309
+
310
+ `show_tmetrics(font=None, text=None)` (`fontlabapp.fontui.tmetrics`) sets text
311
+ or `/names` with features, direction, script and language. It draws the
312
+ shaped rows with metric lines, glyph boxes, sidebearing marks and kerning, and
313
+ reads out the selected glyph's advance, LSB and RSB and the pair before it.
314
+ Click or Left/Right/Home/End select; double-click opens the glyph in TGlyph.
315
+ The LSB, RSB, Width and Kerning fields write on Return. Alt+Left/Right nudges
316
+ the RSB and Ctrl+Alt+Left/Right the pair kerning by 1; Shift makes it 10. On
317
+ macOS the kerning keys are Control+Option or Command+Option with Left/Right.
318
+ A kerning write to a group pair names the group keys in the status line, for
319
+ example `Kerning public.kern1.A/public.kern2.V (group pair for A V): -50.`
320
+ Marks (GDEF class mark, or a glyph whose own width is 0 when the font has no
321
+ glyph classes) get no kern bar. The Master/layer selector targets glyph outlines and metric writes explicitly.
322
+ For a non-current native master, kerning display and edits are disabled; make
323
+ that master current in FontLab to edit its kerning. Each glyph write uses the
324
+ existing named Fontport transaction; native Undo/Redo remains unqualified.
325
+ Press Return in the text field to send literal Unicode text to the captured
326
+ FontLab Glyph-window block. External text changes refresh the window unless
327
+ there is an unsubmitted draft. Named/layer-specific symbol streams stay local.
328
+
329
+ `show_tglyph(font=None, name=None, layer=None)` (`fontlabapp.fontui.tglyph`)
330
+ shows one glyph on an explicit layer: outline, points and handles, start
331
+ point, components, anchors and metric lines. Zoom with the wheel, `+`/`-` or
332
+ `0` (fit); pan with space-drag or a middle-button drag. Click, Shift-click or
333
+ drag a rectangle to select points; drag them, nudge with the arrows (Shift: 10)
334
+ or press Delete. `O` toggles selected on/off-curve points while preserving their
335
+ coordinates; open endpoints and contours with no remaining on-curve point are
336
+ refused. `P` starts the pen tool: the first click places a pending point in
337
+ the preview only, the second click writes a two-point open contour, later clicks
338
+ add points, clicking the first point closes it, and Escape or a tool switch
339
+ discards a pending point. `V` returns to selection. Each gesture writes the
340
+ shown layer once. "Follow FontLab current glyph" tracks FontLab's glyph.
341
+
342
+ The Scriptmix menu tools Metrics > TMetrics Window and Contours > TGlyph Window
343
+ open these windows. Known limits:
344
+
345
+ - Live FontLab round-trip is unverified; offline tests use fakes.
346
+ - Optional `host=` injection provides text and follow notifications for tests;
347
+ native operation uses the existing Fontport explicit-layer edit boundary.
348
+ - The host write refuses glyphs with several, transformed or hinted shapes,
349
+ and fractional anchors.
350
+ - A UFO opened through Fontport cannot write glyphs with anchors (a Fontport bug).
351
+ - Each auto-repeated nudge is a separate undo step.
352
+ - Before the first zoom or pan, the view refits on each live change.
353
+ - Deleting points normalises segments: a cubic curve left with one handle
354
+ becomes a line; a quadratic curve keeps its single off-curve point.
355
+
356
+ ## Module map
357
+
358
+ The implementation is grouped by domain under `fontlabapp`:
359
+
360
+ | Package | Responsibility |
361
+ | --- | --- |
362
+ | `core` | Application context, host access, guards, histories, signals, completion, utilities and hotkeys |
363
+ | `qt` | Owned widgets, painting, events, layouts, tables, trees, calendars, images, search and completion |
364
+ | `glyphs` | Creation, copies, names, catalog, trees, Unicode, coverage and selection |
365
+ | `proof` | Reports, inspectors, proof tabs, numeric worksheets and text tools |
366
+ | `fonts` | Font information, style names and revision comparison |
367
+ | `masters` | Inspection, angles, switching, interpolation, layers, backgrounds and text comparison |
368
+ | `components` | Inspection, creation, writers, recipes and graph views |
369
+ | `anchors` | Inspection, writers, copying, coordinates, duplicate and cross-font tools |
370
+ | `contours` | Geometry, transforms, nodes, selection, diagnostics, SVG commands and point counts |
371
+ | `metrics` | Advance editing, sidebearings, worksheets, offsets, vertical metrics and alignment zones |
372
+ | `kerning` | Identity, batch editing, groups, symmetry, persistence and proof text |
373
+ | `guides` | Inspection, records, rewriting, perpendicular guides and editing |
374
+ | `features` | Feature code, class cleanup and category XML |
375
+ | `hints` | PostScript hint helpers |
376
+ | `fontui` | Browsers, editors, feature staging, designspace display and sequence canvas, including the editors moved here from Fontport in 1.2.0 |
377
+ | `plugins` | Core contracts, discovery and host lifecycle for reporter, filter, palette, tool and General Extensions |
378
+ | `objects`, `ui`, `menus`, `shortcuts`, `signals`, `qtsafe_api` | Additive lazy facades over the domain modules (see the [API map](src_docs/md/guides/api-map.md)) |
379
+
380
+ Feature packages keep host-free entry points in `model.py`; native dialogs and
381
+ views live beside them in `ui.py`, `views.py`, or other role-specific modules.
382
+ Import these modules directly in new code, for example:
383
+
384
+ ```python
385
+ from fly.ap.qt.safe import qt_list
386
+ from fly.ap.glyphs.names import model as names
387
+ from fly.ap.masters.inspect import model as masters
388
+ ```
389
+
390
+ The package root contains only `__init__.py`, `_legacy.py` and domain package
391
+ directories. Proof words and kerning texts are packaged in
392
+ `proof/random_proof_words.json` and `kerning/kerning_proof_texts.json`.
393
+ Tests, examples and captured shim output stay in their existing directories.
394
+
395
+ ### Migration from flat module names (issue 205)
396
+
397
+ All 382 reviewed old module names remain importable through `fontlabapp._legacy`. Old imports such as
398
+ `fontlabapp.qtsafe`, `from fontlabapp import qtsafe`, `fly.ap.qtsafe` and
399
+ `importlib.import_module("fontlabapp.qtsafe")` resolve to the same module object
400
+ as `fontlabapp.qt.safe`. Existing monkeypatch targets therefore affect the
401
+ canonical implementation. New code should use the new domain paths.
402
+
403
+ The six old names `anchors`, `components`, `guides`, `hints`, `masters` and
404
+ `proof` also name domain packages. Their packages lazily expose the moved
405
+ implementation's attributes and forward model writes and deletions, including
406
+ private monkeypatch targets and patch undo. Each model is a separate normal
407
+ module with its canonical name, file and import metadata. The packages retain
408
+ their own children, metadata and resource access.
409
+ No child implementation or PythonQt module is loaded just by importing a
410
+ domain package. Root public exports remain in place; `fontlabapp.fontui` also
411
+ received the Fontport editors and active-font feature helpers in 1.2.0.
412
+ `application`, `hotkey` and `utils`, including their old child module names,
413
+ are aliases under `core`.
414
+
415
+ The Vanilla tombstone is importable for alias identity, but requesting
416
+ `VanillaSession` still raises its Glyport migration error and imports no peer.
417
+
418
+ The retained stdlib-only [migration tool](tools/restructure.py) and
419
+ [reviewed mapping](tools/fontlabapp-mapping.json) document the historical
420
+ one-off migration that produced this layout. They are migration evidence,
421
+ not a maintenance command to rerun on the current source tree.
422
+
423
+ ## Plugmix
424
+
425
+ Tool snapshots now carry optional immutable package/glyph/layer/owner-master
426
+ identity independently of content equality/hash. `Tool.needs_components`
427
+ defaults to false; an opted-in Tool receives decomposed components consistently
428
+ in its event context and painter. `ToolContext(services)` and its no-argument
429
+ `snapshot()` remain compatible. Unknown source identity is `None`, allowing
430
+ inspection clients to clear stale overlays without reading native state in
431
+ `marks()`. Native behavior of the new inspection Tools remains unqualified.
432
+
433
+
434
+ `fontlabapp.plugins` supplies the FontLab 9 plugin core. The companion Plugmix
435
+ Extensions pack supplies reporter overlays, a filter, a palette, a tool and a
436
+ General command; no concrete examples are bundled in App.
437
+ It uses PythonQt and native per-canvas painters when available, with
438
+ `fontlabapp.qt.painting.editor.EditorPainters` on older builds. It imports no
439
+ PySide2 and no Glyphs emulation. Importing it does not need FontLab.
440
+
441
+ Install it once per FontLab session from your own `initScript.py`:
442
+
443
+ Before startup, separately install
444
+ [Fly 1.3.0 or later and its matching providers](https://github.com/fontlabcom/fontlab-fly#install)
445
+ in the same interpreter; App's source installer does not supply or check Fly.
446
+
447
+ ```python
448
+ try:
449
+ from fly.ap.plugins import install; install()
450
+ except Exception as error: print(f"Plugmix startup: {error}")
451
+ ```
452
+
453
+ App's `install.vfpy` creates one marked startup block and preserves existing
454
+ `initScript.py` bytes. Reinstallation does not duplicate it; App uninstall
455
+ removes only that block. This is tested with temporary directories, not an
456
+ owner installation.
457
+
458
+ At launch, the core resolves FontLab's actual user-data folder and scans
459
+ `Extensions/reporters`, `filters`, `tools`, `palettes` and `general`. Bundles use
460
+ `Name.fontlabReporter` (or the matching kind suffix), with `plugin.json` fields
461
+ `id`, `name`, `kind`, `version`, `entry` (`module:Class`) and `min_app_version`.
462
+ Version fields use three-part release numbers. Invalid or incompatible bundles
463
+ are logged and skipped. Sorted discovery preserves class identity on rescan.
464
+ Python source changes require a host restart; rescanning does not reload code.
465
+ New menu entries append after Hide All on rescan; restart restores sorted order.
466
+ See the companion pack's `Extensions/README.md` for a minimal example.
467
+
468
+ View > Reporters provides per-reporter toggles and Hide All. Window > Panels >
469
+ Reporters opens a nonmodal panel reflecting the same choices. Plugin palettes
470
+ use Window > Panels; tools use Tools > Tool and the existing native toolbar
471
+ registration seam. FontLab 9 placement, synchronization and toolbar behavior
472
+ still require native verification. Plugmix's Show Reporters action opens this
473
+ panel; individual reporter launcher scripts are replaced by bundles.
474
+
475
+ Choices remain in `Data/fontlab-plugmix.json` under FontLab's data root
476
+ (`enabled`, `enabled_filters`, `enabled_palettes`, `enabled_tools`,
477
+ `enabled_general`, last-used `params`). `install(config_dir=..., extensions_dir=...)`
478
+ provides explicit locations. `fontlabapp.plugins.boot.uninstall()` removes owned
479
+ runtime resources while retaining saved choices. Filters, tools and General
480
+ plugins default enabled; reporters and palettes start hidden unless saved.
481
+ Installing the core itself does not edit font data; explicit filter and palette
482
+ actions can make the edits described below.
483
+
484
+ | Kind | Plugin | Behaviour |
485
+ | --- | --- | --- |
486
+ | Filter | Delete Small Paths | Deletes closed contours whose flattened path or bounds area is below the threshold (default 400 units²) in selected glyphs of the current master, in one geometry Undo step. Skips shared or transformed outlines and automatic layers. |
487
+ | Palette | Step and Repeat | Duplicates selected contours of the active glyph `count` more times, each shifted by another (dx, dy), in one geometry Undo step. Refuses shared or transformed outlines and two zero offsets. |
488
+ | Tool | Smart Select | Drag a rectangle to select whole contours touched by any node; Shift toggles. Selection only; it never changes outlines. |
489
+ | General | Zoom to Selection | Fits the active glyph's selected nodes in the canvas with a margin. |
490
+
491
+ Native Tool activation, drag mapping, overlay lifetime, General actions and
492
+ font events were verified in FontLab 9. Shortcut handling and keyboard cursor
493
+ mapping were later corrected from native findings and still need an in-app
494
+ recheck. The palette refresh key reads the glyph modification timestamp and
495
+ node selection; confirm that edits outside Plugmix advance that timestamp in
496
+ your build.
497
+
498
+ | Reporter | Overlay |
499
+ | --- | --- |
500
+ | Duplicate Anchor Rings | Red/yellow rings for every anchor pair less than one unit apart |
501
+ | Node Indexes | Contour index beside every node |
502
+ | Selected Node Coordinates | Coordinates beside selected nodes |
503
+ | Two Point Distance | Segment, length and angle for exactly two selected nodes |
504
+ | Off-curve Handles Outside Bounds | Handles beyond the on-curve bounding rectangle |
505
+ | Center Lines | Advance/2, x-height/2 and cap-height/2 lines |
506
+ | Vertical Metrics | Labelled ascender, descender, x-height, cap-height and baseline |
507
+ | Angled Handles | Rings on handles off the horizontal, vertical and italic axes |
508
+ | Crosshair | Long guides through selected nodes; no mouse tracking |
509
+ | Tops and Bottoms | Rings and y labels at the highest and lowest on-curves |
510
+ | Segment Length | Straight and flattened curve lengths |
511
+ | Glyph Focus | Shade outside the advance box between descender and ascender |
512
+ | Emphasise Selected Handles | Accent lines and rings for handles next to selected nodes |
513
+ | Anchor Cloud | Names and positions of the current glyph's anchors (local anchors only) |
514
+ | RSB Line | Advance boundary with RSB and LSB labels |
515
+ | Unitizer | Vertical grid at UPM / 18 |
516
+ | Nodes Close to Zones | Rings on on-curves near zone edges or metric heights |
517
+ | Imprecise Italic Angle | Straight segments within 2° of the slant but not on it |
518
+ | Smooth Node Angles | Handle-angle mismatch and length ratio at smooth nodes |
519
+ | Node Count | Total on- and off-curve nodes; components excluded |
520
+ | All Angles | Angle of each straight segment from vertical, mod 180°; components excluded |
521
+ | Smart Plumblines | Centre lines through each contour's and the selection's extents; components excluded |
522
+ | Show Stems | Rings and span widths along a scan line at half x-height; components excluded |
523
+ | Speed Punk | Colour-ramped curvature comb; components excluded |
524
+ | Show Rotated | Outline turned 180° about its bounds centre; components excluded |
525
+ | Blindfold | Opaque blocks hide the strip from 70 units under the descender up to the baseline, and everything from x-height up to 70 units over the ascender (`band = "cap_height"` for cap height); the band between baseline and that height stays visible |
526
+ | Show Label Color | Bar in the glyph's mark colour under the descender (`placement` baseline or body), slanted by the italic angle; layer marks are not distinguished |
527
+ | Show Glyphs In Label Color | Glyph and component outlines filled in the mark colour, counters open |
528
+ | Show Character | The glyph's first Unicode as 100 px text above the glyph; hidden below 20% zoom; no base-name lookup |
529
+ | Rekha Viewer | Head-line bar for Devanagari, Bengali and Gurmukhi letters, moved by `rekha` and `rekha_stop` anchors; suffixed or interrupted anchors are not supported |
530
+ | Show Export Status | Red cross over the body of a glyph that is set not to export |
531
+ | Show Background | Outlines of the glyph's background layer filled in pale blue (alpha 0.3), counters open; background components are not shown |
532
+ | Color Toner | Each component filled in translucent black (`darken = 0.15`, wrapped into 0..1) so composed parts stand out from drawn outlines |
533
+ | Show Global Glyph | Contours of a helper glyph named `_global` behind every other glyph: closed paths orange outline with faint fill, open paths blue outline with faint fill; its components are not shown and it is not drawn on itself |
534
+ | Show Siblings | Look-alike Latin letters (c/e/o, b/p, d/q/u, h/l/n/r/a) filled in green behind the glyph, fainter in larger groups; Latin groups only |
535
+ | Show Kerning Group Reference | Members of the glyph's left kerning class drawn on top of each other as small (0.2) teal silhouettes 150 units left of the glyph, and of its right class 150 units right of it, baseline at half x-height; opacity is 0.8 divided by the class size (floor 0.04), so crowded classes read denser. Left-to-right text only. Very large classes are truncated: at most 32 glyphs are requested, alternating left and right |
536
+ | Kern Indicator | Displayed kerning of the pairs touching the glyph, above each junction (orange positive, blue negative); shown only between 3% and 90% zoom |
537
+ | Show Interpolation | For each other compatible master, the glyph blended halfway (`factor = 0.5`) node by node between the shown layer and that master, filled in dark magenta (alpha 0.25), counters open; components are not drawn (neither the shown layer's nor the masters'); no instances, anchors or recentering, and masters with the same coordinates are skipped |
538
+ | Stem Thickness | Wherever the mouse is (no proximity limit), a line across the outline from the outline point nearest it, perpendicular to it, to the nearer crossing more than 1 unit away, labelled with its rounded length; nothing at a corner where the ray runs along the outline; own contours only, no guide command or modifier key |
539
+
540
+ Center Lines, Vertical Metrics, Crosshair, Tops and Bottoms, RSB Line,
541
+ Unitizer, Node Count, Smart Plumblines, Show Stems, Speed Punk, Show Rotated,
542
+ Show Label Color, Show Glyphs In Label Color, Show Character, Rekha Viewer,
543
+ Show Background, Color Toner, Show Global Glyph, Show Siblings, Show Kerning
544
+ Group Reference and Show Interpolation draw under the native glyph layer when native
545
+ canvas painters are available; the rest draw over it, and on older builds all
546
+ draw over the canvas.
547
+ The original seven reporters, native canvas drawing and all 18 pre-revision
548
+ reporters were checked in FontLab 9; Glyph Focus and the revised slant and unit
549
+ grid have offline coverage only. Node Count, All Angles, Smart Plumblines, Show
550
+ Stems, Speed Punk, Show Rotated, Blindfold, Show Label Color, Show Glyphs In
551
+ Label Color, Show Character, Rekha Viewer, Show Export Status, Show Background,
552
+ Color Toner, Show Global Glyph, Show Siblings, Show Kerning Group Reference,
553
+ Kern Indicator, Show Interpolation and Stem Thickness have offline test coverage
554
+ only.
555
+
556
+ Write a reporter by subclassing `fontlabapp.plugins.Reporter` with a unique
557
+ `name`, a `title` and a pure `compute(snapshot)` that returns `Mark` objects
558
+ (`ring`, `line`, `polyline`, `polygon`, `text`) in glyph units; pixel sizes are
559
+ view pixels. Set `layer = "background"` to paint under the glyph layer.
560
+ An error raised by `compute` or `requested_glyphs` goes to the error sink
561
+ once per stable reporter name and actual exception class while its key remains
562
+ in the shared 256-entry cache. Changing the error text or recreating the same
563
+ named reporter does not reopen a retained key. Eviction permits another report;
564
+ closing either backend resets the shared history. The first exception is passed
565
+ unchanged, and sink failures remain contained.
566
+ Every snapshot also carries `identity` (name, Unicodes, raw mark, mark RGB,
567
+ export flag) and `view.px_per_unit`; either is None when it cannot be read,
568
+ and the read error goes to the plugin error sink once. Mark RGB uses HSL lightness
569
+ 0.65, so it differs slightly from FontLab's flag swatches (inferred, unverified
570
+ natively). Offline coverage only.
571
+ Opt-in class flags add costlier data: `needs_components` gives `components`
572
+ (base name, transform and decomposed base contours, nested up to 8 levels),
573
+ `needs_background` gives `background` (the mask's contours, `()` when empty,
574
+ None when there is none), and `needs_masters` gives `masters` (each master's
575
+ contours, anchors, advance and a `compatible` flag that compares contour
576
+ count, node count per contour and on/off-curve pattern with the shown layer,
577
+ ignoring components and open/closed state). Components and masters are cached
578
+ per glyph revision and shared by all reporters; components also re-check
579
+ their base glyphs. Master outlines may lag until the foreground glyph's
580
+ `lastModified` moves, which is unverified natively. The background is read on
581
+ every paint. An empty component layer means the master that owns the shown
582
+ layer. Metrics also come from that master. Zones and the italic angle need a
583
+ master switch to read, so when the shown layer belongs to another master the
584
+ zones are empty and the italic slant is the current master's.
585
+ Skipped components and failed reads go to the error sink once.
586
+ Offline coverage only.
587
+ `needs_kerning` gives `kerning_groups` (the classes used when the glyph is a
588
+ pair's first member, `left`, and second member, `right`, with their
589
+ members), read on every paint because a class edit may not move the glyph's
590
+ timestamp. Override `requested_glyphs(identity, kerning_groups=None)` to name up to 32 other
591
+ glyphs; `others` maps each one that exists to its own unselected contours
592
+ (components skipped), cached per requested glyph's revision. Both use the
593
+ master that owns the shown layer. `needs_neighbours` gives
594
+ `view.neighbours`: the previous and next glyph on the same line as
595
+ `(name, kerning)`, kerning in font units as displayed (0 when kerning
596
+ processing is off). Which glyph stores a pair's kerning is inferred,
597
+ unverified natively. Neighbours need the native canvas painter backend; with
598
+ EditorPainters, or when the view scale is unusable, they are None.
599
+ Offline coverage only.
600
+ `needs_mouse` gives `view.mouse`, the cursor in the glyph's own units
601
+ (`canvas.mousePosition()` mapped back through the glyph and text-block
602
+ transforms), or None when the map is not invertible. While any enabled
603
+ reporter asks for it, one event filter watches the active glyph window and
604
+ flushes (`updateScreenRect` plus `updateViewport`) at most once per 16 ms after
605
+ mouse moves, ending with a flush after the last move. The filter goes when the last such reporter is disabled, when the
606
+ active canvas changes or closes, and on `uninstall()`. Only the watched canvas
607
+ gets a mouse; with EditorPainters it is None. Whether moves reach the filter
608
+ under every tool is unverified natively.
609
+ Offline coverage only.
610
+ The legacy `fontlabapp.plugmix` entry-point group remains supported. New
611
+ extensions can use bundles without packaging or installation into site-packages.
612
+
613
+ ## Additional read-only reports
614
+
615
+ `kerning_persistence_api()` / `kerning_persistence_dialog_type()` audit explicit current/all-master kerning, retaining zero and exact values. The measured FontLab 9.0.9784 VFJ load check flags values outside ±2×UPM; it does not guarantee every aspect of persistence. The audit filters rows and changes no font selection.
616
+
617
+ `revision_compare_api()` / `revision_compare_dialog_type()` compare two explicitly chosen open fonts and masters: glyph/master/layer presence, advance, ordered raw contour geometry, anchors and components. Raw node flags include selection and appear separately. This reports named fields, not complete semantic font equality. Both modeless panels validate sources before displaying results and own Close/ signal cleanup. This isolated milestone still needs built-artifact/native release acceptance; the broader issue111 work remains open.
618
+
619
+ Modeless panels opened with `scripting.show_script_dialog` keep their existing window type and controls and request `WindowStaysOnTopHint`, matching TypeRig panel priority. Twelve panel constructors also set priority before fallible setup so their retained error windows do not bypass it. An existing panel that refuses to close keeps its flags. Independently launched panels and modal child dialogs retain their own policies; native stacking acceptance remains pending.
620
+
621
+ Owned Find Files directory/progress dialogs, Image Viewer file/print/message dialogs, and Same Kerning Groups diagnostics also request this priority. Their existing parents and modal/nonmodal policies remain; native child stacking and print-panel acceptance remain pending.
622
+
623
+ Modeless panels opened with `scripting.show_script_dialog` keep their existing window type and controls and request `WindowStaysOnTopHint`, matching TypeRig panel priority. An existing panel that refuses to close keeps its flags. Independently launched panels and modal child dialogs retain their own policies; native stacking acceptance remains pending.
624
+
625
+ Owned Find Files directory/progress dialogs, Image Viewer file/print/message dialogs, and Same Kerning Groups diagnostics also request this priority. Their existing parents and modal/nonmodal policies remain; native child stacking and print-panel acceptance remain pending.
626
+
627
+ ## Write boundaries and acceptance
628
+
629
+ History helpers preflight before mutation, initialize history, mutate, stamp, notify once and read back. `retain=` enrolls removed component objects with deep history. Failures after history starts raise `PartialWriteError` with Undo guidance; that guidance is not a guarantee of complete recovery.
630
+
631
+ Rename, Unicode and geometry edits refuse automatic-layer owners and automatic composite bases; explicit consent can allow supported base edits. Metadata edits refuse automatic-layer owners. Writers disclose queued ids and the possible modification-date changes (FontLab issue 8537); `history.commit` defaults to `settled=False` and always captures the queue once before writing. Its result supports `result["pending_updates"]` and `result["pending_note"]` (empty when no ids). Writers carry both fields to their results; panels append the stored note with `edit_guards.append_note`. Legacy scalar writers can fill a `disclosure` output dictionary or print the disclosure for console use. Use `edit_guards.pending_updates(native: Any = None) -> tuple[int, ...]` before a write and `pending_note(ids: Sequence[int]) -> str` in its status. `require_settled` remains an explicit opt-in refusal. `history.commit`, `glyph_creation.create_glyphs` and the eight App writers that notify directly call `edit_guards.require_history_scope`: with a Glyph window as the active canvas they refuse ("Switch to the Font window first…") unless every owner glyph (matched by font id and glyph name) is in that canvas and no glyph is new (FontLab issue 8573). Glyport and Fontport host notifiers are not guarded yet. Never notify an automatic layer, clear the queue or normalise unrelated dates. Existing-anchor moves to (0, 0) are refused because of a measured Redo defect. Clones must retain raw node flags, names and shape notes.
632
+
633
+ Font-level master writes use `font_history.commit_masters(package, title, {master: MasterEdit(save, write, read, verify, restore)})`. It refuses off the GUI thread and unless a Font window of the font is active (no Glyph window canvas; text "Activate the Font window before editing font masters."). It calls `checkInitHistoryState(0)` on the package and `mastersContainer()`, writes and reads back each master after `setMaster(name, False)`, restores the original master and sends ONE `notifyChangesApplied(title, [package, container], False)`. The result has `values`, `pending_updates` and `pending_note`. Unlike `history.commit`, a failure before the notification (also an interrupt, which is then re-raised) restores every written master and the original master and notifies nothing: `RolledBackError` (a `ValueError`) when the restore holds, `UnrestoredError` (a `PartialWriteError` with no Undo advice) when it does not or when the notification fails. Callers: `master_metrics.write_master_metrics(package, {master: {field: value}}, title)` for `ascender`, `descender`, `xHeight`, `capsHeight` and `lineGap` (`capHeight` is an alias of `capsHeight`; unknown fields and non-finite values are refused; double read-back tolerance 1e-9), and `zone_native.backend()`, the production `zone_editor.Backend` (Font Info's `convertZonesToGuidelines` + `updateZonesFromGuidelines`; the thread and Font-window guards run before any master switch; empty or repeated names and zero-width rows of the other kind raise `zone_native.RowRefusal`, and `Editor.add` names new rows as FontLab does (`T: 500`, `T: 500.1`); a zone rollback re-creates the zone guides with new ids and says so; a read-back gap after the commit raises `history.unstored_error`; it does not use the held serializer, fl#8554). The Alignment Zones panel stays usable after a `RowRefusal` or `RolledBackError` and locks after a stale source, `UnrestoredError` or a read-back gap. **Known FontLab defect:** after Undo or Redo of such a step, both masters show only the zone guidelines, not the six font-metric guidelines, until `updateFontMetrics()` runs or the font is reopened; the saved file is correct (9.0.9790, fl#8574). `select_glyphs` and `master_switcher.switch` call no `UpdateAll()`: it queued glyph ids and changed nothing visible.
634
+
635
+ Glyph creation uses `fontpr.set_glyph(create=True)` and checks the created result; existing names are refused before the call. Components for a new glyph travel in its creation data. Adding components to existing layers requires a qualified plain component prototype. Creation can use multiple native steps; do not promise one Undo for the whole workflow. Unmeasured automatic-layer rebuilding stays guarded.
636
+
637
+ Earlier releases have bounded native receipts in CHANGELOG. Those receipts do not qualify later shared writers or the full migration. Zone serializer ABI/payload preservation remains open; the route-A zone and metrics writers have no native receipt yet. Current text, NUL/IME, printer/OS, cache/history, font preservation and UI lifecycle holds are listed in [TODO](TODO.md). Native proof requires installed artifacts in owned FontLab fixtures, exact source hashes, complete state comparison, real controls, Undo/Redo and saved reopening for writers. Source and standalone Qt checks do not qualify native behavior.
638
+
639
+ ## Moved in 1.2.0
640
+
641
+ App never imports Glyport and imports Fontport only inside `fontlabapp.fontui`,
642
+ behind the `fontport` extra. FontLab editors and active-font feature helpers
643
+ belong in App. Fontport owns
644
+ DesignSpace/UFO/fontParts and its FontLab backend. Install
645
+ `fontlab-fontlabapp[fontport]` for these editors; native operations still need
646
+ FontLab's PythonQt and existing event loop.
647
+
648
+ | Old | Current home | Compatibility |
649
+ | --- | --- | --- |
650
+ | `fontlabapp.vanilla.VanillaSession` / `fontlabapp.core.legacy.vanilla.VanillaSession` | `fontlab_glyport.ui.session.VanillaSession` | Session access/from-import raises `ImportError`; module imports remain available |
651
+ | `fontlab_fontport.ui` factories/modules | `fontlabapp.fontui` matching names | Old access raises `ImportError` with the new home |
652
+ | `fontlab_fontport.feature_blocks` | `fontlabapp.fontui.feature_blocks` | Deprecated lazy forwarder; Fontport's `fontlab` extra supplies App |
653
+ | `fontlabapp.core.scripting.read_feature_blocks`, `fontlabapp.core.scripting.write_feature_blocks` | `fontlabapp.fontui.feature_blocks` | Restored lazy function wrappers |
654
+ | extras `[fontedit]`, `[fontsequence]` | `[fontport]` | Install the current extra |
655
+ | `fontlabapp._qtsafe` | `fontlabapp.qt.safe` | Old import raises `ModuleNotFoundError` |
656
+ | text match on "main window not found" | `fontlabapp.qt.safe.MainWindowNotFound` | Same text and `RuntimeError` base |
657
+
658
+ Example: `from fontlab_fontport.ui import kerning_editor` becomes `from fly.ap.fontui import kerning_editor`; `import fontlab_fontport.ui.kerning` becomes `import fly.ap.fontui.kerning`.
659
+
660
+ The lazy factories on `fontlabapp.fontui` preserve their signatures:
661
+
662
+ | Factory | Purpose |
663
+ | --- | --- |
664
+ | `font_info_editor(font, parent=None, on_apply=None)` | Stage font information |
665
+ | `groups_editor(font, parent=None, on_apply=None)` | Edit groups |
666
+ | `kerning_editor(font, parent=None, on_apply=None)` | Inspect/edit kerning |
667
+ | `transform_editor(font, name=None, parent=None, on_change=None, on_invalidate=None)` | Preview affine glyph transforms |
668
+ | `batch_panel(recipe, parent=None, on_finish=None, python=None)` | Run a UFO recipe in a child interpreter |
669
+ | `glyph_sequence(font, parent=None, on_select=None)` | Preview placed glyph sequences |
670
+
671
+ Importing the facade loads neither Qt nor Fontport. Call a factory inside
672
+ FontLab, retain the handle, and call `close()` when finished. Batch requires an
673
+ installed Python 3.11+ with Fontport; pass `python=` or set
674
+ `FONTLABAPP_BATCH_PYTHON`. See [the transform example](examples/font_transform.py).
675
+ `fontui.feature_blocks.read_feature_blocks(package)` reads ordered VFJ source;
676
+ `write_feature_blocks(package, expected, updated, references=..., undo_name=...)`
677
+ checks the active font, source snapshot and glyph references, restores the master,
678
+ and returns `{"changed": 0 or 1}`. Unexpected host failures can leave partial changes.
679
+
680
+ ## Demo scripts
681
+
682
+ `Scripts/<Category>/<Tool> Demo.py` holds small GUI demos of the App modules, one menu entry each (146 in 15 categories). `install.vfpy` copies them into FontLab's Scripts menu; the `Demo.py` suffix keeps them apart from Fly's Scriptmix scripts when both are installed. Demos import App through `fly.ap` and keep native imports lazy inside `main()`. They write nothing by themselves: no font, selection, history, preference, Output or clipboard, and no menu action is triggered. The exceptions start with your own click: the Copy buttons of Glyph Map and Common Glyphs write the clipboard; Proof Tabs, Kerning Proofs and Text Filter open a text tab only after you confirm or tick a box; Image Viewer's Print can write a PDF to a path you pick; and Text Holder, Text Filter and Image Viewer keep files in fixed `fontlabapp-demos/<demo>` folders under the system temp directory. Each script's Safety paragraph gives the details. `tests/test_demo_scripts.py` checks every file's layout, header and Fly imports by AST; `tests/_demo_support.py` runs a demo offline under stubbed natives. Four demos show core features in use rather than by name: Shim Generator (`core.shimgen`), Native Tabs (`core.native_tabs`), History Preflight (`core.history`) and Owned Lifetime (`core.completion` and the `fontlabapp.ui` factories); the last one adds a small panel to the main window (it may float) and removes it on close. Native FontLab acceptance of the demos is pending. `tests/test_demo_scripts_coverage.py` fails when a `fontlabapp.<domain>.<feature>` module has no demo naming it.
683
+
684
+ Named but not run, and why. The coverage test counts a module that a demo names, so some are named or summarised without running, for these reasons:
685
+
686
+ - `components.panel`, `contours.panel`, `anchors.panel` and `guides.rewrite` hold the writer panels of the component, contour, anchor and guide scripts, and `contours.copy` and `anchors.edit` copy contours and run point transactions. Their buttons change glyphs, so Component Writers, Contour Panels, Anchor Plans and Guide Plans compute the plans on made-up data and only name the panels.
687
+ - `core.hotkey`: its macOS `HotkeyManager` creates a session-wide Quartz event tap and needs the Accessibility permission, and on Windows it raises `NotImplementedError`. A demo would register global hotkeys, so Signals And Hotkeys only reports whether the backend can load.
688
+ - `core.legacy`: `examples` launches relocated scripts with `runpy`, and `vanilla` is a tombstone that raises `ImportError` naming Glyport. Core Utilities shows their summaries.
689
+ - `fontlabapp.ui.actions`, `canvas`, `dialogs`, `panels`, `widgets` and `windows` re-export objects of `qt` and `core`. Owned Lifetime runs `create_widget`, `create_panel` and `create_dialog` through that facade; the rest need live native objects or act on FontLab (`actions` triggers menu items, `canvas` registers painters on the glyph editor, `windows` wraps native glyph and preview windows), so Toolkit Reference lists their `__all__` only.
690
+
691
+ Six demos open the same window as a Scriptmix tool, so with both installed, running one closes the other: Glyph Map and Character Map, Glyph Tree and Glyph Metadata Tree, Component Graph (App) and Component Graph (Scriptmix), Spacing Offset and Sidebearing Offset Preview, Find Files and Find Font Files, Image Viewer and Reference Image Viewer.
692
+
693
+ - Anchors: Anchor Cleanup, Anchor Plans, Anchor Rings, Anchors Inspect
694
+ - Components: Component Graph, Component Recipes, Component Writers, Components Inspect
695
+ - Contours: Contour Math, Contour Panels, Contour Plans, Contour Reports, Contour Samples
696
+ - Features: Feature Categories, Feature Classes, Feature Code, Features Editor
697
+ - Font Editors (Fontport extra): Batch Panel, Designspace Panel, Font Browser, Font Info Editor, FontParts Features Editor, FontParts Kerning Editor, Fontui Helpers, Glyph Browser, Glyph Sequence, Groups Editor, Transform Editor
698
+ - Font Info: Font Info Panel, Revisions, Style Names
699
+ - Guides: Guide Plans, Postscript Hints
700
+ - Kerning: Kerning Batch, Kerning Cutoff, Kerning Editor, Kerning Group Proof, Kerning Identity, Kerning Inspect, Kerning Persistence, Kerning Proofs, Kerning Selection, Kerning Symmetry
701
+ - Masters: Background Samples, History Preflight, Interpolation Blend, Italic Angles, Layers Samples, Master Reports, Master Switcher, Master Text, Masters Inspect
702
+ - Metrics: Alignment Zones, Canvas RSB, Master Writer, Metrics Panel, Spacing Offset, Spacing Worksheet, Tabular Width, Vertical Metrics
703
+ - Names: Case Coverage, Common Glyphs, Editable Glyph Tree, Glyph Calendar, Glyph Catalog, Glyph Creation Explained, Glyph Map, Glyph Name Entry, Glyph Names Report, Glyph Tree
704
+ - Proof: Extrema Proof, Native Tabs, Numeric Worksheets, Proof Painters, Proof Tabs, Text Filter, Text Holder
705
+ - Reports: Font Reports, JSON Report
706
+ - Utilities: Application Info, Core Utilities, Host Menus, Shim Generator, Signals And Hotkeys
707
+ - Widgets: Find Files, Image Viewer, Owned Lifetime, Table Filter, Toolkit Reference, Widget Gallery
708
+
709
+ ## Testing
710
+
711
+ Issue 210's reporter regression fixtures also require the sibling
712
+ `../fontlab-python-plugmix` source checkout, including its `Extensions` bundles
713
+ and `tests/bundle-map.json`. Tests select that path explicitly; production
714
+ discovery never searches a sibling checkout.
715
+
716
+ Run from this repository. Set `FONTLAB_TEST_SCRATCH` to an existing writable directory on your external scratch volume. Use a fresh writable cache and an existing writable TMPDIR there. uv needs network access for packages not cached. Build from reviewed Git history so hatch-vcs supplies the genuine version required by the local Fontport/Glyport dependency floor. Do not reuse a cache containing App metadata from another build.
717
+
718
+ ```sh
719
+ : "${FONTLAB_TEST_SCRATCH:?Set FONTLAB_TEST_SCRATCH to your external scratch directory}"
720
+ export UV_CACHE_DIR="$FONTLAB_TEST_SCRATCH/app-doc-check-cache"
721
+ export TMPDIR="$FONTLAB_TEST_SCRATCH/tmp"
722
+ mkdir -p "$UV_CACHE_DIR" "$TMPDIR"
723
+ export PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
724
+ uv venv --python cpython-3.11-macos-aarch64-none "$TMPDIR/app-venv"
725
+ uv pip install --python "$TMPDIR/app-venv/bin/python" -e '.[test]'
726
+ uv pip install --python "$TMPDIR/app-venv/bin/python" -e ../fontlab-fontport -e ../fontlab-glyport
727
+ uv pip install --python "$TMPDIR/app-venv/bin/python" --no-deps -e ../fontlab-fly
728
+ "$TMPDIR/app-venv/bin/python" -B -m pytest -q -p no:cacheprovider
729
+ ```
730
+
731
+ Install Fontport and Glyport with their dependencies (defcon, fissix, fontpens, glyphsLib); without them two tests fail. The tests of the FontParts editors (`tests/test_ui_*.py`, `tests/test_cov_ui_*.py`) call `pytest.importorskip("fontlab_fontport")`: they skip, not fail, when Fontport is absent, so a plain `./test.sh` run does not exercise them. `./test.sh` installs the sibling Fontport and Glyport checkouts editable and puts the sibling Fly source on PYTHONPATH when they exist, so it runs the whole suite; the test extra itself does not list Fontport.
732
+
733
+ The plain test-extra environment previously gave 6240 passes and three failures because Fly was missing. `./test.sh` uses `uv run --extra test` with editable sibling Fontport/Glyport when available and sibling Fly on PYTHONPATH; the explicit environment above also verifies an installed Fly. Use the explicit command for the full suite. pytest reads `tests/` and adds `src` to its import path.
734
+
735
+ The source distribution includes the five unchanged files in
736
+ `generated/fontlabapp_shim` for the documentation and delivered-shim replay
737
+ checks; this fixture is separate from the installed runtime. A fresh extraction
738
+ must pass the complete suite with the same peers and `-B`, without precompiling
739
+ the package. Bytecode caches are transient hidden entries, while the required
740
+ private `_legacy` source must still exist and have its exclusion reason.
741
+ For ordinary-wheel verification, install the wheel and qualified peer wheels
742
+ in a fresh environment, unset `PYTHONPATH`, and add `-o pythonpath=` to the
743
+ pytest command from the extracted sdist. This selects the installed parent
744
+ runtime; some tests deliberately inspect or import extracted source in child
745
+ processes. Keep a separate `python -I -B` installed-only smoke check from an
746
+ unrelated directory, with import-origin and wheel RECORD verification.
747
+
748
+ The separate `tests_docs/` suite checks the generated documentation and immutable build workflow. With the same host exports, run the README migration contract and public-surface/dependency checks:
749
+
750
+ ```sh
751
+ uv run --python cpython-3.11-macos-aarch64-none --no-project --with-editable '.[test]' python -B -m pytest -q -p no:cacheprovider tests/test_public_surface.py tests/test_package_boundaries.py tests/test_tombstones.py
752
+ uv run --python cpython-3.11-macos-aarch64-none --no-project --with-editable '.[test]' python -B -m pytest -q -p no:cacheprovider tests/test_public_surface.py::test_readme_when_read_then_moved_table_names_every_tombstone
753
+ uv run --python cpython-3.11-macos-aarch64-none --no-project --with ruff==0.14.10 ruff check --no-cache --select F821 src tests Scripts
754
+ ```
755
+
756
+ The lint command checks undefined names; there is no configured full lint gate. Offline tests cover Python logic and doubles. Standalone Qt uses a different binding. Neither establishes native FontLab acceptance.
757
+
758
+ ## Licence
759
+
760
+ Licensed under Apache-2.0; all Python sources in `fontlabapp.fontui` also carry Apache-2.0 SPDX identifiers (Issue 204). Bundled third-party code keeps its MIT and BSD-3-Clause notices, and the external native UI example keeps its [proprietary licence](examples/LICENSE-native-ui), so the distribution expression is `Apache-2.0 AND MIT AND BSD-3-Clause AND LicenseRef-Proprietary`. See [LICENSE](LICENSE), [NOTICE](NOTICE) and [MIGRATION.json](MIGRATION.json) for source-specific terms and attribution. Retained legacy sources and historical receipts do not grant permission to copy unlicensed third-party bodies into public artifacts.
761
+
762
+ Raise Ascender reports queued native glyph updates instead of refusing every edit.
763
+ FontLab may change those glyphs’ modification dates (issue 8537); the panel retains
764
+ that warning even if the edit fails. Source and history-scope checks still apply.
765
+ Complete native preservation remains unverified.
766
+
767
+ Perpendicular Guides discloses queued glyph IDs and FontLab issue 8537’s possible
768
+ modification-date changes before writing. A nonempty queue alone does not refuse
769
+ the action. Source/history guards remain; native preservation is unverified.
770
+
771
+ Perpendicular Guides retains ordinary append and finalization failures together
772
+ in `fontlabapp.core.history.glyphs.PartialWriteError.errors`. A failure does not imply rollback;
773
+ inspect the font and Edit > Undo before another write. Native qualification remains open.
774
+
775
+ `select_glyphs(add=True)` adds missing glyph names without clearing existing
776
+ selection. Already-selected glyphs, including partial duplicate chart-cell
777
+ selections, are untouched. If a native addition fails, earlier additions remain
778
+ and the original exception propagates. Replacement mode still clears first.
779
+
780
+ ## Plugin compatibility (Issue 210)
781
+
782
+ `fontlabapp.plugins` is the core namespace. `fontlabapp.plugmix` forwards to it
783
+ for one release and emits `DeprecationWarning`; migrate imports now. Concrete
784
+ examples belong to the companion Plugmix Extensions pack. Source tests establish
785
+ discovery and fake-host behavior; installed artifacts and native acceptance are
786
+ separate open checks in TODO.md.
787
+
788
+ ## Documentation site
789
+
790
+ Author pages under `src_docs/md/`; `docs/` is generated output. Both complete maintained guides live under `src_docs/md/guides/`. Use a separate Python 3.13 environment, install `src_docs/requirements.txt` with `--require-hashes`, run `sh src_docs/build.sh`, then `python -m unittest discover -s tests_docs -v`. Every main push builds and qualifies immutable generated output. Private Pages configuration and publication remain owner-held; a passing build does not establish deployment or native FontLab acceptance.
791
+
792
+ ## Font UI inspection compositions
793
+
794
+ The paired candidate provides `fontui.glyph_metrics.show(font, parent=None)`,
795
+ `fontui.anchor_components.show(font, parent=None)` and
796
+ `fontui.unicode_order.show(font, parent=None)`. They borrow the supplied font,
797
+ return retained modeless controllers and never close or edit that font.
798
+ Glyph metrics combines the Browser/Preview with exact selected-advance
799
+ comparison and geometric sidebearings; the inspector retains direct anchor
800
+ and component rows; Unicode/order uses the real glyph-name Sequence and
801
+ occurrence metadata. Public pure readers are `metrics`, `details` and `records`.
802
+ Imports stay host-free; UI is loaded on show. Unicode UI needs the existing
803
+ Fontport extra. Native UI/lifetime acceptance remains pending. A child whose
804
+ base cleanup partly failed remains retained/refused; shared lifecycle repair
805
+ is still required before whole-workflow teardown acceptance.
806
+
807
+ The [Font UI Lab Demo](Scripts/Font%20Editors/Font%20UI%20Lab%20Demo.py) opens all
808
+ three views over an explicit detached in-memory UFO sample. It requires the
809
+ Fontport extra and leaves native fonts, files and font registries untouched.
810
+
811
+ ## Tabular Width Audit
812
+
813
+ The source candidate adds a borrowed-font chooser and exact selected-advance
814
+ report through `fontlabapp.fontui.tabular_audit.show(world, parent=None)`.
815
+ The first selected browser row supplies the reference; every selected advance
816
+ remains unrounded. Refresh discovers open fonts through the supplied FontWorld.
817
+ Source tests, matching ordinary distributions and native qualification are
818
+ separate gates. The implemented shared constructor recovery remains under independent review.
819
+
820
+ ## Kerning Proof Workbench
821
+
822
+ `fontlabapp.fontui.kerning_proof.show(font, parent=None)` opens the existing kerning
823
+ editor and its linked sequence in one retained window. Pass an explicit borrowed
824
+ Fontport font; the window keeps that exact target when the active font changes.
825
+ None opens an unavailable view; an empty font is a valid target. The native backend
826
+ follows the captured font's current master.
827
+
828
+ Select a pair or type glyph/group names, then Apply or Delete explicitly. Zero
829
+ overrides group fallback; Delete restores fallback where available. Group proof
830
+ uses the first member. Reload keeps the target and rereads its data. The real
831
+ [demo](Scripts/Font%20Editors/Kerning%20Proof%20Workbench%20Demo.py) captures the
832
+ current font once. These controls write kerning; closing the window leaves the
833
+ font open. Fractional detached values remain supported; native fractional
834
+ history can refuse a change. Native Undo/Redo and saved/reopened acceptance are
835
+ separate from ordinary source tests.
836
+
837
+
838
+ ## Kerning Group Explorer
839
+
840
+ `fontlabapp.fontui.kerning_groups.show(font, parent=None)` retains the existing
841
+ groups and kerning editors over the exact borrowed font. Select a group and use
842
+ it as the left or right key; the opposite key and value draft stay unchanged.
843
+ Accepted group actions refresh the pair through the existing editor. Renaming
844
+ or deleting a group does not rewrite stored kerning keys. The member preview
845
+ and pair proof are distinct. The proof uses first members and their effective
846
+ kerning, which can differ from the selected group row's value.
847
+
848
+ The [App demo](Scripts/Font%20Editors/Kerning%20Group%20Explorer%20Demo.py) captures the current font once.
849
+ Changing the active font does not retarget the window. Apply/Delete and group
850
+ actions write only that captured font; closing does not save or close it. Native
851
+ edits follow its current master. Source review, controlled full suites, matched
852
+ A1 artifacts/ordinary installs and native history/save-reopen remain separate
853
+ qualification gates; this addition asserts no release floor.
854
+
855
+ Master Width Comparison captures the current registered FontLab font once when the menu or demo opens. Select an occurrence in the real glyph sequence to compare fractional master widths; missing layers remain explicit. The window reads stored backend state through its own borrowed view, preserving unfinished edits held by other wrappers. It never switches or closes the source font. Ordinary UFO fonts receive a visible refusal. Source checks do not establish native history, reopen or ordinary installed acceptance.