Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: Source/core/html/TextMetrics.idl

Issue 141433026: Font metrics, version 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding Layout tests. Should work for simple text. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/TextMetrics.idl
diff --git a/Source/core/html/TextMetrics.idl b/Source/core/html/TextMetrics.idl
index fc37998bda6bd4ebfeada371b95b000fad153246..af650d8e97d17c45eb889b88d0a075e2cf136d99 100644
--- a/Source/core/html/TextMetrics.idl
+++ b/Source/core/html/TextMetrics.idl
@@ -24,6 +24,20 @@
*/
[
] interface TextMetrics {
+ // x-direction
readonly attribute float width;
+ readonly attribute float actualBoundingBoxLeft;
+ readonly attribute float actualBoundingBoxRight;
+
+ // y-direction
+ readonly attribute float fontBoundingBoxAscent;
+ readonly attribute float fontBoundingBoxDescent;
+ readonly attribute float actualBoundingBoxAscent;
+ readonly attribute float actualBoundingBoxDescent;
+ readonly attribute float emHeightAscent;
+ readonly attribute float emHeightDescent;
+ readonly attribute float hangingBaseline;
+ readonly attribute float alphabeticBaseline;
+ readonly attribute float ideographicBaseline;
};

Powered by Google App Engine
This is Rietveld 408576698