Well, I'm on my 7th out of 11 languages today, and only Khmer proved to be 
trouble so far.    And yes I am adding the xml:lang attribute to the content 
div . And I specify UTF-8 in the meta tag.

-----Original Message-----
From: Mark Richards [mailto:mark.richa...@date.com] 
Sent: Friday, June 18, 2010 12:00 PM
To: Angela French; css-d
Subject: RE: [css-d] styling non-english fonts

> From: Angela French
> Subject: [css-d] styling non-english fonts
> 
> I am creating some foreign language pages.  Cambodian/Khmer 
> renders vastly different font sizes between browsers.  Other 
> than making style sheets for each browser to style all my 
> page elements, is there some other way?

I've found that different browsers choose fonts differently, causing the
appearance of the page to vary widely.  For example, my personal site
asked for "Serif" font-family and displayed Chinese text.  IE6 used a
blocky sans font, IE 7 and 8 used a serif font, Firefox 2 used a serif
font, and Firefox 3 used a mix of blocky sans and serif.

The solution for Firefox, in my case, was to apply a lang attribute to
the elements in question, thus instructing Firefox to choose Chinese
fonts for all the characters instead of trying to use Japanese fonts for
some and Chinese fonts for others.  Once I had the page looking ok in
first-class browsers (IE6 still broke) I left it at that, but you will
probably want to specify some fonts and font-sizes in addition to the
lang attribute.

Mark
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to