skia
    Preparing search index...

    Interface GlyphInfo

    The glyph and grapheme cluster information associated with a code point within a paragraph.

    interface GlyphInfo {
        dir: EmbindEnumEntity;
        graphemeClusterTextRange: URange;
        graphemeLayoutBounds: Rect;
        isEllipsis: boolean;
    }
    Index

    Properties

    The writing direction of the grapheme cluster.

    graphemeClusterTextRange: URange

    The left-closed-right-open UTF-16 range of the grapheme cluster the code point belongs to.

    graphemeLayoutBounds: Rect

    The layout bounds of the grapheme cluster the code point belongs to, in the paragraph's coordinates.

    This width of the rect is horizontal advance of the grapheme cluster, the height of the rect is the line height when the grapheme cluster occupies a full line.

    isEllipsis: boolean

    Whether the associated glyph points to an ellipsis added by the text layout library.

    The text layout library truncates the lines that exceed the specified max line number, and may add an ellipsis to replace the last few code points near the logical end of the last visible line. If True, this object marks the logical end of the list of GlyphInfo objects that are retrievable from the text layout library.