From db69f8ec58482421c9584dbf59baecc1518a8c37 Mon Sep 17 00:00:00 2001 From: Ivan Hetman Date: Tue, 6 Jun 2023 11:04:01 +0300 Subject: [PATCH] JSO: TextMetrics addition --- .../org/teavm/jso/canvas/TextMetrics.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/canvas/TextMetrics.java b/jso/apis/src/main/java/org/teavm/jso/canvas/TextMetrics.java index 3ee81bcbf..3e99e8f58 100644 --- a/jso/apis/src/main/java/org/teavm/jso/canvas/TextMetrics.java +++ b/jso/apis/src/main/java/org/teavm/jso/canvas/TextMetrics.java @@ -20,5 +20,23 @@ import org.teavm.jso.JSProperty; public interface TextMetrics extends JSObject { @JSProperty - int getWidth(); + double getWidth(); + + @JSProperty + double getActualBoundingBoxAscent(); + + @JSProperty + double getActualBoundingBoxDescent(); + + @JSProperty + double getActualBoundingBoxLeft(); + + @JSProperty + double getActualBoundingBoxRight(); + + @JSProperty + double getFontBoundingBoxAscent(); + + @JSProperty + double getFontBoundingBoxDescent(); }