| 开发者 | jonashjalmarsson |
|---|---|
| 更新时间 | 2026年10月23日 16:42 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
font-family by hand somewhere in a CSS box, because your theme's typography panel does not know the font exists.
This one registers the font where you actually pick fonts. Upload a woff2, and it shows up in the font dropdown of the builder or theme you already use — selectable with a click, no CSS.
The font is served from your own server via @font-face on the frontend and in wp-admin, so the editor previews what visitors get, and nothing is fetched from Google.
Where your font appears:
font-display: swap/wp-content/plugins/.woff2, woff, and otf.
In wp-content/uploads/jalma-fonts/.
Yes. Fonts are registered in the WordPress Font Library and appear as a font collection in the Site Editor.
wp_register_font_collection() requirement).JALMA_SIMPLE_FONTS_) for Plugin Check compliance.@font-face CSS is now output via wp_register_style() + wp_add_inline_style() on the standard enqueue hooks instead of a raw <style> tag.wp_handle_upload() for font file uploads (replaces move_uploaded_file()) — Plugin Check compliant.