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