This patch adds bidirectional text (BiDi) support to stusing the GNU FriBidi library.
RTL languages such as Arabic, Hebrew, and Farsi are now
displayed correctly. Mixed LTR/RTL text is also handled.
The reordering is done in xdrawline() via fribidi_log2vis()
before glyphs are rendered.
Dependency: libfribidi
Changes:
- config.mk: link against libfribidi via pkg-config
- st.h: include <fribidi.h>
- x.c: add BiDi reordering in xdrawline()
Tested on: Void Linux x86_64, st 0.9.3
Author: Mohamed <mohamed.apdelrazeq_AT_proton.me>
Received on Fri May 08 2026 - 01:38:26 CEST