473,735 Members | 6,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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">te xto con fuente cargada Akbar
</font>
<font color="#000000" size="12" face="gino">tex to 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 6550
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 GinoSchoolScrip t) 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*******@mixm ail.com> escribió en el mensaje
news:e4******** **@nsnmpen2-gest.nuria.tele fonica-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">te xto con fuente cargada Akbar </font>
<font color="#000000" size="12" face="gino">tex to 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">te xto con fuente cargada Akbar
</font>
<font color="#000000" size="12" face="gino">tex to 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">te xto con fuente cargada Akbar </font>
<font color="#000000" size="12" face="gino">tex to 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.c om/schools_ring/fonts.html>
Note that Akbar.eot can be used only from
<http://www.geocities.c om/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.c om/typography/web/embedding/demos/1/demo1.htm>

The needed software can be obtained here:
<http://www.microsoft.c om/typography/web/embedding/weft3/>

If you have Netscape 4.x installed (or just for educational purposes)
you may visit <http://www.bitstream.c om>, 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******** ************@gi ganews.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**********@y ahoo.com> escribió en el mensaje
news:11******** *************@v 46g2000cwv.goog legroups.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.c om/schools_ring/fonts.html>
Note that Akbar.eot can be used only from
<http://www.geocities.c om/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.c om/typography/web/embedding/demos/1/demo1.htm>

The needed software can be obtained here:
<http://www.microsoft.c om/typography/web/embedding/weft3/>

If you have Netscape 4.x installed (or just for educational purposes)
you may visit <http://www.bitstream.c om>, 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**********@y ahoo.com> escribió en el mensaje
news:11******** *************@v 46g2000cwv.goog legroups.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.c om/schools_ring/fonts.html>
Note that Akbar.eot can be used only from
<http://www.geocities.c om/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.c om/typography/web/embedding/demos/1/demo1.htm>

The needed software can be obtained here:
<http://www.microsoft.c om/typography/web/embedding/weft3/>

If you have Netscape 4.x installed (or just for educational purposes)
you may visit <http://www.bitstream.c om>, 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
2654
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 select a printer and output my data. 1. If I am in the VB5 IDE, the printer output appears to be non-proportional and looks perfect because it all lines up. 2. If I am running the compiled program by itself, the printer output uses a
0
1309
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 with chinese fonts pack installed, my databse font can show up correctly in product details page, however, when I add the items to my shopping cart, all the fonts become ??????????????? inside the shopping cart, it's seems all the chinese become...
1
1758
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 me wrong; I just don't WANT to heh. Or at least, I was hoping to have as much of the coding done automatically by some other program, understanding that nothing will look as sharp, as crisp as the original PM6 document itself. I already have...
5
4012
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 and breaks between then appear. Why the two different behaviors on the same browser but different OS's? Anyway, that page as an example DOES W3C HTML validate AND W3C CSS validate as well. So, there's no ERRORS per se, but I suppose there's...
2
1801
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, but when I use ImageFont.truetype(<font-file>, <size>) no text is drawn. setup.py reports from debug print statements that it's finding freetype21. The same code using (Fredrik's pre-built binary) on Windows runs correctly and produces...
18
6517
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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > <html
1
1408
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 also its size - I can't determine that as some fonts are bigger than others at same pts. setting). All machines are installed with latest .net service pack. Are the fonts part of the .net framework? How can I solve this problem?
4
981
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 importantly the two most important buttons on the first tab page aren't there! is there anything to look out for/try (the buttons are both anchored bottom,right) ?
5
3144
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 = "C:/Windows/Fonts/comic.TTF". Here is the traceback that results:
0
8962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9463
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9327
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9200
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8201
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6049
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4559
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4822
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.