@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="TextMetrics")
public class TextMetrics
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
TextMetrics() |
| Modifier and Type | Method and Description |
|---|---|
double |
actualBoundingBoxAscent()
The read-only actualBoundingBoxAscent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
|
double |
actualBoundingBoxDescent()
The read-only actualBoundingBoxDescent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
|
double |
actualBoundingBoxLeft()
The read-only actualBoundingBoxLeft property of the TextMetrics interface is a double giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels.
|
double |
actualBoundingBoxRight()
The read-only actualBoundingBoxRight property of the TextMetrics interface is a double giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
|
double |
alphabeticBaseline()
The read-only alphabeticBaseline property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
|
double |
emHeightAscent()
The read-only emHeightAscent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the em square in the line box, in CSS pixels.
|
double |
emHeightDescent()
The read-only emHeightDescent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the em square in the line box, in CSS pixels.
|
double |
fontBoundingBoxAscent()
The read-only fontBoundingBoxAscent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
double |
fontBoundingBoxDescent()
The read-only fontBoundingBoxDescent property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
double |
hangingBaseline()
The read-only hangingBaseline property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
|
double |
ideographicBaseline()
The read-only ideographicBaseline property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
|
double |
width()
The read-only width property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsProperty(name="actualBoundingBoxAscent") public double actualBoundingBoxAscent()
@JsProperty(name="actualBoundingBoxDescent") public double actualBoundingBoxDescent()
@JsProperty(name="actualBoundingBoxLeft") public double actualBoundingBoxLeft()
@JsProperty(name="actualBoundingBoxRight") public double actualBoundingBoxRight()
@JsProperty(name="alphabeticBaseline") public double alphabeticBaseline()
@JsProperty(name="emHeightAscent") public double emHeightAscent()
@JsProperty(name="emHeightDescent") public double emHeightDescent()
@JsProperty(name="fontBoundingBoxAscent") public double fontBoundingBoxAscent()
@JsProperty(name="fontBoundingBoxDescent") public double fontBoundingBoxDescent()
@JsProperty(name="hangingBaseline") public double hangingBaseline()
@JsProperty(name="ideographicBaseline") public double ideographicBaseline()
@JsProperty(name="width") public double width()