Releases: mattcowan/typography-stylist-for-wordpress
Release list
2.1.2 — Automatic font-weight detection
What's new
Automatic font-weight detection
Newly added fonts now enable only the weights they actually ship, instead of
all nine weights (100–900) being checked by default:
- Uploaded font kits read weights from their parsed (or generated)
@font-facerules — including font-only ZIPs like Google Fonts downloads. - Adobe Fonts read weights from the kit stylesheet, fetched server-side
when the project is added. - WordPress Font Library fonts adopted from the editor picker carry
their real weights too. - Variable fonts covering the full 100–900 range keep all weights enabled
(the weight slider replaces the dropdown anyway).
Detection only ever narrows when it is confident — if a stylesheet can't be
fetched or a kit can't be read, all weights stay enabled — and the
checkboxes remain fully editable.
One-click detection for existing fonts
A new "Auto-detect weights for existing fonts" button on the Custom
Fonts tab covers fonts added before this release. It appears only when
undetected fonts exist, processes uploaded and Adobe fonts in one pass, and
disappears once every font is covered. (Manual font definitions are skipped
— there is no font file to read.)
Fixed
- Variable fonts uploaded as font-only ZIPs now glyph-browse correctly in
the Glyphs Panel — the generatedformat('truetype-variations')hint
wasn't recognized by the panel's file picker.
Note: the zip attached below is the installable plugin; the GitHub
source download is not (built assets are generated in CI).