This is a relatively simple request but a very useful one:
Let us specify our own webfonts fonts.
For example, I may want to use a font from google but with a different setting (like Merriweather 300 italic latin-extended) or to load a font from Typekit or WebInk.
I edited register-admin-options.php and register-backend-google-fonts.php to allow different fonts, weight and styles and class-style-generator.php to insert the latin-ext in the request but I’d like to see this as a theme option.
Hey mediadivision!
Right now we don’t have plans to add additional options to the theme options page but you can use filters to change the font configuration. Just place this code into your child theme functions.php file:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Roboto'] = 'Roboto:400,900italic';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Roboto'] = 'Roboto:400,900italic';
return $fonts;
}
and instead of $fonts[‘Roboto’] = ‘Roboto:400,900italic’; insert the font(s) you want to change. You can actually just copy the font code from register-backend-google-fonts.php. The child theme functions.php is update safe and you just need to write the code one time.
Regards,
Peter