Class TextMetrics

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

public class TextMetrics extends JavaScriptObject
HTML 5 Canvas text metrics.
See Also:
  • Constructor Details

    • TextMetrics

      protected TextMetrics()
  • Method Details

    • getWidth

      public final double getWidth()
      Return the width of the rendered text.
      Returns:
      the width of the text