This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

Google Fonts

Any phpBB3 mod requests go here NOT SUPPORT!
Post Reply
TeacherMac

Google Fonts

Post by TeacherMac »

I'm thinking it would be a great mod providing a menu for font selection for use in the overall look of a site?

Being able to swap out fonts easily might be a good thing.

Maybe someone has a mod or patch already?

Thanks,

Mac
User avatar
Ooopsie
ooopsie
ooopsie
Posts: 1046
Joined: Sat Sep 25 2010 12:15 pm
Real name: Guito :)
Country Flag: United States
Location: Index, WA. or the State of Shock most of the time.
Contact:

Re: Google Fonts

Post by Ooopsie »

Topic moved to Mod Requests.
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
ALWAYS BACK-UP BEFORE MAKING CHANGES TO YOUR DATABASE OR FILES. ALWAYS!!!!

Do not PM me asking for support unless invited to do so. Use the forums.
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: Google Fonts

Post by cisco007 »

it would sort of be hard to do this! from what i've heard the user needs to also have the fonts installed on their computer otherwise they wouldn't work!
Image
User avatar
Ooopsie
ooopsie
ooopsie
Posts: 1046
Joined: Sat Sep 25 2010 12:15 pm
Real name: Guito :)
Country Flag: United States
Location: Index, WA. or the State of Shock most of the time.
Contact:

Re: Google Fonts

Post by Ooopsie »

There is a way to hard code fonts into html but I don't know about php. I don't think the html would be validated at this point either. I have a program tucked away some place that I have not used for 8-9 years that will hard code the fonts but as Cisco said, it's a pain either way.

And Cisco is correct.... If the fonts are not installed on a users computer (if fonts not hard coded), then the users computer or browser will use one of 3-5 default fonts. Correct me if I'm wrong Cisco.
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
ALWAYS BACK-UP BEFORE MAKING CHANGES TO YOUR DATABASE OR FILES. ALWAYS!!!!

Do not PM me asking for support unless invited to do so. Use the forums.
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: Google Fonts

Post by cisco007 »

as far as i know it's correct ooopsie, i think you can add a dropdown font style family selector to the overall_header.html to select the different css with the font that you want, but like we say the users will still need the other fonts installed on their PC!
Image
TeacherMac

Re: Google Fonts

Post by TeacherMac »

Hello The Boss Man and Ooopsie,

Just to clarify, no fonts need to be installed on the user's local computer at any time unless the user wants them there.

Use the Google Web Fonts API to add web fonts to your pages. You don't need to do any programming; all you have to do is add a special stylesheet link to your HTML document, then refer to the font in a CSS style.

In short, the fonts the user selects are referenced directly from the Free Google Font Library and used on the site.

If you'd like to learn more please use my short URL :http://joat.co/k to access more information from Google. (My own shortener)

Many examples provided but I've got much more to learn before I can take advantage.

Enjoy,

Mac
TeacherMac

Re: Google Fonts

Post by TeacherMac »

Sorry,

Forgot to mention that NOBODY needs the fonts installed on their computers since everyone is getting the fonts from the same source when the site is loaded.

Mac
User avatar
Sniper_E
Support Team
Support Team
Posts: 197
Joined: Fri May 06 2011 3:09 pm
Real name: Ed
Country Flag: United States
Location: Shreveport, LA

Re: Google Fonts

Post by Sniper_E »

Yes, you did mention that in your previous post. First lines.

But still, I'm with Cisco... I would think that you would have to have those fonts installed on your computer. All fonts on any page you visit are generated from your local fonts installed. I would be curious to k ow how that would work without having those fonts on your computer... Installed.

I'll have to go to that link you posted and check out the info on that.

[ Post made via Android] Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
TeacherMac

Re: Google Fonts

Post by TeacherMac »

I trust Google has made it clear that the fonts don't need to be installed.

As for my last post I wanted it to be clear that:

1. The fonts don't need to be installed by the website designer on the website
2. The browser renders fonts without the fonts needing to be installed on a user's computer (embedded fonts)

"Font embedding allows fonts to be temporarily installed on a user's computer so that a Web page is displayed exactly as the Web designer intended.

Mac
User avatar
Sniper_E
Support Team
Support Team
Posts: 197
Joined: Fri May 06 2011 3:09 pm
Real name: Ed
Country Flag: United States
Location: Shreveport, LA

Re: Google Fonts

Post by Sniper_E »

You are 100% right.

I added the link in the overall_header.

Code: Select all

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="http://fonts.googleapis.com/css?family=Tangerine" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
Now when I click prosilver's font size link it changes to the google font.

And I changed the font in the common.css

Code: Select all

body {
	/* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
	font-family: 'Tangerine', serif, Verdana, Helvetica, Arial, sans-serif;
And I did not have to install any fonts to my computer.

So you would like this to have a link to click so someone can change to this font?
Yea, this could be done...
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
shagovind

Re: Google Fonts

Post by shagovind »

thank you for the suggestion.,

i will try and let you you know about the Fonts
Post Reply