Documentation
¶
Overview ¶
Indic demonstrates OpenType shaping for Brahmic scripts. Devanagari is the first implementation; Bengali, Tamil, Telugu, Kannada, Malayalam, Gurmukhi, Odia, Assamese and Sinhala will slot into this example as their shapers land. The layout pipeline routes Indic words through the script-specific shaper automatically, so the example just loads a capable font and adds paragraphs — reph, pre-base matra reordering, half forms, conjuncts, nukta, below-base and post-base forms all happen under the hood.
Required fonts (the Devanagari section is skipped if none resolve):
macOS /System/Library/Fonts/Supplemental/Devanagari Sangam MN.ttc
/System/Library/Fonts/Supplemental/ITFDevanagari.ttc
/Library/Fonts/Arial Unicode.ttf
Linux /usr/share/fonts/truetype/noto/NotoSansDevanagari-Regular.ttf
/usr/share/fonts/opentype/noto/NotoSansDevanagari-Regular.ttf
Windows C:\Windows\Fonts\mangal.ttf
C:\Windows\Fonts\Nirmala.ttf
Usage:
go run ./examples/indic