Merge pull request #228 from EthanSuquet/fix/hide-dot-system-fonts

Fonts: the font menus leave out macOS's hidden "." families
This commit is contained in:
Brandon Thomas
2026-10-06 15:57:48 -04:00
committed by GitHub
8 changed files with 68 additions and 14 deletions
+4 -2
View File
@@ -1741,8 +1741,10 @@ tone (mono, or CMYK screens multiplied over each other), clipped to the art's ou
Type can use the bundled fonts, fonts added to the session and the fonts installed on the system (none on the web).
The installed fonts are cataloged once per session (in the background when the app starts, else on the first lookup
by family name), so opening, placing, pasting and importing files find them whatever ran before. `text.fontList`
lists every family available, the installed ones included; with `family` it gives that family's styles (upright
by weight, then italics) and fails when the family isn't available. `text.rescanFonts` (Character panel menu ›
lists every family available, the installed ones included, as the font menus do: without the system's hidden
families, whose names start with "." (macOS's ".SF NS", ".LastResort"), which still resolve when a document names
them. With `family` it gives that family's styles (upright by weight, then italics) and fails when the family isn't
available. `text.rescanFonts` (Character panel menu ›
Refresh Font List) scans the font folders again, for fonts installed or removed since the app started: type set in a
font that became available redraws in it, without editing the document.