473,788 Members | 2,843 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 6553
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
2656
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
1310
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
1759
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
4017
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
1802
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
6522
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
1409
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
984
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
3146
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
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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
10175
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...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
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
6750
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.