DescriptionAdjust glyph positions in RTL runs in SVGTextQuery
When calculating the glyph position of a glyph in an RTL run/line box,
make sure the position is computed from the right of the fragment
within the line box.
Also adjust calls to SVGTextMetrics::measureCharacterRange to pass the
direction of the line box rather than the direction of the layout
object.
Use the SVGTextMetrics stored in the layout attributes to get the
extents for getExtentOfChar to avoid having to redo the somewhat
involved extent computation for cursive scripts.
With this, glyph extents for cursive scripts are better but still far
from perfect/good. This is likely not the fault of the query code
though.
The test svg/text/bidi-text-query.svg is rewritten to better illustrate
the query order and the returned extents.
BUG=470326
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192701
Patch Set 1 #Patch Set 2 : More TEs. #
Total comments: 1
Messages
Total messages: 7 (2 generated)
|