[NTG-context] Harfbuzz plugin and colors
Aditya Mahajan
adityam at umich.edu
Mon Feb 14 08:05:48 CET 2022
On Sun, 13 Feb 2022, Jairo A. del Rio via ntg-context wrote:
> Hi, list! I've tested the Harfbuzz plugin in ConTeXt and it works nicely
> for most cases. However, color doesn't seem to work. Is this intended? I
> know this plugin won't be supported, but I'll be fine with pointers to
> solve this issue. Thanks in advance.
>
> \usemodule[fonts-plugins]
> \definefontfeature[harf]
> [mode=plug,
> features=harfbuzz,
> shaper=native]
> %Just to test Harfbuzz is actually working
> \definefontfeature[devaA][harf]
> [language=dflt,
> script=deva]
> \definefontfeature[devaB][default]
> [script=deva]
> \definefontfeature[colored][harf]
> [language=dflt,script=arab,
> colr=yes] %doesn't do anything
Wouldn't you also have to enable the colored feature somewhere?
> \starttext
> {\righttoleft\definedfont[file:AmiriQuranColored.ttf*colored]\input{khatt-ar}}
>
> {\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi]}
> \blank[line]
> {\definedfont[file:Lohit-Devanagari.ttf*devaB]\getbuffer[hindi]}
> \stoptext
Aditya
More information about the ntg-context
mailing list