Jump to content

Archived

This topic is now archived and is closed to further replies.

Donnie Darko

Google fonts Latin Extended

Recommended Posts

Donnie Darko    1
Donnie Darko
Hello I need google fonts with latin extended 

I tried the hooks, unfortunately does not work

add_filter( 'pagelines_gfont_baseurl', 'make_latinext' );
function make_latinext() {
return '//fonts.googleapis.com/css?v2&subset=latin,latin-ext&family=';
}

 Can you help me please find the right solution?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi, Can't you just manually install the font ?

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Donnie Darko    1
Donnie Darko

Hi, Can't you just manually install the font ?

it's not exactly comfortable solution, I believe of this problem will also address other users DMS
especially this not solve the problem with the custom fonts in sections

Share this post


Link to post
Share on other sites
Donnie Darko    1
Donnie Darko

my temporary solution to the problem:
 
in => dms/editor/editor.typography.php
 
row 49 
from
printf( "<link id='master_font_import' rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=%s'>\n", $gcss );

to
printf( "<link id='master_font_import' rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=%s&subset=latin-ext'>\n", $gcss );

Share this post


Link to post
Share on other sites
Rob    547
Rob

Editing core files violates your license.  Don't do that. It's not supported.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Donnie Darko    1
Donnie Darko

Editing core files violates your license.  Don't do that. It's not supported.

ok ...so find a working solution for me...

Share this post


Link to post
Share on other sites
Donnie Darko    1
Donnie Darko

ok ...so find a working solution for me...

by the way I wrote it's a temporary solution

Share this post


Link to post
Share on other sites
Rob    547
Rob

I understand it's a temporary solution, and Danny provided you with a proper solution that doesn't violate your license, which prohibits editing of core files even temporarily. 

 

If you have a particular font you're trying to use, let us know and we can ask our developers to add it with the next update.  They're pretty good about that.

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • koem32
      By koem32
      Hello, 
       
      pagespeed insights returns as a recommendation that I optimize 
      the fonts.googleapi
       
      I was wondering what is the best way to do this in DMS2
       
      This is the pagespeed insights result
      https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.greekalphabet.co%2F
       
       
      thanks a lot
      George
       
    • anu826
      By anu826
      Hi,
       
      I want to use "Sinhala" font by Google Fonts. The Google Fonts provide following details on how to use it in website. How can I use it with DMS2?
       
      Link for early access fonts is http://www.google.com/fonts/earlyaccess
       
      Noto Sans Sinhala (Sinhala) When text is rendered by a computer, sometimes there will be characters in the text that can not be displayed, because no font that supports them is available to the computer. When this occurs, small boxes are shown to represent the characters. We call those small boxes “tofu,” and we want to remove tofu from the Web. This is how the Noto font families got their name.
      Noto helps to make the web more beautiful across platforms for all languages. Currently, Noto covers over 30 scripts, and will cover all of Unicode in the future. This is the Sans Sinhala family. It has Regular and Bold styles and is hinted.
      Noto fonts are intended to be visually harmonious across multiple languages, with compatible heights and stroke thicknesses. For the currently released Noto fonts see code.google.com/p/noto/
      Link @import url(http://fonts.googleapis.com/earlyaccess/notosanssinhala.css);
      Example font-family: 'Noto Sans Sinhala', serif;
    • ndphoto
      By ndphoto
      Hi! So I'm fairly new to all this, but also not a complete bumbling idiot. I have followed the instructions that I have found on your site about google fonts but am unable to get them to work. I am assuming that there is some code I am lacking or unaware of, but I thought it was integral with the DMS Professional Tools plugin. Please let me know the process and how to get this thing up on my screen! Many thanks. :)
    • suzyo
      By suzyo
      hi all. sorry to ask, have searched forums, searched the google, can't find answer.
       
      google fonts rendering horribly in windows. i'm looking everywhere and can't figure it out. i know that pl includes webkit.
       
      what am i missing? this is one of those search for weeks whenever you can get to it things. no answer.
       
      it's Oswald as a heading font that looks bitmapped and ugly.
       
      thank you.
       
      capemyers.com
    • gayatriom
      By gayatriom
      Hi. My entire site is secure, except for the google fonts
      I'm getting a mixed content error because of google fonts.
      How can I remedy this?
×