[xep-support] Mixing Chinese and English fonts

Chris Lilley chris at w3.org
Sun Aug 29 23:46:53 PDT 2004


On Friday, August 6, 2004, 11:19:51 PM, Bob wrote:

BS> I have XML documents that are primarily Chinese but with occasional English
BS> words or phrases. The current font we use to render these documents contains
BS> both Chinese and Latin letters, but the Latin letters are of poor quality.
BS> We would like to substitute a better font for the English characters.

BS> I understand that with XSL-FO 1.0 you can provide a comma-separated list of
BS> font names in the font-family property.  However, one cannot designate
BS> specific characters or ranges to be rendered in the secondary fonts.  In
BS> other words, if a character is found in the primary font, that font will be
BS> used.

So, put your preferred Latin font first in the list. That is why it is a
list. Put your Chinese font second.

BS> I would like to avoid having to put all the English words within fo:inlines
BS> to switch fonts. So we are considering using something like Fontographer to
BS> edit the (open source) Chinese font to remove the Latin characters.  I
BS> believe this will then force XEP to switch to the secondary font-family when
BS> a Latin character is encountered in the input.  Is this a sound strategy?

No.

Do your preferred Latin fonts have any Chinese glyphs in them?

BS> Has anyone attempted this?

It should not be necessary.



-- 
 Chris Lilley                    mailto:chris at w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list