[webkit-dev] testing strategy? - CJK line breaking tests
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...
More information about the webkit-dev