I noticed that if you use the Renderer = HarfBuzz
fontspec option, the colr
OpenType feature automatically gets disabled. If you use the default renderer, the feature does not get enabled but you can manually enable/disable it. My problem is that I cannot disable the colr
feature if I use the HarfBuzz renderer. I cannot use XeLaTeX instead of LuaLaTeX or the default renderer instead of HarfBuzz as a workaround, because those are needed for the font I am using, which can be obtained here.
\documentclass{article}
\usepackage[bidi = basic]{babel}
\babelprovide[main, import]{arabic}
\babelfont[arabic]{rm}[Renderer = HarfBuzz, RawFeature = -colr]{digitalkhatt.otf}
\newcommand\ayah{^^^^06dd}
\begin{document}
بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ~\ayah١
ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ~\ayah٢
ٱلرَّحْمَٰنِ ٱلرَّحِيمِ~\ayah٣
مَٰلِكِ يَوْمِ ٱلدِّينِ~\ayah٤
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ~\ayah٥
ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ~\ayah٦
صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ~\ayah٧
\end{document}
I expected the end-of-ayah symbols in the above image to be black, but they are coloured.
colr
when using the defaultNode
renderer? To me it seems like this is a problem with HarfBuzz.