Solved

Web Fonts - @font-face

Posted on 2013-12-17
3
636 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 83

Accepted Solution

by:
Dave Baldwin earned 500 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 83

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

737 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