Skip to content

Instantly share code, notes, and snippets.

@PluginRepublicSupport
Created March 20, 2023 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PluginRepublicSupport/1fd2b07cb0c1dad2bf1db21b6058aeb2 to your computer and use it in GitHub Desktop.
Save PluginRepublicSupport/1fd2b07cb0c1dad2bf1db21b6058aeb2 to your computer and use it in GitHub Desktop.
Text Preview Custom Fonts
<?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