DescriptionBegin switch to SkFontStyle for legacy calls.
This adds SK_VERY_LEGACY_CREATE_TYPEFACE which, when defined, provides
only the old interface.
Ideally, everyone would switch directly to SkFontMgr and use one of the
newer calls, but there is currently no path for current users to get
there. This updates all the internals to use SkFontStyle, after
switching these over the higher level APIs can be switched.
The Chromium follow on patch can be seen at https://crrev.com/1877673002
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873923002
TBR=reed
This doesn't really change API, just modernizes it.
Committed: https://skia.googlesource.com/skia/+/11a77c6e0634e2feb6fe4e74806db2fdd2a799ec
Patch Set 1 #Patch Set 2 : Fix Windows. #Patch Set 3 : Copy pasta. #Patch Set 4 : More #Patch Set 5 : Uncomment. #Patch Set 6 : Fixes, rebase. #
Total comments: 4
Patch Set 7 : Address comments. #Patch Set 8 : Actually upload one of those changes. #Patch Set 9 : Remove last styleBits from Mac. #Patch Set 10 : Dont update bzl file now. #
Messages
Total messages: 48 (24 generated)
|