skia2/modules
Ben Wagner 1ca50524c4 Allow better font fallback.
The intent is to allow the creation of a MakeFontMgrRunIterator which
uses the passed font's typeface as the primary typeface, but uses a
given family name and style as for the request for fallback fonts. This
allows the user to provide the actual request for the primary typeface
as opposed to making a request based on the resolved primary typeface
(which may not be the right thing to do).

To support this, the selection of language for fallback is also added.
Since this information is already in the language iterator, this change
makes the font iterator the lowest priority iterator for consume,
allowing the font iterator to rely on the current value of the language
iterator to provide the language.

In order to allow these changes to be exercised, this also adds a few
generic 'Make' methods for bidi and script. These new methods will use
the best available implementation. These are needed since the most
capable implementations may not always be available (such as on our
testing ios builds).

Change-Id: I1b8d9c9007058adcb2a26e0581d903b835a6118f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245460
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
2019-10-02 22:19:13 +00:00
..
canvaskit [canvaskit] remove debugging code 2019-09-26 20:13:21 +00:00
particles Change ByteCode and ByteCodeFunction to classes 2019-09-30 18:02:24 +00:00
pathkit Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
skottie [skottie] Fix motion blur glitches around domain edges 2019-10-01 17:25:12 +00:00
skparagraph [SkParagraph] Require len if using addText(const char*) 2019-09-29 11:39:34 +00:00
skplaintexteditor tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
sksg [skottie] Fix motion blur asserts 2019-09-23 17:34:42 +00:00
skshaper Allow better font fallback. 2019-10-02 22:19:13 +00:00