commit | a19e45fae5851306ea33f38abbb5853eb6783de1 | [log] [tgz] |
---|---|---|
author | Andres Ricardo Perez <andresrperez@chromium.org> | Tue Jul 02 18:49:06 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 02 18:49:06 2024 |
tree | a879f4320982b420011e33401cea1227358cd8cb | |
parent | c717fb07aed0f4756b9306ae0e55fa8f897bb1dc [diff] |
Implement getActualBoundingBox feature for TextMetrics This change creates a new API method for TextMetrics objects in canvas that uses font data and precalculated text runs, to calculate the bounding box for an interval of characters. This interval is defined by character positions in the input text. The method returns a single rectangle, the actual bounding box of the substring of the input text defined by the input indexes. The new API was enabled under the `ExtendedTextMetrics` flag. Bug: 341213359 Change-Id: I289a52283d0bd5a0001c5ec7a514cf16abba9611 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5546024 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Andres Ricardo Perez <andresrperez@chromium.org> Cr-Commit-Position: refs/heads/main@{#1322331}
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.