fribidi_shape_arabic(3)

fribidi_shape_arabic3

Do arabic shaping

Usage

#include <../fribidi/lib/fribidi.h>

void fribidi_shape_arabic
(

FriBidiFlags flags,

const FriBidiLevel *embedding_levels,

const FriBidiStrIndex len,

FriBidiArabicProp *ar_props,

FriBidiChar *str
);

Parameters

FriBidiFlags flags

Shaping flags.

const FriBidiLevel *embedding_levels

Not Documented.

const FriBidiStrIndex len

Input string length.

FriBidiArabicProp *ar_props

Input/output Arabic properties as computed by fribidi_join_arabic.

FriBidiChar *str

String to shape.

Overview

The actual shaping that is done depends on the flags set. Only flags starting with FRIBIDI_FLAG_SHAPE_ARAB_ affect this function. Currently these are:

* FRIBIDI_FLAG_SHAPE_MIRRORING: Do mirroring.
* FRIBIDI_FLAG_SHAPE_ARAB_PRES: Shape Arabic characters to their presentation form glyphs.
* FRIBIDI_FLAG_SHAPE_ARAB_LIGA: Form mandatory Arabic ligatures.
* FRIBIDI_FLAG_SHAPE_ARAB_CONSOLE: Perform additional Arabic shaping suitable for text rendered on grid terminals with no mark rendering capabilities.

Of the above, FRIBIDI_FLAG_SHAPE_ARAB_CONSOLE is only used in special cases, but the rest are recommended in any environment that doesn't have other means for doing Arabic shaping. The set of extra flags that enable this level of Arabic support has a shortcut named FRIBIDI_FLAGS_ARABIC.

Releases

5 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11–12
  3. 13
  4. Arch

From fribidi 1.0.18-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.