Upstream ScriptRunIterator for segmenting text runs by script
ScriptRunIterator takes a pointer to a UTF-16 text run, and a starting script value, then consume() can be called on it to retrieve the limit and script value of the next segmented script run. It takes care of matching brackets when resolving script runs. This functionality is needed for changing HarfBuzzShaper.cpp so that we do not need to pre-split and store the TextRun into HarfBuzzRuns. We can improve our script segmentation and integrate script splitting and shaping in one loop. Original code written by Doug Felt, big thanks! BUG=526095 R=eae,behdad Review URL: https://codereview.chromium.org/1323513006 git-svn-id: svn://svn.chromium.org/blink/trunk@201722 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment