For continued disscussion on this topic : Fonts
Sayeed
06-30-2000, 12:54 AM
Hi..
can u help me about the font displying problem in webpage...?
I guess u can...
I am from dhaka... I want to display my page contents in Bangla font but i dont want the visitors to install it...
Is there any solution...? for example in http://www.bangla2000.com/Bangla/News/Archive/Cricket/sports_cricket.asp website they dont require install any font to display the contents in bangla...? how do they do that...?
I'm soirry if i annoyed you.. thanks in advance...
Sayeed
[Edited by Sayeed on 06-30-2000 at 11:35 AM]
caislander
06-30-2000, 02:13 AM
Hi Sayeed,
I went to the web site you pointed out and the only thing I saw that was not in english was a single word(??) in upper left hand corner (it says "new" next to it) if you are asking how they did that it was done by the use of an image instead of a font.
I do not know of any way that you can display a font your viewer doesn't have on there computer besides making it into an image, and any large amount of text converted to an image will make the page size to large to load quickly (it works well when you are only talking about a small amount of text). Maybe an alternative is to create 2 pages 1 in standard font 1 in Bangla font and use a splash page intro giving your viewer the option, then if they want to view the page with the Bangla font you could provide a download link so they can download the font. The only other thing I can think of is that maybe you could use pc translating software and then copy and paste the translation, but I am not sure how that would work it seems like the software would have go download the font in order to display it then you would be back to square one. Maybe someone else will have another idea..
Hope This Helped Some :)
Vincent Puglia
06-30-2000, 02:28 PM
Hi,
Downloading Fonts: From O'Reilly's "Dynamic HTML the Definitive Reference" by Danny Goodman:
for netscape:
<style type="text/css">
#fontdef url("....fontname.pfr')
</style>
<link rel=fontdef src="....fontname.prf'>
for ie:
<style type="text/css">
#font-face
{
font-family:familyName;
font-style:normal;
font-weight:normal;
src:url("fontName.eot")
}
</style>
Vinny
caislander
06-30-2000, 04:33 PM
Vinny,
I can see i'm gonna have to get that book anyway a quick question on this inline style, maybe I'm just being dense :bambooz: but aren't most (majority) fonts .ttf and if so any idea what the "fontname.pfr" or "fontName.eot" part is doing? I only ask because it is different for NN & IE style while the font would be the same..
Any thoughts would be apreciated :bambooz:
[Edited by caislanders on 06-30-2000 at 10:45 AM]
Vincent Puglia
06-30-2000, 07:22 PM
Hi caislanders,
Yes, it is a good book; light on examples, but heavy on reference.
Goodman doesn't explicity state what they stand for, but he talks about TrueType for IE and Bitstream TrueDoc for NN. I've never had occasion to download fonts (being a true believer in form follows function) since I've never seen a need for any. (Of course, all my stuff is done with western civ's alphabet.)
Regarding the downloading itself: besides going about it differently, NN & IE also use different font brands (?). I agree the font files I've looked at were of the *.ttf variety, but perhaps the *.pfr & *.eot are the 'zipped'/ pre-downloaded format -- I'm only guessing, though.
Vinny
Sayeed
07-01-2000, 06:38 AM
Dear Vinny,
The example u showed in the last mail is not working in my browser... ( I'm using IE5.5)... Can I test it locally in my Harddisk using MS personal web server...? If I can then how should i do that...?
Thankig u again...
Sayeed
Vincent Puglia
07-01-2000, 01:47 PM
Hi Sayeed,
(Remember, I've never had occasion to test the above code.)
You should be able to. Put the file in the same directory as the web page you're creating. Make sure the src:url("..."); is pointing to the file. Keep your fingers crossed :)
Vinny
Arielladog
07-01-2000, 03:53 PM
if you read this article, it should really help you. It gives great information on embedded fonts.
Vincent Puglia
07-01-2000, 08:23 PM
OOPs
Thanks Arielladog,
But you forgot the link :)
Vinny
Arielladog
07-01-2000, 08:56 PM
hehe, I guess that would be important...just absent-minded, I guess. Here it is:
Web Building - Web Authoring - Alternative Typography: Embedded Fonts (http://www.builder.com/Authoring/Typography/?tag=st.bl.3880.also.bl_Typography)
caislander
07-01-2000, 09:53 PM
Hi Arielladog,
What a great article, it did a great job of explaining the ebedding process from start to finish, Not a very cheap deal minimum $100. in software, won't be using that in my pages soon...
Vinny,
Guess this explaines how you have 2 different extensions for the same font (.pfr vs .eot on the same font) I learn something new here everyday. :)
Later
Sayeed
07-02-2000, 07:45 PM
Hi Arielladog and all,
thanks for such a good link....
and about $99 .. hmm.. i have to take 10 time free chances....
well here is the code the bangla200 wesite uses for their font.js file ....
------start of the code-->
bVer = parseInt(navigator.appVersion);
if (bVer >= 4)
{
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
if (navigator.appName == "Netscape")
{
document.write ('<link rel="fontdef" src="http://www.bangla2000.com/bangla/scripts/sushreemj.pfr">');
}
else
{
document.write ('<style type="text/css">');
document.write ('@font-face {');
document.write ('font-family: SushreeMJ'+"\;");
document.write ('font-style : normal'+"\;");
document.write ('font-weight: normal'+"\;");
document.write ('src : url("http://www.bangla2000.com/bangla/scripts/Sushree0.eot")');
document.write ('}');
document.write ('</style>');
}
}else
location.href="http://www.bangla2000.com/bangla/help.html";
---- end of the code--->
Thanking again...
Sayeed
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.