Title:

Intent to Ship: Honoring Android OS-Level Bold Text Settings

Body:

Contact emails

mschill...@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
<https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/resolver/font_builder.cc;l=623?q=%22FontBuilder::CreateFont%22&ss=chromium>)
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)
<https://drive.google.com/file/d/1Pn5MXkIcMluw716CUB0i8Ztk6iHnfNgm/view?usp=sharing&resourcekey=0-6mV47b3k5O01J_OgDy9h6g>

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
<https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>
?

Progressed upstreamed.

Link to entry on the feature dashboard <https://www.chromestatus.com/>

https://chromestatus.com/feature/5145839765028864

Requesting approval to ship?

Yes



 Honoring Android OS-Level Bold Text Settings
<https://docs.google.com/document/d/1lAvXGK8fV8LOsbcRB_KNaY3UXKG7JGSGKOKccSN5mws/edit?usp=drive_web&resourcekey=0-7pN6ICsESCR0hIbX-Dw74A>

-- 
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+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK9iZJhOp1f3T_RriDOsYMGDxoUeD%2BkYFnqFuQz%3D_bBX%3D0p%3D0w%40mail.gmail.com.

Reply via email to