public class

TextMetrics

extends JavaScriptObject
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.canvas.dom.client.TextMetrics

Class Overview

HTML 5 Canvas text metrics.

Experimental API: This API is still under development and is subject to change.

Summary

Protected Constructors
TextMetrics()
Public Methods
final double getWidth()
Return the width of the rendered text.
[Expand]
Inherited Methods
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected TextMetrics ()

Public Methods

public final double getWidth ()

Return the width of the rendered text.

Returns
  • the width of the text