[webkit-dev] Size Of Ruby Text?
Eric Mader
emader at apple.com
Wed Nov 3 12:05:17 PDT 2010
On Nov 3, 2010, at 8:56 AM, David Hyatt wrote:
> WebKit enforces a minimum font size of 9px when no explicit font size is specified. This means that the font for <rt> cannot fall below 9px if it is relative to the user agent default. It may be that we want to consider modifying this minimum for ruby text and allow it to go below 9px though. I'm not sure.
Yes, that's probably what I'm seeing. I'm using default font size, which is probably 12pt.
> If you make a really big Ruby (e.g., <ruby style="font-size:96px"> and then modify the font-size percentage on the <rt>, you should be able to see it take effect.
>
> We should probably just study real-world Japanese examples to see how small Ruby typically is allowed to get. If it can go below 9px and still be readable, we should perhaps consider allowing that.
I'm sure the detailed spec. addresses this issue. I'll review it.
> In terms of excluding Ruby text from the overall line height, I don't think the font-size of the <rt> is particularly relevant. You just want to hack the Ruby to turn the ruby text into overflow rather than having it be part of the overall height of the inline-block.
Of course. The website I was using has the line height set too tight for correct display this way, and I just wanted to try a smaller size to see if it looked better. OTOH, that site loads a style sheet that overrides the ruby text font-size to 6pt, so I can't easily override it, and its' probably displaying as 9pt anyhow.
> dave
> (hyatt at apple.com)
Regards,
Eric
> On Nov 3, 2010, at 1:20 PM, Eric Mader wrote:
>
>> Hi,
>>
>> As part of my work on ruby text enhancements, I'm implementing the option of not counting the height of the ruby text in the overall line height. As part of this, I wanted to play with changing the size of the ruby text. I'm trying to do this by changing the following lines in <WebKit>/WebCore/css/html.css:
>>
>> ruby > rt {
>> display: block;
>> font-size: 60%; /* make slightly larger than 50% for better readability */
>> text-align: center;
>> text-decoration: none;
>> }
>>
>> However, when I change the font-size: attribute to, say, 50%, I don't see any difference in the size of the ruby text. (I even tried 25% just to be sure). Is this value being set somewhere else?
>>
>> Regards,
>> Eric Mader
>>
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101103/7cf7fd9a/attachment.html>
More information about the webkit-dev
mailing list