Site logo

[Resolved] Special characters not displaying

Home Forums Support [Resolved] Special characters not displaying

Home Forums Support Special characters not displaying

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1685574
    Annamari

    UPDATE: the given characters aren’t included in the font file (provided by client) 🙂

    I have a site where I use locally hosted fonts, all of them should be latin-ext. on the site bold special characters ő, ű aren’t displayed, though they are included in the character set.

    What do I need to do to have these displayed? Is there a special setting I’m missing?

    Thank you for any insight.

    This is what I have in the style.css:

    /* Brandon Grotesque - Bold */
    @font-face {
    font-family: 'Brandon Grotesque';
    src: url('/wp-content/themes/franciska_new/fonts/BrandonGrotesque-Bold.woff2') format('woff2'), 
        url('/wp-content/themes/franciska_new/fonts/BrandonGrotesque-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    }
    
    /* Brandon Grotesque - Bold Italic */
    @font-face {
    font-family: 'Brandon Grotesque';
    src: url('/wp-content/themes/franciska_new/fonts/BrandonGrotesque-BoldItalic.woff2') format('woff2'), 
        url('/wp-content/themes/franciska_new/fonts/BrandonGrotesque-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
    }

    This is my functions.php:

    
    /* add fonts to customizer */
    add_filter( 'generate_typography_default_fonts', function( $fonts ) {
        $fonts[] = 'Brandon Grotesque';
        $fonts[] = 'Lato';
        $fonts[] = 'Montserrat';
        $fonts[] = 'Alice';
        $fonts[] = 'Playfair Display';
    
        return $fonts;
    } );
    
    #1685656
    Leo
    Staff
    Customer Support

    Glad you’ve figured out 🙂

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