By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

Problems loading fonts

P: n/a
Hello.

I'm trying to load fonts in a web page using "style" tag. The TTF files are
in other page whose URL is, for example, "http://myURL/fonts". 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>
</head>
<body>
<font color="#000000" size="12" face="akbar">texto con fuente cargada Akbar
</font>
<font color="#000000" size="12" face="gino">texto con fuente cargada Gino
</font>
</body>
</html>

Sometimes I can view the first text in Akbar font if I load the Akbar TTF
(by clicking over the TTF file) but never the second text.

Can someone help me?

Thank you very much.

GGG
May 13 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hello again.

After posting my message I tried to put the exact name of Gino font (the one
that is whitin the TTF fila, that is GinoSchoolScript) and then I can view
also the Gino text in Gino font if I load the Gino TTF. But I think that it
must have some way to view that without loading the TTF fonts.

So I need yet some help.

GGG

"traditore" <tr*******@mixmail.com> escribió en el mensaje
news:e4**********@nsnmpen2-gest.nuria.telefonica-data.net...
Hello.

I'm trying to load fonts in a web page using "style" tag. The TTF files are in other page whose URL is, for example, "http://myURL/fonts". 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>
</head>
<body>
<font color="#000000" size="12" face="akbar">texto con fuente cargada Akbar </font>
<font color="#000000" size="12" face="gino">texto con fuente cargada Gino
</font>
</body>
</html>

Sometimes I can view the first text in Akbar font if I load the Akbar TTF
(by clicking over the TTF file) but never the second text.

Can someone help me?

Thank you very much.

GGG

May 13 '06 #2

P: n/a
traditore wrote:
Hello.

I'm trying to load fonts in a web page using "style" tag. The TTF files are
in other page whose URL is, for example, "http://myURL/fonts". 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>
</head>
<body>
<font color="#000000" size="12" face="akbar">texto con fuente cargada Akbar
</font>
<font color="#000000" size="12" face="gino">texto con fuente cargada Gino
</font>
</body>
</html>

Sometimes I can view the first text in Akbar font if I load the Akbar TTF
(by clicking over the TTF file) but never the second text.

Can someone help me?

Thank you very much.

GGG


You are trying to use a capability that is not generally implemented.
The @font-face style-sheet capability was specified in CSS2 but deleted
when CSS2 was replaced by CSS2.1. Web fonts are proposed for CSS3,
still using the @font-face syntax. However, this part of CSS3 is not
scheduled for final publication until 2008.

The best advice would be to specify a font-family with a small number of
specific alternative fonts, ending with one or two generic families
(e.g., serif, cursive). Give the user the ability to choose his or her
own fonts.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
May 13 '06 #3

P: n/a
Hello David.

I thank you very much about your complete information. Now I know that must
forget it, at less until 2008.

Regards,

GGG
"David E. Ross" <no****@nowhere.not> escribió en el mensaje
news:dq******************************@iswest.net.. .
traditore wrote:
Hello.

I'm trying to load fonts in a web page using "style" tag. The TTF files are in other page whose URL is, for example, "http://myURL/fonts". 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>
</head>
<body>
<font color="#000000" size="12" face="akbar">texto con fuente cargada Akbar </font>
<font color="#000000" size="12" face="gino">texto con fuente cargada Gino </font>
</body>
</html>

Sometimes I can view the first text in Akbar font if I load the Akbar TTF (by clicking over the TTF file) but never the second text.

Can someone help me?

Thank you very much.

GGG


You are trying to use a capability that is not generally implemented.
The @font-face style-sheet capability was specified in CSS2 but deleted
when CSS2 was replaced by CSS2.1. Web fonts are proposed for CSS3,
still using the @font-face syntax. However, this part of CSS3 is not
scheduled for final publication until 2008.

The best advice would be to specify a font-family with a small number of
specific alternative fonts, ending with one or two generic families
(e.g., serif, cursive). Give the user the ability to choose his or her
own fonts.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>

May 13 '06 #4

P: n/a
traditore wrote:

I'm trying to load fonts in a web page using "style" tag. The TTF files are
in other page whose URL is, for example, "http://myURL/fonts". The HTML
code is something like:

Another consideration is the licensing terms for the fonts. If they are
public domain, no problem. If they are published by type foundries, I
doubt that you can freely distribute them.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 13 '06 #5

P: n/a
VK

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.

May 14 '06 #6

P: n/a
Hello Jim.

I think you are right. May be I have problems if I use fonts that aren't
public domain.

Thank you for your answere and your advise.

GGG

"Jim Moe" <jm***************@sohnen-moe.com> escribió en el mensaje
news:4s********************@giganews.com...
traditore wrote:

I'm trying to load fonts in a web page using "style" tag. The TTF files are in other page whose URL is, for example, "http://myURL/fonts". The HTML
code is something like:

Another consideration is the licensing terms for the fonts. If they are
public domain, no problem. If they are published by type foundries, I
doubt that you can freely distribute them.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

May 14 '06 #7

P: n/a
Hello VK.

Your information is very interesting and clarifying for me. I apologize for
the incorrect use of "load" and, of course, for my bad english.

Thank you very much.

GGG
"VK" <sc**********@yahoo.com> escribió en el mensaje
news:11*********************@v46g2000cwv.googlegro ups.com...

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.

May 14 '06 #8

P: n/a
Hello VK.
This is only to tell you that I got the Weft3 software, made the ".eot"
files and it worked perfectly.

Thank you very much once more.

GGG

"VK" <sc**********@yahoo.com> escribió en el mensaje
news:11*********************@v46g2000cwv.googlegro ups.com...

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.

May 15 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.