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: string

        A string of comma-separated OpenType features to apply.

      Returns void