Solved

Web Fonts - @font-face

Posted on 2013-12-17
3
604 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses how to create an extensible mechanism for linked drop downs.
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 …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

776 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