Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Web Fonts - @font-face

Posted on 2013-12-17
3
Medium Priority
?
681 Views
Last Modified: 2013-12-17
I have been supplied some fonts for a website.

They are ".otf" files.

I have read this article regarding how to install and use the fonts on a website:

http://www.fontspring.com/support/installing_webfonts/how-do-i-use-the-webfonts

It looks as though if I bought the fonts directly myself they would include other file types like “.woff”, “.ttf” and “.svg”.

I only have the  ".otf" files. Do I need all of them for the web fonts to work correctly on my website or can I just use the ".otf" files?

When are each of these file types used? Are they browser specific?

Also do I use @font-face or is there another font solution that I can use.

I have used google fonts in the past, but they do not have this font in there library or can any font be used via google fonts if you buy the licence?

All advice appreciated.
0
Comment
Question by:petewinter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 39725223
That's a good article.  In my experience, you need all the fonts shown in the article except maybe the svg version.  'otf' by itself is not enough.  IE uses the 'eot' and you need both versions shown in the example code, Firefox uses the 'woff', and Chrome will use either the 'ttf' or the 'svg'.  In my application, the CSS file for the web-fonts needed to be in the same directory as the fonts themselves.

The Google fonts are only the ones that they supply.  You can't buy a font from Adobe or Lintype and upload it to Google.  And a lot of fonts are not licensed for use as 'web-fonts' anyway.
0
 

Author Closing Comment

by:petewinter
ID: 39725261
Perfect. Many thanks
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39725269
You're welcome, glad to help.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question