skia2/modules
Ben Wagner 83c85affad Avoid calling hb_face_set_index with uninitialized value.
If an SkTypeface stream exists and is a memory based stream an hb_face
may be created directly from the memory. In this case the collection
index was set when the stream was retrieved and the hb_face is created
with this index. Otherwise, the hb_face is created by table callback. In
this case the stream may or may not have been successfully retrieved. If
the stream was successfully retrieved the hb_face index should be set to
the collection index retrieved with the stream. Otherwise, the hb_face
index should not be set.

Change-Id: I2568fecb1096d1a2e7f529342668ea443a8615c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/499136
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-01-25 14:15:37 +00:00
..
androidkit Remove SkM44.h include from SkImage.h. 2021-12-23 13:45:20 +00:00
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit Fix Typescript type hints for CanvasKit debug traces. 2022-01-14 17:13:49 +00:00
particles Refactor SkMatrixProvider slightly 2021-12-09 20:10:58 +00:00
pathkit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
skottie Mark operator bool() explicit in src, tests, and modules 2022-01-19 15:10:45 +00:00
skparagraph Fixing some getRectsForRange issues 2022-01-06 18:53:23 +00:00
skplaintexteditor Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
skresources [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
sksg Pass CTM to path effects (experimental) 2021-07-13 18:42:55 +00:00
skshaper Avoid calling hb_face_set_index with uninitialized value. 2022-01-25 14:15:37 +00:00
skunicode Avoid scanning for bidi levels if the paragraph is unidirectional 2022-01-06 17:39:50 +00:00
svg Mark operator bool() explicit in src, tests, and modules 2022-01-19 15:10:45 +00:00
BUILD.bazel [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00