harfbuzzjs
    Preparing search index...

    Class DrawFuncs

    An object representing HarfBuzz draw functions.

    Glyph draw callbacks.

    The move-to, line-to and cubic-to callbacks are necessary to be defined, but we translate quadratic-to calls to cubic-to if the callback isn't defined.

    Index

    Constructors

    Properties

    ptr: number

    Methods

    • Sets cubic-to callback to the draw functions object.

      Parameters

      • func: DrawCubicToFunc

        The cubic-to callback.

      • OptionaluserData: unknown

        Data to pass to func.

      Returns void

    • Sets line-to callback to the draw functions object.

      Parameters

      • func: DrawLineToFunc

        The line-to callback.

      • OptionaluserData: unknown

        Data to pass to func.

      Returns void

    • Sets move-to callback to the draw functions object.

      Parameters

      • func: DrawMoveToFunc

        The move-to callback.

      • OptionaluserData: unknown

        Data to pass to func.

      Returns void