Differences between revisions 35 and 36
Revision 35 as of 2012-12-16 20:03:52
Size: 2791
Editor: KaiJaeger
Comment:
Revision 36 as of 2014-01-14 17:26:18
Size: 1710
Editor: KaiJaeger
Comment: Update
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Converting a TTF font into EOT ==
In order to use the "APL385 Unicode" fonts for font embedding in IE we need to convert this font into an EOT file. Now if you are interested in how to do this, <<SeeSaw(section="EOT", toshow="<<here are the details>>", tohide="<<hide the details>>", bg="#FEE1A5", speed="Slow")>>
== Update 2014-01-14 ==
Line 8: Line 7:
{{{{#!wiki seesaw/EOT/EOT-bg/hide Since the article was published on Vector things have improved. Internet Explorer now understands "local". All modern browsers (including IE 9, 10 & 11) on all platforms but Opera Mini at least pretend to support the relatively new WOFF font format - see http://caniuse.com/woff for details. For that very reason the APL Wiki is downloading the WOFF version of the APL385 Unicode font now.
Line 10: Line 9:
There is a tool available from Microsoft called WEFT that theoretically allows us to do this, but unfortunately IE won't use the resulting EOT file. The reasons are unknown.

However, there is a tool available that '''can''' create an EOT file that is used by IE8. Originally it was a UNIX/LINUX project:

http://code.google.com/p/ttf2eot/

This tool has a disadvantage: it does not allow us to bind the EOT-file to a particular URL. In our case, however, it doesn't matter as we will see.

The syntax to convert any font is easy; given you are in a directory where the exe as well as the font to be converted is located:

{{{
  ttf2eot.exe OLD-FONT.ttf NEW-FONT.eot
}}}
}}}}

But you don't have to: Instead you can download a zipped version of the EOT file from this page, see the "Downloads" section at the very end of the page.
However, I found that Opera on Windows does not make use of the WOFF font. Therefore I've also added the TTF format; that fixed the problem. This is the only reason why the TTF font is still offered for download.
Line 29: Line 13:
Any EOT file is supposed to come with a particular URL inside the file: IE won't accept a font which got downloaded from elsewhere. Fortunately, IE '''does''' accept an EOT file that does not have '''any '''URL specified. This is important for the APL Wiki since we cannot download the font from <<BR>>`http://aplwiki.com/apl385 Unicode.eot`<<BR>> because this URL would be processed by the wiki software (!MoinMoin) and therefore result in a "Page not found". Because IE now supports WOFF we don't need the awkward EOT font anymore. That means we don't need to change anything on the web server side anymore.
Line 31: Line 15:
But Apache, the web server used for the APL Wiki, won't deliver the font from another domain with it's default configuration. To change that you must include this into your Apache configuration file (httpd.conf): == Linux ==
Line 33: Line 17:
{{{
Header set Access-Control-Allow-Origin "*"
}}}
This decreases the safety of the web site marginally.

I have no experiences with IIS.
All browsers under Linux should support the APL chars now. I've tested Firefox and Chrome with Ubuntu.
Line 41: Line 20:
 * [[attachment:apl385.eot.zip]] (The "APL385 Unicode" font as EOT file; needed for IE)
 * [[attachment:apl385.ttf.zip]] (The "APL385 Unicode" font as TTF file; needed for IE)
 * [[ftp://aplwiki.com/APL_Fonts/apl385.woff.zip]] (The "APL385 Unicode" font as WOFF file; should suffice for all modern browsers)
 * [[ftp://aplwiki/com/APL_Fonts/apl385.ttf.zip]] (The "APL385 Unicode" font as TTF file; needed for Opera only)
Line 47: Line 26:
Updated: 2010-02-21

UnderstandingFontEmbedding

Note that this page is connected to the article Understanding Font Embedding on Vector, the APL magazine of the British APL association. Everything that is subject to changes is on this page on the APL Wiki, and it 's going to be updated whenever needed.

Update 2014-01-14

Since the article was published on Vector things have improved. Internet Explorer now understands "local". All modern browsers (including IE 9, 10 & 11) on all platforms but Opera Mini at least pretend to support the relatively new WOFF font format - see http://caniuse.com/woff for details. For that very reason the APL Wiki is downloading the WOFF version of the APL385 Unicode font now.

However, I found that Opera on Windows does not make use of the WOFF font. Therefore I've also added the TTF format; that fixed the problem. This is the only reason why the TTF font is still offered for download.

Web server issues

Because IE now supports WOFF we don't need the awkward EOT font anymore. That means we don't need to change anything on the web server side anymore.

Linux

All browsers under Linux should support the APL chars now. I've tested Firefox and Chrome with Ubuntu.

Downloads

Author: KaiJaeger


CategoryUnicode

UnderstandingFontEmbedding (last edited 2017-11-21 10:08:49 by KaiJaeger)