Saturday, August 6, 2011

tried inlining some font embeds just to be obnoxious

Installing Webfonts

Gentium ("belonging to the nations" in Latin) is a Unicode typeface family designed to enable the many diverse ethnic groups around the world who use the Latin, Cyrillic and Greek scripts to produce readable, high-quality publications. The design is intended to be highly readable, reasonably compact, and visually attractive. Gentium has won a "Certificate of Excellence in Typeface Design" in two major international typeface design competitions: bukva:raz! (2001), TDC2003 (2003).
The Gentium Plus font family is based on the original design. It currently comes with regular and italic face only, although additional weights are in development.
The goal for this product is to provide a single Unicode-based font family that contains a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs, and provide a matching Greek face. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
(and so on) Webfonts are supported by all major browser platforms but not all in the same way. There are currently four different font formats that must be included in order to target all browsers. This includes TTF, WOFF, EOT and SVG.

@font-face { font-family: Parisian; src: url(fonts/Parisian.eot); /* IE */ src: local(Parisian), url(fonts/Parisian.ttf); /* Non-IE */ } 1 Same colors for color and background-color in two contexts div.bottom and h1 1 Same colors for color and background-color in two contexts div.bottom and body a 1 Same colors for color and background-color in two contexts div.header and h1 1 Same colors for color and background-color in two contexts div.pagetop and body a 1 Same colors for color and background-color in two contexts div.pagetop and h1 1 Same colors for color and background-color in two contexts .wp-caption and body a 1 Same colors for color and background-color in two contexts div.wrapper and h1 1 Same colors for color and background-color in two contexts .gallery img and body a 1 Same colors for color and background-color in two contexts .wp-caption and h1 1 Same colors for color and background-color in two contexts div.bottom and .gallery-caption 1 Same colors for color and background-color in two contexts body and h1 1 Same colors for color and background-color in two contexts div.pagetop and .gallery-caption 1 Same colors for color and background-color in two contexts .gallery img and h1 1 Same colors for color and background-color in two contexts .wp-caption and .gallery-caption 1 h6 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts .gallery img and .gallery-caption 1 h2 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 h4 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 .wp-caption Same color for background-color and border-top-color 1 Same colors for color and background-color in two contexts div.header and a:visited 1 .wp-caption Same color for background-color and border-right-color 1 Same colors for color and background-color in two contexts div.wrapper and a:visited 1 .wp-caption Same color for background-color and border-bottom-color 1 Same colors for color and background-color in two contexts body and a:visited 1 .wp-caption Same color for background-color and border-left-color 1 h1 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.bottom and div.sidebar 1 Same colors for color and background-color in two contexts div.wrapper and body a 1 Same colors for color and background-color in two contexts div.header and div.sidebar 1 #author Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.pagetop and div.sidebar 1 Same colors for color and background-color in two contexts div.wrapper and .gallery-caption 1 Same colors for color and background-color in two contexts div.wrapper and div.sidebar 1 h3 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts .wp-caption and div.sidebar 1 Same colors for color and background-color in two contexts div.pagetop and a:visited 1 Same colors for color and background-color in two contexts body and div.sidebar 1 Same colors for color and background-color in two contexts .gallery img and a:visited 1 Same colors for color and background-color in two contexts .gallery img and div.sidebar 1 Same colors for color and background-color in two contexts body and body a 1 #email Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts body and .gallery-caption 1 body Same color for background-color and color 1 Same colors for color and background-color in two contexts .wp-caption and a:visited 1 #url Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.header and .gallery-caption 1 #searchform Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.header and body a 1 .headtitle Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.bottom and a:visited 1 h5 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space.

2. Include the webfont stylesheet

A special CSS @font-face declaration helps the various browsers select the appropriate font it needs without causing you a bunch of headaches. Learn more about this syntax by reading the Fontspring blog post about it. The code for it is as follows: @font-face{ font-family: 'MyWebFont'; src: url('WebFont.eot'); src: url('WebFont.eot?#iefix') format('embedded-opentype'), url('WebFont.woff') format('woff'), url('WebFont.ttf') format('truetype'), url('WebFont.svg#webfont') format('svg'); } We've already gone ahead and generated the code for you. All you have to do is link to the stylesheet in your HTML, like this: <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />

3. Modify your own stylesheet

To take advantage of your new fonts, you must tell your stylesheet to use them. Look at the original @font-face declaration above and find the property called "font-family." The name linked there will be what you use to reference the font. Prepend that webfont name to the font stack in the "font-family" property, inside the selector you want to change. For example: p { font-family: 'WebFont', Arial, sans-serif; }

4. Test

Getting webfonts to work cross-browser can be tricky. Use the information in the sidebar to help you if you find that fonts aren't loading in a particular browser.

Troubleshooting Font-Face Problems

Having trouble getting your webfonts to load in your new website? Here are some tips to sort out what might be the problem.

Fonts not showing in any browser

This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you've confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted. Fonts not loading in iPhone or iPad

The most common problem here is that you are serving the fonts from an IIS server. IIS refuses to serve files that have unknown MIME types. If that is the case, you must set the MIME type for SVG to "image/svg+xml" in the server settings. Follow these instructions from Microsoft if you need help.

Fonts not loading in Firefox

The primary reason for this failure? You are still using a version Firefox older than 3.5. So upgrade already! If that isn't it, then you are very likely serving fonts from a different domain. Firefox requires that all font assets be served from the same domain. Lastly it is possible that you need to add WOFF to your list of MIME types (if you are serving via IIS.)

Fonts not loading in IE

Are you looking at Internet Explorer on an actual Windows machine or are you cheating by using a service like Adobe BrowserLab? Many of these screenshot services do not render @font-face for IE. Best to test it on a real machine.

Fonts not loading in IE9

IE9, like Firefox, requires that fonts be served from the same domain as the website. Make sure that is the case. ©2010-2011 Font Squirrel. All rights reserved. The subset of Parisian Regular in this kit includes all the glyphs listed below. Unicode entities are included above each glyph to help you insert individual characters into your layout.

Troubleshooting Font-Face Problems

Having trouble getting your webfonts to load in your new website? Here are some tips to sort out what might be the problem.

Fonts not showing in any browser This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you've confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted.

Fonts not loading in iPhone or iPad

The most common problem here is that you are serving the fonts from an IIS server. IIS refuses to serve files that have unknown MIME types. If that is the case, you must set the MIME type for SVG to "image/svg+xml" in the server settings. Follow these instructions from Microsoft if you need help.

Fonts not loading in Firefox

The primary reason for this failure? You are still using a version Firefox older than 3.5. So upgrade already! If that isn't it, then you are very likely serving fonts from a different domain. Firefox requires that all font assets be served from the same domain. Lastly it is possible that you need to add WOFF to your list of MIME types (if you are serving via IIS.) ©2010-2011 Font Squirrel. All rights reserved. The subset of Parisian Regular in this kit includes all the glyphs listed below. Unicode entities are included above each glyph to help you insert individual characters into your layout.

Fonts not loading in IE Are you looking at Internet Explorer on an actual Windows machine or are you cheating by using a service like Adobe BrowserLab? Many of these screenshot services do not render @font-face for IE. Best to test it on a real machine.

Fonts not loading in IE9

IE9, like Firefox, requires that fonts be served from the same domain as the website. Make sure that is the case. http://web.archive.org/web/20051223080638/bibliofile.mc.duke.edu/gww/fonts/fo... http://bibliofile.mc.duke.edu/gww/fonts/fonts.html ******************* Installing Webfonts ******************* Gentium ("belonging to the nations" in Latin) is a Unicode typeface family designed to enable the many diverse ethnic groups around the world who use the Latin, Cyrillic and Greek scripts to produce readable, high-quality publications. The design is intended to be highly readable, reasonably compact, and visually attractive. Gentium has won a "Certificate of Excellence in Typeface Design" in two major international typeface design competitions: bukva:raz! (2001), TDC2003 (2003). The Gentium Plus font family is based on the original design. It currently comes with regular and italic face only, although additional weights are in development. The goal for this product is to provide a single Unicode-based font family that contains a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs, and provide a matching Greek face. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally. (and so on) Webfonts are supported by all major browser platforms but not all in the same way. There are currently four different font formats that must be included in order to target all browsers. This includes TTF, WOFF, EOT and SVG.

Same colors for color and background-color in two contexts div.bottom and h1 1 Same colors for color and background-color in two contexts div.bottom and body a 1 Same colors for color and background-color in two contexts div.header and h1 1 Same colors for color and background-color in two contexts div.pagetop and body a 1 Same colors for color and background-color in two contexts div.pagetop and h1 1 Same colors for color and background-color in two contexts .wp-caption and body a 1 Same colors for color and background-color in two contexts div.wrapper and h1 1 Same colors for color and background-color in two contexts .gallery img and body a 1 Same colors for color and background-color in two contexts .wp-caption and h1 1 Same colors for color and background-color in two contexts div.bottom and .gallery-caption 1 Same colors for color and background-color in two contexts body and h1 1 Same colors for color and background-color in two contexts div.pagetop and .gallery-caption 1 Same colors for color and background-color in two contexts .gallery img and h1 1 Same colors for color and background-color in two contexts .wp-caption and .gallery-caption 1 h6 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts .gallery img and .gallery-caption 1 h2 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 h4 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 .wp-caption Same color for background-color and border-top-color 1 Same colors for color and background-color in two contexts div.header and a:visited 1 .wp-caption Same color for background-color and border-right-color 1 Same colors for color and background-color in two contexts div.wrapper and a:visited 1 .wp-caption Same color for background-color and border-bottom-color 1 Same colors for color and background-color in two contexts body and a:visited 1 .wp-caption Same color for background-color and border-left-color 1 h1 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.bottom and div.sidebar 1 Same colors for color and background-color in two contexts div.wrapper and body a 1 Same colors for color and background-color in two contexts div.header and div.sidebar 1 #author Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.pagetop and div.sidebar 1 Same colors for color and background-color in two contexts div.wrapper and .gallery-caption 1 Same colors for color and background-color in two contexts div.wrapper and div.sidebar 1 h3 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts .wp-caption and div.sidebar 1 Same colors for color and background-color in two contexts div.pagetop and a:visited 1 Same colors for color and background-color in two contexts body and div.sidebar 1 Same colors for color and background-color in two contexts .gallery img and a:visited 1 Same colors for color and background-color in two contexts .gallery img and div.sidebar 1 Same colors for color and background-color in two contexts body and body a 1 #email Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts body and .gallery-caption 1 body Same color for background-color and color 1 Same colors for color and background-color in two contexts .wp-caption and a:visited 1 #url Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.header and .gallery-caption 1 #searchform Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.header and body a 1 .headtitle Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 1 Same colors for color and background-color in two contexts div.bottom and a:visited 1 h5 Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space.

You must upload your webfont kit to your website. They should be in or near the same directory as your CSS files. --------------------------------- 2. Include the webfont stylesheet --------------------------------- A special CSS @font-face declaration helps the various browsers select the appropriate font it needs without causing you a bunch of headaches. Learn more about this syntax by reading the Fontspring blog post ( http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax ) about it. The code for it is as follows: @font-face{ font-family: 'MyWebFont'; src: url('WebFont.eot'); src: url('WebFont.eot?#iefix') format('embedded-opentype'), url('WebFont.woff') format('woff'), url('WebFont.ttf') format('truetype'), url('WebFont.svg#webfont') format('svg'); } We've already gone ahead and generated the code for you. All you have to do is link to the stylesheet in your HTML, like this: * ----------------------------- 3. Modify your own stylesheet ----------------------------- To take advantage of your new fonts, you must tell your stylesheet to use them. Look at the original @font-face declaration above and find the property called "font-family." The name linked there will be what you use to reference the font. Prepend that webfont name to the font stack in the "font-family" property, inside the selector you want to change. For example: p { font-family: 'WebFont', Arial, sans-serif; } ------- 4. Test ------- Getting webfonts to work cross-browser can be tricky. Use the information in the sidebar to help you if you find that fonts aren't loading in a particular browser. ---------------------------------- Troubleshooting Font-Face Problems ---------------------------------- Having trouble getting your webfonts to load in your new website? Here are some tips to sort out what might be the problem. Fonts not showing in any browser -------------------------------- This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you've confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted. Fonts not loading in iPhone or iPad ----------------------------------- The most common problem here is that you are serving the fonts from an IIS server. IIS refuses to serve files that have unknown MIME types. If that is the case, you must set the MIME type for SVG to "image/svg+xml" in the server settings. Follow these instructions from Microsoft if you need help. Fonts not loading in Firefox ---------------------------- The primary reason for this failure? You are still using a version Firefox older than 3.5. So upgrade already! If that isn't it, then you are very likely serving fonts from a different domain. Firefox requires that all font assets be served from the same domain. Lastly it is possible that you need to add WOFF to your list of MIME types (if you are serving via IIS.) Fonts not loading in IE ----------------------- Are you looking at Internet Explorer on an actual Windows machine or are you cheating by using a service like Adobe BrowserLab? Many of these screenshot services do not render @font-face for IE. Best to test it on a real machine. Fonts not loading in IE9 ------------------------ IE9, like Firefox, requires that fonts be served from the same domain as the website. Make sure that is the case. ©2010-2011 Font Squirrel. All rights reserved. The subset of Parisian Regular in this kit includes all the glyphs listed below. Unicode entities are included above each glyph to help you insert individual characters into your layout. ---------------------------------- Troubleshooting Font-Face Problems ---------------------------------- Having trouble getting your webfonts to load in your new website? Here are some tips to sort out what might be the problem. Fonts not showing in any browser This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you've confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted. --------------------------------------
--------------------------- Fonts not loading in iPhone or iPad ----------------------------------- The most common problem here is that you are serving the fonts from an IIS server. IIS refuses to serve files that have unknown MIME types. If that is the case, you must set the MIME type for SVG to "image/svg+xml" in the server settings. Follow these instructions from Microsoft if you need help. Fonts not loading in Firefox ---------------------------- The primary reason for this failure? You are still using a version Firefox older than 3.5. So upgrade already! If that isn't it, then you are very likely serving fonts from a different domain. Firefox requires that all font assets be served from the same domain. Lastly it is possible that you need to add WOFF to your list of MIME types (if you are serving via IIS.) ©2010-2011 Font Squirrel. All rights reserved. The subset of Parisian Regular in this kit includes all the glyphs listed below. Unicode entities are included above each glyph to help you insert individual characters into your layout. Fonts not loading in IE Are you looking at Internet Explorer on an actual Windows machine or are you cheating by using a service like Adobe BrowserLab? Many of these screenshot services do not render @font-face for IE. Best to test it on a real machine. -----------------------------------
------------------------------ Fonts not loading in IE9 ------------------------ IE9, like Firefox, requires that fonts be served from the same domain as the website. Make sure that is the case. http://web.archive.org/web/20051223080638/bibliofile.mc.duke.edu/gww/fonts/fo... http://bibliofile.mc.duke.edu/gww/fonts/fonts.html http://web.archive.org/web/20051223080638/bibliofile.mc.duke.edu/gww/fonts/fo... http://bibliofile.mc.duke.edu/gww/fonts/fonts.html

Weirdopedia says: "Weird" http://weirdopedia.posterous.com/tried-inlining-some-font-embeds-just-to-be-ob Installing Webfonts Gentium ("belonging to the nations" in Latin) is a Unicode typeface family designed to enable the many diverse ethnic groups around the world who use the Latin, Cyrillic and Greek scripts to produce readable, high-quality publications. The design is intended to be highly readable ...

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...