Polices de sûreté
Host custom fonts locally in WordPress with advanced security validation, block editor integration, and CSS variables support.
Envisager une alternative
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.
- Petite base d'utilisateurs (40+ installations actives)
- Très peu de critiques jusqu'à présent
- Uniquement testé jusqu'à WordPress 6,9 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where SafeFonts stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| Polices personnalisées | >100 |
| polices de police | >100 |
| Polices Google | >100 |
| Gutenberg | >100 |
| typographie | >100 |
Adoption de version
Part de sites actifs par version.
About SafeFonts
À partir du Lisezmoi officiel · v1.2.0Description
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.
Compatible avec
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
Parfait pour
- 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
Comment cela fonctionne
- 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
Architecture
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
Soutien
For support, feature requests, or bug reports, please visit:
* GitHub
* Website
Politique de confidentialité
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.
Installation
Installation automatique (recommandé)
- Go to Plugins > Add New in your WordPress admin
- Search for “SafeFonts”
- Cliquez sur Installer maintenant, puis activer
- Go to SafeFonts in the admin menu to start uploading fonts
Installation manuelle
- 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
Premières étapes après l'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
Journal de modifications
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
Captures d'écran
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best SafeFonts alternatives
Tous les plugins de polices personnalisées →FAQ
SafeFonts: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : 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).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
