skia2/modules/skshaper
Ben Wagner 94aed0be1f Use "und" in place of HB_LANGUAGE_INVALID.
Buffers with HB_LANGUAGE_INVALID race since it will force
hb_buffer_guess_segment_properties to call hb_language_get_default which
is not thread safe. The user is required to pass a language string to
the shaper, but it may be malformed and hb_language_from_string may
return HB_LANGUAGE_INVALID. Detect this and use "und" as the language,
since the language really isn't known (RFC5646 4.1 5).

Bug: skia:10323
Change-Id: Icf2389e606eb1b635d7535e57be10cca23bf9d33
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294999
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-06-08 16:24:00 +00:00
..
include Regularize SkFontMgr for CoreText build. 2020-06-04 16:45:09 +00:00
src Use "und" in place of HB_LANGUAGE_INVALID. 2020-06-08 16:24:00 +00:00
BUILD.gn Regularize SkFontMgr for CoreText build. 2020-06-04 16:45:09 +00:00
skshaper.gni Regularize SkFontMgr for CoreText build. 2020-06-04 16:45:09 +00:00