Created
March 20, 2023 15:15
-
-
Save PluginRepublicSupport/1fd2b07cb0c1dad2bf1db21b6058aeb2 to your computer and use it in GitHub Desktop.
Text Preview Custom Fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register a custom font with Text Preview | |
*/ | |
function prefix_register_custom_font( $fonts ) { | |
$fonts['font-1'] = 'Brush Script'; | |
$fonts['font-2'] = 'Arial'; | |
$fonts['font-3'] = 'Mermaid'; | |
$fonts['font-4'] = 'Angelina'; | |
$fonts['font-5'] = 'Homework'; | |
$fonts['font-6'] = 'Salty Ocean'; | |
$fonts['font-7'] = 'Old English MT'; | |
$fonts['font-8'] = 'Bell MT'; | |
return $fonts; | |
} | |
add_filter( 'apaou_custom_fonts_array', 'prefix_register_custom_font' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment