I’m working on a wince port which uses cairo and fontConfig (but not Pango), but can’t seem to find why the html lang tag (usually paired with xml:lang) does not trigger fontConfig to match with a Chinese font.

 

For example:

 

<blockquote xml:lang="zh-CN" lang="zh-CN">

 

<p>&#x5b50;&#x66f0; … </p>

 

I’ve verified specifying a Chinese font, or even CSS style params matching lang(zh) works for me, but the above code alone does not trigger the same matches.

 

Thank you for any suggestions,

Eric Welch

BSquare