INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

CSS fonts from Google Font

CSS fonts from Google Font

(OP)
Hi everyone,
I'd like my font style to use one of Google Font's font.
This is a demo I use of how to do so:

CODE

<html>
  <head>
    <link rel="stylesheet" type="text/css"
          href="https://fonts.googleapis.com/css?family=Tangerine">
    <style>
      body {
        font-family: 'Tangerine', serif;
        font-size: 48px;
      }
    </style>
  </head>
  <body>
    <div>Making the Web Beautiful!</div>
  </body>
</html> 
Uploading the above page I see this on my display:

Unfortunately, "Tangerine" is not the font I need.
From "Google Font" selection showm in the following image:

I selected 'Rubik' but then I didn't get the desired font.
Could anyone please explain the right way to get a font from Google Font ?
Thanks

RE: CSS fonts from Google Font

Hi

The sample on your screenshot contains Hebrew script. Are you intending to use it for that ? Then you have to ask for them in the URL :

https://fonts.googleapis.com/css?family=Rubik&subset=hebrew

Otherwise the font works fine for me with Latin script. My knowledge seems to be weak to test with Hebrew too. sad

Feherke.
feherke.ga

RE: CSS fonts from Google Font

When you select a font from google fonts Google builds the <link> for you so all you need to do is copy it to your html document. If you click the + sign next to the font you get a black bar at the bottom of the browser window. click it, and it will show the embed link you need to copy.

With that said, the font you show for Rubik is the Hebrew variation, but you need to actually write in Hebrew for it to show hebrew characters. It does not simply take the letter "a" and turn it into a hebrew character for instance. It has support for the extra characters to write in Hebrew.

הטבע האחד שלי והטבע האחר חלקו



----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: CSS fonts from Google Font

If "Tangerine" works, you have the correct method.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind these jesus character, stars had to die for me to live.

RE: CSS fonts from Google Font

For multiple fonts in one document,

http://examples.webmaster-talk.eu/css/google-fonts...

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind these jesus character, stars had to die for me to live.

RE: CSS fonts from Google Font

(OP)
Thank you !
I managed to do it thanks to you !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close