Merge "Implement language-specific GSUB processing" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a80d642498
@ -721,7 +721,8 @@ void TextLayoutShaper::computeRunValues(const SkPaint* paint, const UChar* conte
|
||||
|
||||
hb_buffer_set_direction(mBuffer, isRTL ? HB_DIRECTION_RTL : HB_DIRECTION_LTR);
|
||||
hb_buffer_set_script(mBuffer, run.script);
|
||||
// Should set language here (for bug 7004056)
|
||||
SkString langString = paint->getPaintOptionsAndroid().getLanguage().getTag();
|
||||
hb_buffer_set_language(mBuffer, hb_language_from_string(langString.c_str(), -1));
|
||||
hb_buffer_add_utf16(mBuffer, contextChars, contextCount, start + run.pos, run.length);
|
||||
|
||||
// Initialize Harfbuzz Shaper and get the base glyph count for offsetting the glyphIDs
|
||||
|
Reference in New Issue
Block a user