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

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

From: Glenn Adams <glenn@skynav.com>
Date: Wed, 11 Jan 2017 06:55:53 -0700
Message-ID: <CACQ=j+dhqS0FC1nQmTQSe9e2xBVVC_Zj0k_rw6hX+bS6s2V9xg@mail.gmail.com>
To: Tony Graham <tgraham@antenna.co.jp>
Cc: "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
On Wed, Jan 11, 2017 at 6:19 AM, Tony Graham <tgraham@antenna.co.jp> wrote:

> On 11/01/2017 12:45, Amick, Eric wrote:
>
>> You could try
>>
>> <fo:block font-family=”SimSun, Arial”>
>> Text
>> </fo:block>
>>
>
> Almost, but not quite.
>
> <fo:block font-family="Arial, SimSun">2015年12月</fo:block>
>
> should work, since the FO Processor should look at each of the specified
> font names in 'font-family' in turn to try to find a glyph [2]. Arial
> (other than 'Arial Unicode MS') wouldn't be expected to contain the
> ideographs, so it's unlikely that your version of Arial has them. The
> formatter would then have to look in SimSun to find them.
>
> To be doubly certain, you could add
> 'font-selection-strategy="character-by-character"' [2] so each character
> is considered individually, but I couldn't get it to make any difference
> in this example.
>

this feature isn't implemented in FOP


>
> If you are using AH Formatter, you could configure the font settings [3]
> in your Option Setting File to set the default font for, e.g., 'serif'
> and 'sans-serif' fonts for the 'Latn' and 'Hans' scripts so that you
> always get Arial, Times Roman, and SimSun just by using the generic font
> names.
>
> Regards,
>
>
> Tony Graham.
> --
> Senior Architect
> XML Division
> Antenna House, Inc.
> ----
> Skerries, Ireland
> tgraham@antenna.co.jp
>
>
> [1] https://www.w3.org/TR/xsl11/#font-selection-strategy
> [2] https://www.w3.org/TR/xsl11/#font-family
> [3] https://www.antennahouse.com/product/ahf64/ahf-optset.html#f
> ont-settings
>
>
Received on Wednesday, 11 January 2017 13:56:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 January 2017 13:56:47 UTC