<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In printing the standard is 50% of the base text. For larger point sizes like headings, the size of ruby is often smaller than 50%.</div><div><br></div><div><a href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604/#en-subheading2_3_3">http://www.w3.org/TR/2009/NOTE-jlreq-20090604/#en-subheading2_3_3</a></div><div><br></div><div>So, how about we default to 50% and see how they come out.&nbsp;Glyphs designed for ruby are optimized for those small point sizes. It is possible on some screen resolutions we might want to make it a bit bigger but as screen resolution gets higher I think it makes more sense to stick to 50% following the standard in printing.</div><div><br></div><div>- kida</div><div><br></div><div><div>On 2010/11/03, at 12:05, Eric Mader wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 3, 2010, at 8:56 AM, David Hyatt wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">WebKit enforces a minimum font size of 9px when no explicit font size is specified. &nbsp;This means that the font for &lt;rt&gt; cannot fall below 9px if it is relative to the user agent default. &nbsp;It may be that we want to consider modifying this minimum for ruby text and allow it to go below 9px though. &nbsp;I'm not sure.</div></blockquote><div><br></div>Yes, that's probably what I'm seeing. I'm using default font size, which is probably 12pt.</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>If you make a really big Ruby (e.g., &lt;ruby style="font-size:96px"&gt; and then modify the font-size percentage on the &lt;rt&gt;, you should be able to see it take effect.</div><div><br></div><div>We should probably just study real-world Japanese examples to see how small Ruby typically is allowed to get. &nbsp;If it can go below 9px and still be readable, we should perhaps consider allowing that.</div></div></blockquote><div><br></div>I'm sure the detailed spec. addresses this issue. I'll review it.</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In terms of excluding Ruby text from the overall line height, I don't think the font-size of the &lt;rt&gt; is particularly relevant. &nbsp;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.</div></div></blockquote><div><br></div>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.</div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>dave</div><div>(<a href="mailto:hyatt@apple.com">hyatt@apple.com</a>)</div></div></blockquote><div><br></div>Regards,</div><div>Eric</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div>On Nov 3, 2010, at 1:20 PM, Eric Mader wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>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 &lt;WebKit&gt;/WebCore/css/html.css:</div><div><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">ruby &gt; rt {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; &nbsp; display: block;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; &nbsp; font-size: 60%; /* make slightly larger than 50% for better readability */</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; &nbsp; text-align: center;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; &nbsp; text-decoration: none;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">}</div><div><br></div><div>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?</div><div><br></div><div>Regards,</div><div>Eric Mader</div><div><br></div></div>_______________________________________________<br>webkit-dev mailing list<br><a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br><a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br></blockquote></div><br></div></div></div></blockquote></div><br></div>_______________________________________________<br>webkit-dev mailing list<br><a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev<br></blockquote></div><br></body></html>