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(); }