DescriptionRespect declared font style on Android.
Previously the normal/italic style bit was obtained from scanning the
font file. With the new format the style may be stated explicitly, and
this explicit value in the configuration file should override any
information obtained from the font data itself.
This change allows the font element's style attribute to override the
font's style, but retains the default 'auto' setting for backwards
compatibility. Repecting the style bit may become more important with
variation fonts, because it will be up to the configuration writer to
determine what values of the 'slnt' variation should be considered
'normal' or 'italic'.
DOCS_PREVIEW= https://skia.org/?cl=1092093002
Committed: https://skia.googlesource.com/skia/+/673e902c9b9982a167f54f1cc175d8d9cab8bcaf
Committed: https://skia.googlesource.com/skia/+/e85a754a4ce9b279159270faa6717932f7a8548f
Patch Set 1 #Patch Set 2 : Explicitly default the style to Auto. #
Total comments: 2
Patch Set 3 : Use 'k' prefix for constants. #Patch Set 4 : Fix markdown '<'. #Patch Set 5 : Clarify documentation. #Patch Set 6 : remove superfluous 's'. #Patch Set 7 : Always assign style. #
Messages
Total messages: 17 (7 generated)
|