commit | dac79e04ef1c10f64cd7a0117cc57b61b5be1f30 | [log] [tgz] |
---|---|---|
author | Ian Prest <iapres@microsoft.com> | Thu Mar 31 20:40:10 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 31 20:40:10 2022 |
tree | d67f75e89248a1835a83ef5d10edafedd29c3b0a | |
parent | 0bdea558548bbd0e61da1fd50431413e421cb384 [diff] |
CanvasFormattedText Styling Prototype This change resurrects @sushraja's changes to add styling abilities to CanvasFormattedText. Note that this implements an older version of the API, which is changing rapidly. Original description: Add support for styling CanvasFormattedText This change adds a styleMap on the CanvasFormattedText and CanvasFormattedTextRun. A subset of CSS properties are supported on the CanvasFormattedText and a smaller subset on the CanvasFormattedTextRun. A height parameter is added to fillFormattedText so that vertical writing modes can be supported. The height/width passed to fillFormattedText are used as the available space, while the CSS height/width can be set on the CanvasFormattedText to control height/width explicitly. Change-Id: I2af3e2bc667f4d6e57da390fdf0648663a75461e Bug: 1155764 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3491151 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Fernando Serboncini <fserb@chromium.org> Commit-Queue: Ian Prest <iapres@microsoft.com> Cr-Commit-Position: refs/heads/main@{#987620}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.