[XeTeX] Coloured fonts

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Thu Mar 18 21:43:40 CET 2021


David Carlisle wrote:

> Not sure if xetex can do colour fonts currently, You can always 
> experiment with luatex which gets this if using harfbuzz
>
> image.png
>
> \documentclass{article}
>
> \usepackage{fontspec}
>
> \newfontfamily\chess[Renderer=HarfBuzz]{BabelStoneXiangqiColour.ttf}
> \begin{document}
>
> testing {\chess ^^^^^^01fa64}
>
> \end{document}

OK, thanks David.  I will see if LuaTeX can handle my existing work on 
the book (which of course assumed plain XeTeX), and if it can, I will 
switch to LuaTeX for this project.  But do you know how one does the 
plain LuaTeX equivalent of :

> \usepackage{fontspec}
> \newfontfamily\chess[Renderer=HarfBuzz]{BabelStoneXiangqiColour.ttf}

I /really/ don't want to have to use packages unnecessarily.
-- 
/** Phil./
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210318/534d42f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3690 bytes
Desc: not available
URL: <https://tug.org/pipermail/xetex/attachments/20210318/534d42f9/attachment.png>


More information about the XeTeX mailing list.