Archived topic
Brawler Google Font not in Generate Press?
7 replies · Started by William on December 21, 2020
Hi there,
I see GeneratePress has Google fonts - but it does not have the 'Brawler' font.
What would be the best way to add the font? I tried this page but got stuck on permissions as seems quite a lot of work.
Kind regards,
Hi there,
if you just want to add that font to the customizer then this document explains:
Thanks for this, I added this code:
add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
$fonts[ 'zilla_slab' ] = array(
'name' => 'Brawler',
'variants' => array( '300', '300i', '400', '400i', '500', '500i', '600', '600i', '700', '700i' ),
'category' => 'serif'
);
return $fonts;
}
And although it says the headings are Brawler here, it does not seem to have updated the fonts of headings?
Looking at the site its requesting the Brawler font and the headings look like brawler.
But if you check here you can see that Brawler doesn't have any weight variants:
Gotcha, just the font does not look the same as this page, which is also brawler.
Site I want to have Brawler headings
Site that has the Brawler headings I want
Analyzing each letter it seems not the same fonts.
Hi,
Have you fixed this for the "Site I want to have Brawler headings" link?
It is actually rendering Brawler as shown here:
https://share.getcloudapp.com/xQuYOvYb
The "Site that has the Brawler headings I want" link you provided doesn't actually have Brawler. It's using the fallback "Times New Roman".
Perhaps you've labeled the links the other way around? Let us know.
Note: Sites use fallbacks when the font is not properly added to the site.
Ah yes I did not change the 'zilla_slab' to 'Brawler' - my apologies - thank you for the help!
Nice catch. No problem. :)