traditore wrote:
I'm trying to load fonts in a web page using "style" tag.
OK. Just a note: not "load" but "embed". These fonts do not become part
of your system fonts list, they exist only on the page and they are
gone with the page.
The TTF files are
in other page whose URL is, for example, "http://myURL/fonts".
OK, as long as the embed package is prepared properly.
The HTML
code is something like:
<html>
<head>
<style>
@font-face {
font-family: "akbar";
src: url("http://myURL/fonts/Akbar.TTF");
}
@font-face {
font-family: "gino";
src: url("http://myURL/fonts/GinoSchool.ttf");
}
</style>
And here you went off the base. You must got a /really/ old manual:- it
was originally expected that things will work as simple as that back in
95-97's. But font producers and destributors got furious (and for a
reason). So it was required from UA's producers to ensure that 1) font
resource would hold hardcoded data of the resource maker and 2) font
resource would be attached to a fixed list of domains from where it
could be used.
As a result both key players (Netscape and Microsoft) came with two
corresponding formats:
Portable Font Resource .ptr files on Netscape Navigator ( RFC3073 )
Embedded OpenType .eot files on Internet Explorer
ptr technology went away together with Netscape 4.x
eot technology is still alive and in good health, but supported by IE
only.
Other producers are still waiting for something - I don't know exactly
for what. Maybe they think that copyright restrictions will be
eventually removed (in 2008 or some later)? Or maybe cannot choose
either bring back to life .ptr, or jump on .eot or invent something
3rd? Dark story, anyway.
In any case you can embed fonts right now, which will cover the
majority of your visitors, and provide fallback fonts for not capable
UA's like Akbar, "Comic Sans MS", sans-serif;
Here is embedded Akbar sample:
<http://www.geocities.com/schools_ring/fonts.html>
Note that Akbar.eot can be used only from
<http://www.geocities.com/schools_ring/> folder and not anywhere else.
You also have no option to create .eot files with permission to "use
everywhere". That was the state requirement.
Here is Microsoft own sample:
<http://www.microsoft.com/typography/web/embedding/demos/1/demo1.htm>
The needed software can be obtained here:
<http://www.microsoft.com/typography/web/embedding/weft3/>
If you have Netscape 4.x installed (or just for educational purposes)
you may visit <http://www.bitstream.com>, inventor of pfr, for ptr
examples.