Skip to content

Instantly share code, notes, and snippets.

function product_designer_fonts_custom_20200808($fonts){
// to remove existing fonts just replace the variable($fonts) name with new variable($my_fonts)
// adding Google fonts
$fonts[] = array('name'=>'Rye');
$fonts[] = array('name'=>'Nosifer','font color'=>'white');
// Adding custom fonts
$my_fonts[] = array('name'=>'Template', 'src'=>'http://heavymetal.sherlockdesigns.com.au/fonts/CollegeBlockStencil-Regular.ttf','font color'=>'white');
return $my_fonts;
}