Hello,
If you’re looking to do this via PHP you can use the tiny_mce_before_init hook. For a more detailed answers you may see Append Font Family in TinyMCE by user bueltge. Their example is as follows:
/**
* Add fonts to the "Font Family" drop-down.
*/
add_filter( 'tiny_mce_before_init', 'fb_mce_before_init' );
function fb_mce_before_init( $settings ) {
$font_formats = 'Andale Mono=andale mono,times;'
. 'Arial=arial,helvetica,sans-serif';
$settings[ 'font_formats' ] = $font_formats;
return $settings;
}
The code you mention could be what I need. But where is this code located?
This would go into your Child Themes functions.php file or as a separate plugin.
Your answer surprised me. That is not what I did before. The answer you referred me to (by Bueltge) included the following:
Default Fonts
‘Andale Mono=andale mono,times;’+ ‘Arial=arial,helvetica,sans-serif;’+ ‘Arial Black=arial black,avant garde;’+ ‘Book Antiqua=book antiqua,palatino;’+ ‘Comic Sans MS=comic sans ms,sans-serif;’+ ‘Courier New=courier new,courier;’+ ‘Georgia=georgia,palatino;’+ ‘Helvetica=helvetica;’+ ‘Impact=impact,chicago;’+ ‘Symbol=symbol;’+ ‘Tahoma=tahoma,arial,helvetica,sans-serif;’+ ‘Terminal=terminal,monaco;’+ ‘Times New Roman=times new roman,times;’+ ‘Trebuchet MS=trebuchet ms,geneva;’+ ‘Verdana=verdana,geneva;’+ ‘Webdings=webdings;’+ ‘Wingdings=wingdings,zapf dingbats’
I think this list is the one I modified before. If I could get to this list, I could add the font I need. Does that seem right? Thanks.