Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1302595

    HI
    I bought the font “Coco-Sharp” and have created a zip file with the fonts I want to include, see here:

    View post on imgur.com


    When I upload them in Enfold, the “heavy” version is not included under the Coco-sharp font, but is called Font: MACOSX ( font-family: macosx )
    normal: 400. I tried zipping just the ttf for the Heavy font and uploading that, and it did the same thing. Can you see what the issue is? Is there a better way to do this? I am using a child theme and a staging site.

    View post on imgur.com


    thanks
    Nancy

    #1303149

    Hey Munford,

    Thank you for the inquiry.

    Adding this filter in the functions.php file should help.

    if ( ! function_exists( 'avf_add_missing_google_font_filenames') ) {
    	function avf_add_missing_google_font_filenames($enfold_font_manager_types) {
    		return array_merge($enfold_font_manager_types, array('heavy' => array( 900, 'normal' )));
    	}
    
    	add_filter( 'avf_google_fonts_style_definitions', 'avf_add_missing_google_font_filenames', 10, 1 );
    }
    

    You have to remove the current font set and upload it again. And please note that the custom font manager was intentionally created for Google fonts, so adding a custom font from somewhere else might not work as intended.

    Best regards,
    Ismael

    #1303157

    thanks that worked!

    #1303296

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1305137
    This reply has been marked as private.
    #1305201

    Hi,

    No problem. Please feel free to open another thread should you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘custom font issue’ is closed to new replies.