[Support request] Brawler Google Font not in Generate Press?

Home Forums Support [Support request] Brawler Google Font not in Generate Press?

Home Forums Support Brawler Google Font not in Generate Press?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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,

    #1589472
    David
    Staff
    Customer Support

    Hi there,

    if you just want to add that font to the customizer then this document explains:

    https://docs.generatepress.com/article/customizing-the-google-font-list/#adding-your-google-font-to-the-list

    #1591096
    William

    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?

    #1591212
    David
    Staff
    Customer Support

    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:

    https://fonts.google.com/specimen/Brawler?query=brawler

    #1591322
    William

    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.

    #1591398
    Elvin
    Staff
    Customer Support

    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.

    #1591910
    William

    Ah yes I did not change the ‘zilla_slab’ to ‘Brawler’ – my apologies – thank you for the help!

    #1596064
    Elvin
    Staff
    Customer Support

    Nice catch. No problem. 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.