rtl

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

RTL demonstrates Right-To-Left text support: Hebrew bidi, Arabic contextual shaping, the rlig lam-alef ligature, GPOS mark-to-base attachment for harakat, kashida justification, and ActualText round-trip for accessibility and copy/paste.

Required fonts (the example picks one per script — if neither script has a font available that section is skipped):

Hebrew:
  macOS   /System/Library/Fonts/Supplemental/Arial.ttf
          /System/Library/Fonts/Supplemental/Tahoma.ttf
          /Library/Fonts/Arial Unicode.ttf
  Linux   /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
          /usr/share/fonts/truetype/noto/NotoSansHebrew-Regular.ttf
  Windows C:\Windows\Fonts\arial.ttf
          C:\Windows\Fonts\tahoma.ttf

Arabic:
  macOS   /System/Library/Fonts/SFArabic.ttf
          /System/Library/Fonts/Supplemental/Arial.ttf
          /System/Library/Fonts/Supplemental/Tahoma.ttf
          /Library/Fonts/Arial Unicode.ttf
  Linux   /usr/share/fonts/truetype/noto/NotoSansArabic-Regular.ttf
          /usr/share/fonts/opentype/noto/NotoSansArabic-Regular.ttf
          /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
  Windows C:\Windows\Fonts\arial.ttf
          C:\Windows\Fonts\tahoma.ttf

The example prefers .ttf files over .ttc collections because collection parsing is not yet fully supported.

Usage:

go run ./examples/rtl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL