diff --git a/source b/source index a1b10011bac..628cf56abbe 100644 --- a/source +++ b/source @@ -69473,19 +69473,19 @@ try {

The bounding box can be (and usually is) different from the selection rectangles, which are based on the advance of the text. A font that is particularly slanted or with accents that go beyond the flow of text will have a different paint bounding box.

- + -
getIndexFromOffset(offset) method
+
getIndexFromOffset(offset) method
-

Returns the string index for the character at the given offset distance from the start - position of the text run, relative to the alignment point given by the textAlign attribute, with offset always increasing left - to right (negative offsets are valid). Values to the left or right of the text bounds will return - 0 or the length of the text, depending on the writing direction.

+

Returns the string index for the character at the given offset distance from the start + position of the text run, relative to the alignment point given by the textAlign attribute, with offset always increasing left + to right (negative offsets are valid). Values to the left or right of the text bounds will return + 0 or the length of the text, depending on the writing direction.

-
getTextClusters(start, end, options) method
+
getTextClusters(start, end, options) method
-
+

Splits the given range of the text into grapheme clusters, and returns the positional data for each cluster. The range includes the character at the start index but stops before the @@ -69561,7 +69561,7 @@ try { that this doesn't change the origin of the coordinate system, just which point is specified for each cluster.

- +

Glyphs rendered using fillText() and