Shortcode Support:
Use [font_sampler] with customizable parameters
Interactive Controls: Sliders for font size, weight, width, and text input
Admin Panel: Settings page to configure default fonts and manage custom fonts
Font Upload: Media library integration for uploading font files
Responsive Design: Mobile-friendly interface
Variable Font Support: Specifically designed for variable fonts with multiple axes
[font_sampler font="https://example.com/font.woff2"][font_sampler font="https://example.com/font.woff2" text="Custom sample text" size="48" controls="true"]Create a new folder called
variable-font-sampler in your /wp-content/plugins/
directory
Save the code as
variable-font-sampler.php in that folder
Activate the plugin from your WordPress admin panel
Go to Settings → Font Sampler to configure default fonts
Font Loading: Uses the Font Loading API for reliable font loading
Variable Font Controls: Interactive sliders for weight, width, and size
Custom Text: Users can change the sample text in real-time
Admin Interface: Easy-to-use settings panel for managing fonts
Error Handling: Graceful fallbacks when fonts fail to load
Responsive: Works well on all device sizes