Files
D-monized e11e296944 Font menu: favourites, recent fonts, class and similar-font filters, live preview
The font menu gains Photoshop's local font library and filters (everything but
Adobe Fonts):

- Favourites: a star on every row (never picks the font) and a favourites-only
  filter. Kept in the preferences (type.favoriteFonts).
- Recent fonts: up to five, most recent first, above a divider. Wires the dead
  Preferences > Type > Recent Fonts (now 0..5, default 5; older saved values
  are capped on load).
- Class list: All Classes, Serif, Slab Serif, Sans Serif, Script, Monospace,
  Handwritten, Blackletter, Decorative, read from each font's OS/2
  sFamilyClass, PANOSE and post tables (photocraft_text::font_class), else its
  name. Fonts that state nothing stay unclassified.
- Show Variable Fonts, Show Similar Fonts (PANOSE/class/weight distance to the
  current font) and Clear All; the class list collapses with «.
- Each row: style expander (">") that picks a family in a given style, and an
  O / TT / VAR format badge.
- A preview at the top sets the type layer's own text (or the selection being
  typed) in the font under the pointer.
- The search field and filters stay fixed while only the list scrolls, and the
  search field lines up with the font list.

Commands: type.font.favorite, type.font.noteRecent, type.font.clearRecent,
type.font.library. Two original icons (font-similar, font-variable).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:18:41 -06:00

348 B