harfbuzzjs
    Preparing search index...

    Function shape

    • Shape a buffer with a given font.

      Converts the Unicode text in the buffer into positioned glyphs. The buffer is modified in place.

      Parameters

      • font: Font

        The Font to shape with.

      • buffer: Buffer

        The Buffer containing text to shape, suitably prepared (text added, segment properties set).

      • Optionalfeatures: Feature[]

        An array of Feature values to apply.

      Returns void