HighDots Forums  

Re: how to create web page using different foriegn fonts?

alt.html.writers alt.html.writers


Discuss Re: how to create web page using different foriegn fonts? in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?=
 
Posts: n/a

Default Re: how to create web page using different foriegn fonts? - 12-04-2003 , 12:13 AM






Kyo,

Please do not cross-post in non-related groups. Your sample clearly shows
this is in a web page, so you can cut out the comp.lang.java hierchy.

On Fri, 13 Jun 2003 00:15:24 +0100, Kyo wrote:

Quote:
Hi,
I would like to make some web pages using foreign fonts. Now the problem
is- if I write something in Chinese language using this coding.

font="Chinese"
whatever
/font

only those people will see this text who has Chinese fonts installed in
his computer. But someone who don't have this font installed in his
computer can't read it.But I want this text to make readable to every body
even if someone doesn't has Chinese font installed. Is there any way to
solve this problem?


thanks
How many languages will be displayed on the page?

If _everything_ is in the same language, simply declare the language in
your DOCTYPE tag (as well as the Content-language meta tag), use proper
unicode values for the characters, and let the browser do the rest.

If your page is all in Chinese, only those with fonts that support Chinese
will frequent it.

If your page has mixed languages, mark your document as UTF-8. Use <div>
and <span> to indicate what is in which language. You may wish to use CSS
to specify a list of possible fonts for each language. Finally, embedded
fonts are a possibility. I've never created one and users can disable
them, so your mileage may vary.

As a last resort, you can create images of the Chinese characters. The
downside is that spiders (such as google) will not understand the meaning
(unless you include the alt attribute). Also, text generally loads faster
than graphics.

HTH,
La'ie Techie



Reply With Quote
  #2  
Old   
Bertilo Wennergren
 
Posts: n/a

Default Re: how to create web page using different foriegn fonts? - 12-04-2003 , 04:45 AM






Lāʻie Techie:

Quote:
If your page has mixed languages, mark your document as UTF-8.
It's not enough to just mark the document as UTF-8. You also have to
actually use UTF-8 in the document. That could of course mean
restricting the code to ASCII (a subset of UTF-8), using character
references (or entities) for everything else. (And remember ASCII is not
the same as Latin 1.)

--
Bertilo Wennergren <bertilow (AT) gmx (DOT) net> <http://www.bertilow.com>



Reply With Quote
  #3  
Old   
Allen
 
Posts: n/a

Default Re: how to create web page using different foriegn fonts? - 12-10-2003 , 11:04 PM



Bertilo Wennergren wrote:

Quote:
L??ie Techie:

If your page has mixed languages, mark your document as UTF-8.

It's not enough to just mark the document as UTF-8. You also have to
actually use UTF-8 in the document. That could of course mean
restricting the code to ASCII (a subset of UTF-8), using character
references (or entities) for everything else. (And remember ASCII is not
the same as Latin 1.)

There are multi-bit editors that will support utf-8. Even Mozilla will let you
export utf-8 without using entities.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.