[XeTeX] Coloured fonts

David Carlisle d.p.carlisle at gmail.com
Thu Mar 18 22:12:22 CET 2021


Sigh, I thought you'd like the challenge:-)

with luahbtex:



\input luaotfload.sty
\font\chess=BabelStoneXiangqiColour.ttf:mode=harf


testing {\chess ^^^^^^01fa64}

\bye



On Thu, 18 Mar 2021 at 20:44, Philip Taylor <P.Taylor at hellenic-institute.uk>
wrote:

> 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: 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/39180991/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/39180991/attachment.png>


More information about the XeTeX mailing list.