Search Docs
Loading...
Skip to content

Interface: CharacterInkBox

Tight ink-paint bounding box of a single grapheme, in global scene coordinates. Returned by block.getTextCharacterInkBoxes. The baseline Y is reported separately because it does not equal y + height (the box is the tight ink rect; the baseline anchors glyph descenders).

Properties#

Property Type Description
x number Global X of the tight ink rect (left edge, Y-down scene space).
y number Global Y of the tight ink rect (top edge, Y-down scene space).
width number Width of the tight ink rect.
height number Height of the tight ink rect.
baselineY number Global Y of the glyph baseline.