harfbuzzjs
    Preparing search index...

    Type Alias PaintPushClipGlyphFunc

    PaintPushClipGlyphFunc: (
        glyph: number,
        font: Font,
        paintData: unknown,
        userData: unknown,
    ) => void

    A callback to clip subsequent paint calls to the outline of a glyph.

    The coordinates of the glyph outline are expected in the current font scale (ie. the results of calling Font.drawGlyph with font). The outline is transformed by the current transform.

    This clip is applied in addition to the current clip, and remains in effect until a matching call to PaintFuncs.setPopClipFunc.

    Type Declaration

      • (glyph: number, font: Font, paintData: unknown, userData: unknown): void
      • Parameters

        Returns void