W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2017

RE: specifying fonts when latin and complex scripts are mixed together.

From: Amick, Eric <Eric.Amick@mail.house.gov>
Date: Wed, 11 Jan 2017 12:45:19 +0000
To: "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
Message-ID: <0AB460B0692CD24E8D1E3172983977C15478CA13@FHOB-HRM06.US.House.gov>
You could try

<fo:block font-family=”SimSun, Arial”>
Text
</fo:block>

but I’m skeptical it will work. More likely you will simply have to use fo:inline or fo:wrapper around the characters that need to be in Arial.

Eric Amick
Legislative Computer Systems

From: harry [mailto:listmanster@gmail.com]
Sent: Monday, January 9, 2017 7:32
To: www-xsl-fo@w3.org
Subject: RE: specifying fonts when latin and complex scripts are mixed together.

I have cases where latin characters are intermixed with complex script characters e.g.:

2015年12月

Here the 2015 needs to be "Arial" and the Chinese script in "SimSun". This is a chinese language document. Is there a way I can tell the xsl-fo processor to use Arial for latin characters when they appear within some blocks ?

Right now it uses SimSun to render 2015 and 12.  I also have cases where Abbreviations are in english (to be rendered in Times Roman) followed by chinese characters (SimSun).

Ashok

Received on Wednesday, 11 January 2017 12:45:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 January 2017 12:45:53 UTC