|
Posted by Ben C on 12/05/06 11:47
On 2006-11-29, Thank Tank <think@tak.com> wrote:
> can anyone please help with character of asian font family ?
>
> i try define character for big 5 simplify chinese page.
>
> i am try two font family,
>
> this:
> font-family: "SimSum-18030;SimHei", Arial, serif;
>
> and this:
> font-family: SimSum-18030, SimHei, Arial, serif;
>
> can anyone tell which display directly on big 5 page or on iso-8859-1 page.
>
> thank you for much of you help.
>
> J . Huang
Usually you don't need to specify the font, it's more important to
specify the language and encoding correctly. Then the user's browser
should pick a suitable font for that language and encoding if they have
one on their system.
Ideally you should configure the server to add Content-Type and
Content-Language headers, but failing that, you can use metatags:
<meta http-equiv="Content-Type" content="text/html; charset=Big5">
<meta http-equiv="Content-Language" content="zh-cn">
in the <head> part of your document.
Content-Language is less important in this case as the browser can
easily and in most cases will guess that the language is zh-cn if the
encoding is Big5 as Big5 is only used for zh-cn.
Check that works OK if you open the page from a file:// url (where there
are no server headers to confuse the picture). Then try loading the page
from the server. If it doesn't work when coming from the server, you
will need to configure the server to deliver the proper headers. Note
that if the server is delivering Content-Type or Content-Language
headers, those have priority over metatags.
[Back to original message]
|