473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problems loading fonts

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
8 6523
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Val Mehling | last post by:
Up until now I have been able to avoid using Common Dialog by accessing printers directly. This is no longer possible, so- Using VB5 under XP Home Edition. I use the Common Dialog functions to...
0
by: sam | last post by:
Hi, I got problems about the charon V2 shopping cart with my asp pages (www.charon.com.hk), since my database (access) have Big5 chinese fonts, and I am hosting in a english 2000 server...
1
by: Curious Angel | last post by:
In my eternal search to locate a utility that would allow me to export PAGEMAKER documents (6.0, in this case) —> to HTML I stumbled upon this program, and was thrilled. I can do HTML, don't get...
5
by: news | last post by:
I've a site: http://gto.ie-studios.net/products.php that looks perfectly fine in Windows whether with IE or Firefox 1.0. But when viewed in the Linux version of Firefox 1.0, images get misaligned...
2
by: Steve Holden | last post by:
Is anyone aware of (a fix for) problems I'm having getting PIL 1.1.5 to create bitmaps using TrueType and openType fonts? When I create an image using the standard PIL fonts everything seems fine,...
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
1
by: Jesper | last post by:
Hi, I'm experiencing some font problems. A program I've made is distributed to a number of computeres in a workgroup. On some of the computers the font on a user control is changed, (perhaps...
4
by: Richard Bond | last post by:
Hi, I am having a problem with forms rendering differently on a windows 98 machine (It is Taiwanese aswell but hopefully that's not an issue). The form's height is larger than I expect, but most...
5
by: Christian Stapfer | last post by:
After switching from Python 2.3 to 2.4 (Enought), PIL throws an exception that did not occur formerly (under Python 2.3) when executing ImageFont.truetype(font, size) where font =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.