harfbuzzjs
    Preparing search index...

    Type Alias DrawCubicToFunc

    DrawCubicToFunc: (
        c1x: number,
        c1y: number,
        c2x: number,
        c2y: number,
        x: number,
        y: number,
        drawData: unknown,
        userData: unknown,
    ) => void

    A callback to perform a cubic-to draw operation.

    Type Declaration

      • (
            c1x: number,
            c1y: number,
            c2x: number,
            c2y: number,
            x: number,
            y: number,
            drawData: unknown,
            userData: unknown,
        ): void
      • Parameters

        • c1x: number

          X component of first control point

        • c1y: number

          Y component of first control point

        • c2x: number

          X component of second control point

        • c2y: number

          Y component of second control point

        • x: number

          X component of target point

        • y: number

          Y component of target point

        • drawData: unknown

          the data accompanying the draw functions in Font.drawGlyph

        • userData: unknown

          the user data pointer passed to DrawFuncs.setCubicToFunc

        Returns void