Your Time:
Our Time:
← Back to discussions

Latin Extended Google fonts

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 2 voices, and was last updated 9 years, 7 months ago by Anonymous.

  • 2017-01-09 at 2:45 am
    Unknown Support Status
    #18551
    GrZeCh
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    Hello,

    I want to add support for local character map (Poland) by using fonts with latin-ext. I’ve tried to add line like mentioned in this post:

    Adding latin ext fonts

    (iva-googlefont.php file) but whatever I did it was causing issues with all existing fonts. Does adding “&subset=latin,latin-ext” in mentioned file like in mentioned thread should also work correctly?

    Thanks

    2017-01-09 at 12:06 pm
    #18558
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    https://fonts.google.com/?subset=latin-ext These are the fonts which supports Latin Characters. Use the fonts which supports Latin characters, after that find the font which you wish to use and in last you need to add like this &subset=latin,latin-ext

    2017-01-09 at 2:18 pm
    Unknown Support Status
    #18559
    GrZeCh
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    I wanted to use Bree Serif which I’ve selected in theme configuration and changed line:

    array( 'name' => "Bree Serif", 'variant' => ''),

    to

    array( 'name' => "Bree Serif", 'variant' => '&subset=latin,latin-ext'),

    with or without “&” it breaks all fonts in wordpress. This is related to having url like this one:

    http://fonts.googleapis.com/css?family=Ubuntu:400,500,700|Bree+Serif|Ubuntu:400,500,700|Lato:400,300,700,900,400italic,700italic,900italic&subset=latin,latin-ext

    which generates error on google site.

    IMHO URL should be generated like this one:

    http://fonts.googleapis.com/css?family=Ubuntu:400,500,700|Bree+Serif|Ubuntu:400,500,700|Lato:400,300,700,900,400italic,700italic,900italic&subset=latin,latin-ext

    with subset at the end of query string.

    Before sending this post I’ve checked my suspicions and it looks like adding at the end of google fonts php file line:

    			$eventra_google_font_url = $eventra_google_font_url."&subset=latin,latin-ext";
    			return $eventra_google_fonts;

    fixed my problem.

    2017-01-09 at 3:58 pm
    #18560
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

    2017-01-09 at 6:51 pm
    Unknown Support Status
    #18561
    GrZeCh
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    IMHO consider adding some kind of dropdown form for additional character maps in typography section.

    2017-01-10 at 11:45 am
    #18573
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Sorry, this feature isn’t available but we’ll consider adding it in the future updates.

You must be logged in to reply to this topic.