How to add: &subset=latin-ext – for Google fonts

  • Author
    Posts
  • #15128
    fofenka

    Hi, my question is how/where to add the additional info for google font to use //&subset=latin-ext//?

    #15428
    Zed
    Cryout Creations mastermind

    When you chose a font from Google, you get a complex link depending on the things you chose; for example:
    http://fonts.googleapis.com/css?family=My+Awesome+Font:300,300italic,400,400italic,700,700italic&subset=latin

    Just enter everything after family= to the field in the theme settings:
    My+Awesome+Font:300,300italic,400,400italic,700,700italic&subset=latin


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #20981
    dylino

    sorry – this does not work ;-/
    example: http://fonts.googleapis.com/css?family=Rum+Raisin&subset=latin-ext
    use: Rum+Raisin&subset=latin-ext

    #24347
    Robert

    Hi,

    I have tempera v0.99.
    According to the instructions I set “Poiret+One&subset=latin-ext” in the “Tempera Settings/TEXT SETTINGS/POST TITLE FONT” field.
    It does not work.

    I have found a working solution, but it is very ugly.
    I set only “Poiret+One” in the “Tempera Settings/TEXT SETTINGS/POST TITLE FONT” field.
    I edit wp-content/themes/tempera/includes/theme-styles.php and put .”&subset=latin-ext” in the corresponding wp_register_style(). So the line is the following:
    if($tempera_googlefonttitle) wp_register_style( ‘tempera_googlefonttitle’, esc_attr(“//fonts.googleapis.com/css?family=”.preg_replace( ‘/\s+/’, ‘+’,$tempera_googlefonttitle ).”&subset=latin-ext”));
    It works perfectly and shows the latin extended characters (e.g. Hungarian)

    Could you fix Tempera theme so we can use it without this ugly work around.

    Thanks!

    #24351
    Kay
    Cryout Creations mastermind

    Hi guys!

    Problem noted and will be fixed in the next 1.0.0 version of the theme. Thanks a lot for the feedback.


    Before posting consider reading our short theme debugging instructions.
    Please read the FAQs: MantraNirvanaParabolaTempera
    Tutorials: custom menustranslating themeinstalling themecategory page with introdisabling comments Wordpress: child themescategories/posts
    Before making any modifications to your theme we strongly recommend using Child Themes.
    #29354
    guzikmen

    It doesn’t work till now?

    #30915
    Tomas

    yes! it does work! just add to tempera text settings “name of google font”&subset=latin-ext

    for example: Abril Fatface&subset=latin-ext

    …simple as that… 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘How to add: &subset=latin-ext – for Google fonts’ is closed to new replies.