This is the 4th installment in extending the TextMetrics API (first attempt link, second attempt, third attempt).The current canvas TextMetrics API exposes the actualBoundingBox and the fontBoundingBox readings. The definition of baseline is more clear now. Both Firefox and Safari have already shipped this extension to TextMetrics.
The original feature bug (https://crbug.com/277215) has strong user support (23 stars).
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Risks
Interoperability and Compatibility
Safari and Firefox have has already shipped these metrics in the spec.
Firefox: Shipped
Safari: Shipped
We know this is a feature requested by developers (as well as internal Google teams like Google Docs). This API will help developers have more control and more accurate text rendering. As of today a different way to achieve this is by using rendering text to the DOM and using getBoundingClientRect to get some measurements. This process requires a relayout of the page.
Activation
Enable the platform experiment ExtendedTextMetrics
Contact emails
yi...@chromium.org, aar...@chromium.org, fs...@chromium.orgExplainer
https://learn.microsoft.com/en-us/typography/opentype/spec/baselinetagswe are launching the following attributes in TextMetrics: alphabeticBaseline, hangingBaseline and ideographicBaseline
Tag ReviewSummary
This is the 4th installment in extending the TextMetrics API (first attempt link, second attempt, third attempt).The current canvas TextMetrics API exposes the actualBoundingBox and the fontBoundingBox readings. The definition of baseline is more clear now. Both Firefox and Safari have already shipped this extension to TextMetrics.
The original feature bug (https://crbug.com/277215) has strong user support (23 stars).
Blink component
Blink>CanvasIs this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Risks
Interoperability and Compatibility
Safari and Firefox have has already shipped these metrics in the spec.
Firefox: Shipped
Safari: Shipped
We know this is a feature requested by developers (as well as internal Google teams like Google Docs). This API will help developers have more control and more accurate text rendering. As of today a different way to achieve this is by using rendering text to the DOM and using getBoundingClientRect to get some measurements. This process requires a relayout of the page.
Activation
Enable the platform experiment ExtendedTextMetrics
--
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/CAC3hXJeKqXo9QKyreEM%2BqiNM0gi_us%3DWZ_-17AxpMg-bF%2BoLkA%40mail.gmail.com.
LGTM1
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAC3hXJf_8acu24TWR47Cc9MLtaxYs2o3urOkwgfkm1QFAwN%2BeA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/67059d9a-6196-4783-9707-33b5be2de094%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw8iYj0O0Tsuikpav%3Dd4SxF0c6Lt97pEzR%3DWRdV1E242yQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqFyY0MrwH9SpAP05XyEBJVP8UA71yZfbk0SnbyNercizw%40mail.gmail.com.