[webkit-dev] testing strategy? - CJK line breaking tests

Dan Bernstein mitz at apple.com
Tue Sep 4 08:26:47 PDT 2012



On Sep 4, 2012, at 5:50 AM, Glenn Adams <glenn at skynav.com> wrote:

>> 
>> Alternatively, you can compute the with of each character with script (without adding any new feature to WebKit).
> 
> Unfortunately, that won't work since I can't access the width of individual lines produced by formatting a block.

You can use Range’s getClientRects to get the widths of individual characters and to determine where a line breaks occur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120904/6f8a3036/attachment.html>


More information about the webkit-dev mailing list