SafeFonts
Host custom fonts locally in WordPress with advanced security validation, block editor integration, and CSS variables support.
Considere uma alternativa
SafeFonts shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites and was last updated 12 months ago, and scores 39/100 on our health check.
- Base de usuários pequenas (mais de 40 instalações ativas)
- Muito poucos comentários até agora
- Testado apenas até WordPress 6.9 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where SafeFonts stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| custom fonts | >100 |
| fonts | >100 |
| google fonts | >100 |
| Gutenberg | >100 |
| typography | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
About SafeFonts
From the official readme · v1.2.0Descrição
SafeFonts helps you comply with GDPR by hosting fonts locally and avoiding third-party requests, with seamless Gutenberg integration and CSS variables support.
If you need to host custom fonts locally on your WordPress site for performance, privacy, or GDPR compliance, SafeFonts makes it simple with advanced security validation, automatic integration with the WordPress block editor, and CSS variables for custom CSS usage.
Compatível com
Block Editors:
* WordPress Gutenberg Block Editor
* WordPress 6.5+ Font Library
* Full Site Editing (FSE) Themes
Need Page Builder Integration?
SafeFonts Pro adds seamless support for 14 integrations: Elementor, Bricks, Beaver Builder, Divi, Oxygen, Brizy, Builderius, Astra, GeneratePress, Kadence, Blocksy, Kadence Blocks, Spectra, and GenerateBlocks with zero configuration.
Why Choose SafeFonts?
🔒 Security-First Approach
* Magic byte validation for all font files
* MIME type verification
* File hash checking
* Configurable file size limits
* Protection against malicious uploads
⚡ Fast & Lightweight
* Custom database storage for instant queries
* Designed to minimize impact on page load speed
* Optimized font delivery
* Works with any theme or page builder
✅ Gutenberg Integration
* Automatic integration with block editor typography
* WordPress 6.5+ Font Library support
* Works with all blocks that support typography
* No configuration needed
🎨 CSS Variables Support
* Automatic CSS variables generation for all fonts
* Use var(–safefonts-font-slug) in custom CSS
* Works with any theme or builder supporting CSS custom properties
* Dedicated CSS Reference page with comprehensive documentation
🎥 Quick Start Video
Watch this quick tutorial to see how easy it is to upload and use custom fonts in WordPress.
🎯 Simple Upload Process
* Individual font file uploads (.woff2, .woff, .ttf, .otf)
* Specify font family, weight, and style
* Visual font previews in admin
* Drag-and-drop ready interface
⚡ Performance Optimization
* Font preloading support for faster page loads
* Automatic preload tag generation: <link rel="preload" href="..." as="font">
* User-selectable fonts for preloading (Settings tab)
* Best practice: Preload 1-2 critical fonts only
* Reduces flash of invisible text (FOIT)
* Improves Core Web Vitals scores
🌍 GDPR Compliant
* Local font hosting
* No external font requests—fonts are served entirely from your WordPress installation
* Complete data privacy
* Suitable for GDPR-compliant sites
Perfect For
- Privacy-conscious websites requiring GDPR compliance
- Sites that need custom or premium fonts
- Agencies managing multiple client sites
- Anyone wanting better control over typography
- Performance-optimized websites
How It Works
- Upload Fonts: Go to SafeFonts menu and upload your font files
- Configure Details: Set font family name, weight (100-900), and style (normal/italic)
- Use Everywhere: Your fonts automatically appear in:
- Gutenberg block editor typography settings
- CSS variables for custom CSS (check CSS Reference page)
- WordPress 6.5+ Font Library
- That’s It! Fonts are served locally with optimal performance
Getting Google Fonts
Download Google Fonts from these sources:
- SafeFonts Web Font Downloader – convenient bulk download tool
- Google Fonts GitHub – official repository
- Google Webfonts Helper – third-party download tool
Once downloaded, upload the font files (.woff2, .woff, .ttf, .otf) through SafeFonts > Upload tab.
Need more features? SafeFonts Pro offers bulk ZIP imports, page builder integration, and advanced font management. Learn more
Supported Font Formats
- WOFF2 (recommended – best compression)
- WOFF (broad browser support)
- TTF (TrueType fonts)
- OTF (OpenType fonts)
WordPress 6.5+ Font Library
If you’re using WordPress 6.5 or higher, SafeFonts automatically integrates with the native Font Library in the Site Editor, giving you a unified font management experience.
Developer Documentation
Template Functions
SafeFonts provides helper functions for developers:
safefonts() - Get the main plugin instance
safefonts()->font_manager->get_fonts() - Get all fonts from database
safefonts()->font_manager->get_fonts_by_family() - Get fonts grouped by family
Hooks & Filters
Filters:
* upload_mimes – SafeFonts adds font MIME types automatically
Database Structure
Table: wp_chrmrtns_safefonts
* id – Font ID
* font_family – Font family name
* family_slug – Sanitized family slug for folder names (v1.1.0+)
* font_style – normal or italic
* font_weight – 100-900
* file_path – Relative path to font file (includes family folder v1.1.0+)
* file_hash – SHA-256 hash for integrity
* file_size – File size in bytes
* mime_type – Validated MIME type
* created_at – Upload timestamp
* updated_at – Last update timestamp
Arquitetura
SafeFonts uses modern PHP namespaces and PSR-4 autoloading:
* Chrmrtns\SafeFonts\Core – Main plugin class
* Chrmrtns\SafeFonts\FontManager – Font validation and management
* Chrmrtns\SafeFonts\Admin\AdminInterface – Admin UI
Apoio
For support, feature requests, or bug reports, please visit:
* GitHub
* Website
Política de privacidade
SafeFonts does not collect, store, or transmit any personal data. All font files are stored locally on your WordPress installation. No data is sent to external services.
Instalação
Automatic Installation (Recommended)
- Go to Plugins > Add New in your WordPress admin
- Search for “SafeFonts”
- Click Install Now, then Activate
- Go to SafeFonts in the admin menu to start uploading fonts
Manual Installation
- Download the plugin zip file
- Go to Plugins > Add New > Upload Plugin
- Choose the zip file and click Install Now
- Click Activate Plugin
- Go to SafeFonts in the admin menu
First Steps After Installation
- Upload Your First Font: Go to SafeFonts > Upload tab
- Fill in Font Details: Enter font family name, select weight and style
- Upload File: Choose your font file (.woff2 recommended)
- Use in Gutenberg: Your font now appears in block typography settings
- Check CSS Reference: Visit SafeFonts > CSS Reference to see your CSS variables and implementation details
Log de Changes
Font organization enhancement: Fonts are now organized in family-specific folders for better management. Automatic migration included - your existing fonts will be seamlessly moved to the new structure on update. UI improvement with clearer badge colors.
1.2.0
- NEW: Variable font support – upload and use variable fonts with full weight range (e.g., 100-900 in a single file)
- NEW: Variable font toggle in upload form – mark fonts as variable and set weight range
- NEW: Automatic CSS generation with proper variable font format (font-weight: 100 900; format(‘woff2-variations’))
- NEW: Visual indicator in font list showing variable fonts with weight range badge
- IMPROVEMENT: Database schema updated with is_variable, weight_min, weight_max columns
- IMPROVEMENT: Font preview uses appropriate weight (400) for variable fonts
1.1.9
- NEW: CSS variables output for all fonts – enables manual font selection in custom CSS and builders supporting CSS custom properties
- NEW: CSS Reference page – comprehensive documentation for CSS variables, Gutenberg classes, and implementation details
- FIX: Auto-regeneration now works correctly for both single plugin updates and bulk updates
- FIX: CSS regeneration hook now properly detects updates from all update methods
1.1.8
- NEW: Manual CSS regeneration button in Settings page for refreshing fonts.css when needed
- NEW: Automatic CSS regeneration after plugin updates to prevent font display issues
- IMPROVEMENT: fonts.css automatically regenerates when plugin is updated via WordPress auto-update or manual update
1.1.7
- FIX: WordPress Font Collection registration now uses correct data structure with font_family_settings wrapper, resolving Site Editor JavaScript errors
- FIX: Font families now include proper fallback categories (serif, sans-serif, monospace, cursive, fantasy) in Font Library
- IMPROVEMENT: Enhanced compatibility with FSE themes and Site Editor font management
1.1.6
- MAJOR: Full prefix refactoring – all PHP elements now use chrmrtns_safefonts_ prefix for better namespace isolation
- NEW: Per-weight font preloading – select specific font weights instead of entire families
- NEW: File format display in preload UI – shows WOFF2, WOFF, TTF, OTF for each weight option
- FIX: WordPress Plugin Check 1.7.0 compliance – all variables properly prefixed
- FIX: Database query security – table names now properly escaped using %i placeholder
- FIX: Form field prefix mismatch – preload settings now save correctly
- IMPROVEMENT: Automatic migration from old safefonts_ prefix to new chrmrtns_safefonts_ prefix
- IMPROVEMENT: Collapsible font family sections in preload settings for better organization
- IMPROVEMENT: Enhanced uninstall.php with proper variable prefixing
- Technical: Constants renamed (SAFEFONTS_* → CHRMRTNS_SAFEFONTS_*)
- Technical: Function renamed (safefonts() → chrmrtns_safefonts())
- Technical: Options migrated (safefonts_version → chrmrtns_safefonts_version, etc.)
- Technical: New FontPreloader class extracted from Core for better code organization
- Technical: CSS class names remain safefonts- for backwards compatibility
- Security: All SQL queries now use WordPress 6.2+ $wpdb->prepare() with %i for table identifiers
- Security: WordPress minimum requirement bumped to 6.2 (required for %i placeholder support)
1.1.5
- CRITICAL FIX: Migration now runs automatically on plugin update (no longer requires deactivate/reactivate)
- NEW: Bulk delete functionality – select multiple fonts and delete them at once with “Select All” option
- NEW: Font format display – shows WOFF2, WOFF, TTF, or OTF badge in fonts list for better visibility
- Fix: Font previews now display correctly in admin area (fonts.css properly enqueued)
- Fix: Folder structure migration triggers on version change, not just activation
- Fix: CSS file regeneration after migration ensures fonts display immediately
- Fix: Browser cache issues with admin CSS/JS files using file modification timestamps
- Improvement: Version check system ensures migrations run once per version upgrade
- Improvement: Enhanced fonts list UI with checkboxes for individual selection
- Improvement: Cleaned up font list layout for better readability (removed grid conflicts)
- Technical: Added check_version_and_migrate() method that runs on plugins_loaded hook
- Technical: Added handle_bulk_font_deletion() AJAX handler for bulk operations
- Technical: CSS cache-busting using filemtime() for instant updates
Capturas de tela
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best SafeFonts alternatives
All custom fonts plugins →FAQ
SafeFonts: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is SafeFonts free?
Yes. SafeFonts is free to download and use from the official WordPress.org plugin directory.
Is SafeFonts safe to use in 2026?
SafeFonts shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites and was last updated 12 months ago, and scores 39/100 on our health check.
How many websites use SafeFonts?
SafeFonts is active on 40+ WordPress websites and has been downloaded 1,155 times since it launched in November 2025. It was downloaded 164 times in the last 30 days.
Does SafeFonts work with WordPress 7.1?
SafeFonts is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does SafeFonts need?
SafeFonts requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was SafeFonts last updated?
The latest version, 1.2.0, was released on December 10, 2025 (12 months ago).
Who makes SafeFonts?
SafeFonts is developed and maintained by Chris Martens.
What are the best alternatives to SafeFonts?
The most popular alternatives to SafeFonts are Custom Fonts (400K+ installs), Use Any Font (200K+ installs) and Fonts Plugin (200K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
