Is there any TeX-based engine capable of rendering the colored font?

In the luaotfload test suite we have the (slightly adapted) test file. The compilation need the luahbtex engine which you can use in a current tex system by using the lualatex-dev format. Disclaimer: I don't know arabic and have no idea what the text means.

\documentclass{article}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage[bidi=basic]{babel}
\babelprovide[import, main]{arabic}
\setmainfont{amiri-quran-colored.ttf}[Script=Arabic,Renderer=Harfbuzz]
\begin{document}
\setstretch{3.8}
\parindent=0pt
\leftskip=0pt plus 1fil
\rightskip=0pt plus -1fil
\parfillskip=0pt plus 2fil
\def\aya#1{{\textdir TLT ^^^^06dd#1}}
^^^^fdfd~\aya{١}\par
ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِینَ~\aya{٢} ٱلرَّحۡمَٰنِ ٱلرَّحِیمِ~\aya{٣} مَٰلِكِ یَوۡمِ ٱلدِّینِ~\aya{٤} إِیَّاكَ نَعۡبُدُ وَإِیَّاكَ نَسۡتَعِینُ~\aya{٥} ٱهۡدِنَا ٱلصِّرَٰطَ ٱلۡمُسۡتَقِیمَ~\aya{٦} صِرَٰطَ ٱلَّذِینَ أَنۡعَمۡتَ عَلَیۡهِمۡ غَیۡرِ ٱلۡمَغۡضُوبِ عَلَیۡهِمۡ وَلَا ٱلضَّاۤلِّینَ~\aya{٧}\par


\end{document}

enter image description here


It works in LuaLaTeX, you just have to enable the colr feature:

\documentclass{article}

\usepackage{fontspec}
\setmainfont[RawFeature=colr,Script=Arabic]{Amiri Quran Colored}

\begin{document}
\pardir TRT\textdir TRT % enable right to left typesetting
سلامٌ علَیکم وَ رَحمةُ الله و بَرَکاتُهُ
\end{document}

enter image description here

The two boxes indicate that two glyphs don't exists in the font. I can't tell you anything about that because I don't anything about Arabic.

Tags:

Fonts

Color