- This topic has 7 replies, 3 voices, and was last updated 1 year, 6 months ago by
Elvin.
-
AuthorPosts
-
December 21, 2020 at 7:08 am #1589432
William
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,
December 21, 2020 at 7:30 am #1589472David
StaffCustomer SupportHi there,
if you just want to add that font to the customizer then this document explains:
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 22, 2020 at 11:32 am #1591096William
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?
December 22, 2020 at 1:27 pm #1591212David
StaffCustomer SupportLooking 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:https://fonts.google.com/specimen/Brawler?query=brawler
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 22, 2020 at 3:48 pm #1591322William
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 wantAnalyzing each letter it seems not the same fonts.
December 22, 2020 at 6:09 pm #1591398Elvin
StaffCustomer SupportHi,
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/xQuYOvYbThe “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.
A wise man once said:
"Have you cleared your cache?"December 23, 2020 at 6:12 am #1591910William
Ah yes I did not change the ‘zilla_slab’ to ‘Brawler’ – my apologies – thank you for the help!
December 27, 2020 at 3:09 pm #1596064Elvin
StaffCustomer SupportNice catch. No problem. 🙂
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.