Title:
Intent to Ship: Honoring Android OS-Level Bold Text Settings
Body:
Contact emails
mschi...@google.com, dr...@google.com
Explainer
Help users who need more contrast in their fonts for increased readability, by adding support for a new Android a11y API that opts into text being always bold.
Spec
No formal design doc
Relevant CL: crrev.com/c/4809211
The FontBuilder::CreateFont method (link) will include a call to a new method, FontBuilder::UpdateWeightAdjustment (see CL). This adjustment will be added to the current font weight and clamped to the min/max weight values for that font. The font weight adjustment can be any number; but with the current Android OS it will be 0 by default (no bolding), or 300 when a user has enabled bold text. For example, a font with weight 400 would become weight 700 when the user has enabled the OS-level setting. This will apply to all elements on the web.
Summary
The Android OS has an accessibility option to enable “Bold text”. When enabled, all content rendered by Android will be in bold. We intend to make this user setting affect web contents in addition to the native OS widgets.
Supporting Links
No formal explainer doc
Configuration.java: https://developer.android.com/reference/android/content/res/Configuration#fontWeightAdjustment
Android 12 announcement: https://www.android.com/android-12/
Google support page: https://support.google.com/accessibility/android/answer/11183305?hl=en
Demo link
Video link (Alphabet internal)
Screenshots of the feature enabled without and with bold text user setting:
Motivation
This is an accessibility feature, and we want parity between the web and Android OS.
Risks
Interoperability and Compatibility
No interoperability or compatibility risks as this is an Android only feature. This will not run on any other platforms.
Solving the intended problem
See demo.
Ergonomics
This feature is likely to be used in parallel to text size scaling or page zooming, since both are intended to assist low-vision users.
Activation
No
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
No, this is an Android only feature. It is controlled by a setting that is only available in the Android OS-level settings.
Is this feature fully tested by web-platform-tests?
Progressed upstreamed.
Link to entry on the feature dashboard
https://chromestatus.com/feature/5145839765028864
Requesting approval to ship?
Yes
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN6muBu6CvMWnQWJ_Li_ik0UwvWZtVv%2Bbf1M5G_SHdQYKGZBCw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.