W3C home > Mailing lists > Public > www-style@w3.org > May 2015

Re: [css-ruby] ruby offset affected by font?

From: Bobby Tung <bobbytung@wanderer.tw>
Date: Wed, 20 May 2015 19:19:09 +0800
Cc: Shinyu Murakami <murakami@vivliostyle.com>, www-style list <www-style@w3.org>
Message-Id: <20D62F6C-3AD2-4212-BB3E-8C5E100D49C5@wanderer.tw>
To: Xidorn Quan <quanxunzhen@gmail.com>

> Xidorn Quan <quanxunzhen@gmail.com> 於 2015年5月20日 下午6:48 寫道:
>> On Wed, May 20, 2015 at 8:49 PM, Shinyu Murakami <murakami@vivliostyle.com> wrote:
>> I guess this gap is caused by the TypoLineGap [1] value of the font metrics.
>> MS Mincho and IPAMincho's TypoLineGap value is 0 and Meiryo's is 1024 (1/2 of unitsPerEm 2048).
>> This value is "to compute a typographically correct default line spacing" [1] and should not used for ruby positioning.
> I don't really know what causes the large gap of Meiryo, since I'm not that familiar with font metrics. But AFAICS, the spacing is not because of TypoLineGap.
> I made a copy of Meiryo with TypoLineGap being 0, but it doesn't seem to have any difference on the rendering result.

I'd like to figure out where the problem is. Here's a sample in Chinese.

Figure 1, Arphic Song-Demibold

Works as intended. Same result with Source Sans TC.

Figure 2, OS X Songti TC

line-height is expanded by ruby texts. 

> - Xidorn

Received on Wednesday, 20 May 2015 11:19:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC