| 开发者 | matthewneilcowan |
|---|---|
| 更新时间 | 2026年2月16日 23:31 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/typography-stylist, or install through the WordPress plugins screenFor features like stylistic sets, this plugin requires fonts that support OpenType features. Most premium script fonts and many professional typefaces include these features. Free fonts may have limited support. Letter-spacing, line-height, and other non-opentype features will work with any font.
The plugin will work with any font, but you'll only see results for stylistic sets or ligatures if the font includes the OpenType features you're trying to use. Check your font's documentation for supported features.
Some Google Fonts support OpenType features. Check the individual font's specimen page for feature support.
Absolutely! You have four options:
If you have fonts already loaded through your theme, another plugin, or a CDN:
Yes! For any font source (uploaded, Adobe Fonts, or custom definitions), you can specify fallback fonts. These will be used if the primary font fails to load. Fallbacks are automatically included in the CSS font-family declaration.
The plugin includes accessibility features for screen reader compatibility:
The Typography Stylist block creates two versions of your text:
visually-hidden class applied. This maintains the document outline and heading navigation for assistive technology users.aria-hidden="true" to prevent screen readers from reading fragmented content with complex OpenType features.Google explicitly recognizes hidden text for accessibility as legitimate (not cloaking/spam). The content is identical in both headings, signaling genuine accessibility use. This dual-heading pattern is a well-known accessibility technique.
The plugin accepts ZIP files containing:
Yes! The plugin implements multiple security measures:
This plugin is designed for the WordPress block editor (Gutenberg). Compatibility with page builders depends on their implementation of rich text formatting.
The plugin uses CSS font-feature-settings which is hardware-accelerated in modern browsers. Performance impact depends on font file sizes and loading strategy. The plugin includes JavaScript in the block editor but uses only CSS for frontend rendering.
Check your font's documentation, or use the plugin to experiment. Features that aren't supported simply won't affect the text.
buildTextOffsetMap() utility that accounts for <br> elements in character offset calculations, matching WordPress RichText's offset systemgetEffectiveTextLength() utility for accurate text length measurement including line breaksdebounce() utility function with cancel method for performance optimization during rapid slider adjustmentsremovePropertyFromSpan() utility to remove specific properties and unwrap empty spansremovePropertyFromSelection() utility to find and remove properties from all spans in selectionclassifyAtomicNode() helper within splitSpanAndApply to reduce code duplication in segment classification logictemplate_redirect hook (after main query) instead of wp_enqueue_scripts (before query) for archive pagestypost_check_full_content_on_archives now defaults to true (was false)