[Resolved] Suggestion: Add sans-serif and serif to the fonts

Home Forums Support [Resolved] Suggestion: Add sans-serif and serif to the fonts

Home Forums Support Suggestion: Add sans-serif and serif to the fonts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1124314
    93487u5tr938ouh4trnos8fyoh

    Hi,

    I think it makes sense for you to add these as an option:

    sans-serif
    serif

    It’s different than “System stack”.

    Wikipedia for example uses “sans serif”.

    #1124814
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Thanks for the suggestion! I’ll look into this.

    For now, you can do this:

    add_filter( 'generate_typography_default_fonts', function( $fonts ) {
        $fonts[] = 'serif';
        $fonts[] = 'sans serif';
    
        return $fonts;
    } );
    #1124898
    93487u5tr938ouh4trnos8fyoh

    Thanks, I’ll use it. From an accessibility point of view and multi platform point of view having these two by default would be awesome.

    #1125159
    Tom
    Lead Developer
    Lead Developer

    I agree – I’ll get them added 🙂

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