Function

Pango-1.0Pangolog2vis_get_embedding_levelsSince 1.4

  • Return the bidirectional embedding levels of the input paragraph.

    The bidirectional embedding levels are defined by the Unicode Bidirectional Algorithm.

    If the input base direction is a weak direction, the direction of the characters in the text will determine the final resolved direction.

    Parameters

    • text: string

      the text to itemize.

    • length: number

      the number of bytes (not characters) to process, or -1 if text is nul-terminated and the length should be calculated.

    • pbase_dir: Pango.Direction

      input base direction, and output resolved direction.

    Returns [Uint8Array<ArrayBufferLike>, Pango.Direction]

    a newly allocated array of embedding levels, one item per character (not byte), that should be freed using GLib.free.

    1.4