Sinhala - X256 New!
hb_feature_t feature; feature.tag = HB_TAG('s','i','n','x'); // sin-x256 feature feature.value = 1; feature.start = 0; feature.end = (unsigned int)-1; hb_buffer_add_feature(buffer, &feature); No x256 font covers every possible Sinhala conjunct (there are over 1,000 possible combinations in classical Sinhala). Implement a fallback chain: attempt x256 rendering; if a glyph is missing (tofu � ), re-render that cluster using the system's default HarfBuzz shaper.
Download the x256 specification from the Lanka Unicode Group’s official site, compile libx256shaper from source, and watch your Sinhala text fly. Last updated: October 2025. Sinhala x256 specification v1.2 ratified by the Sri Lanka Computer Society (SLCS) Digital Language Committee. sinhala x256
| Method | Time (ms) | Memory Peak (KB) | |--------|-----------|------------------| | Default HarfBuzz (Unicode only) | 347 ms | 1,843 KB | | Uniscribe (Windows on ARM emulation) | 512 ms | 2,201 KB | | | 118 ms | 312 KB | hb_feature_t feature; feature