Click here to get back home

Problems loading fonts

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems loading fonts traditore 05-13-2006
Get Chitika Premium
Posted by traditore on May 13, 2006, 9:44 am
Please log in for more thread options


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



Posted by traditore on May 13, 2006, 9:56 am
Please log in for more thread options


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

> 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
>
>



Posted by David E. Ross on May 13, 2006, 11:08 am
Please log in for more thread options


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/>

Posted by traditore on May 13, 2006, 2:08 pm
Please log in for more thread options


Hello David.

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

Regards,

GGG
> 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/>



Posted by Jim Moe on May 13, 2006, 5:01 pm
Please log in for more thread options


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)

Similar ThreadsPosted
Print CSS Not Loading September 20, 2007, 12:41 pm
Loading Website All At Once June 6, 2008, 5:24 pm
How to make a Loading Page March 14, 2005, 11:35 am
loading a new page by metaTag August 12, 2006, 8:28 am
Loading HTML docnt into a page October 12, 2005, 12:48 pm
Help! Slow Loading Issue-information management March 4, 2007, 11:22 pm
Single loading .swf file - code or frame? July 26, 2007, 10:26 am
Loading picture before the using java applet / progress bar or waiting message ? October 8, 2004, 12:05 am
... storage for remote loading or as a door or signpost to another home page November 14, 2007, 6:05 pm
Fonts October 1, 2004, 4:30 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap