mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Shapes no loaded font matches are now compared with the installed fonts that nothing has loaded yet. type.retype reads their files one at a time, smallest first, until each such shape matches a font it has read, and type.retypeFonts (the Retype panel's list) ranks the matching installed fonts with the loaded ones, up to 96 fonts in all. - A file is read for the search and released. A face whose glyphs match is loaded as it was read, without the family's other files, and later searches in every open document compare it ahead of the other loaded faces. A matching face that another version of the same family and style shadows is loaded and not listed. - Files over 256 MiB, and the files and faces past 2 GiB read or 500,000 glyphs drawn, are left out and counted in the result's installed.skipped. - A plain shape (one contour of up to four straight edges, such as a rectangle or a hyphen) does not start the search, and matches only a font the other shapes found. - installed: false turns the search off; any value other than true, false or null is an error. retype.find takes installed too. - In the app, Type > Retype and Find Matching Fonts (the panel's button, or retype.find from a menu or the command palette) search on a thread of their own. After 0.4 seconds a progress window shows the files read, with Cancel (also Esc, retype.cancelSearch). When the search is done the command runs with the fonts it found, without reading the installed fonts again, unless the document or its selection changed meanwhile. Reset Retype Panel and a new search stop a panel search. An MCP cancel stops the search between files. Part of #4934.