[XeTeX] Coloured fonts

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Thu Mar 18 22:44:57 CET 2021


David Carlisle wrote:

> I see colour here in windows firefox, widows chrome  and xpdf using 
> cygwin X
>
> attached luahbtex file and result
>
> in Chrome it looks like this
>
> image.png
>
>

OK, so it could be the TeXworks previewer that is failing to shew the 
colour.  But to get your plain LuaTeX code to work, and not report a 
missing font, I had to remove the ".ttf" extension :

% !TeX Program=LuaTeX

\magnification 900

\input luaotfload.sty

\font \bodyfont = "Minion Pro"
\font \tenit = "MinionPro-IT"
\font \smallcaps = "Minion Pro/ICU:+smcp"
\font \oldstyle = "Minion Pro/ICU:+onum"
\relax
\font \pieces = "BabelStoneXiangqiColour:mode=harf"
\relax
\pagewidth = 35 true pc
\pageheight = 59 true pc
\hsize = 25 true pc
\advance \hoffset by -1 true in
\advance \voffset by -1 true in
\advance \hoffset by 5 pc
\advance \voffset by 13 true pc
\pretolerance = 9999
\spaceskip = 0,333 em plus 0,3 em minus 0,1 em
\xspaceskip = 1 em plus 0,3 em minus 0,1 em
\def \lineturn {\unskip {\parfillskip = 0 pt \endgraf 
\noindent}\ignorespaces}
\def \ignore #1{}
\catcode `\“ = \active
\catcode `\” = \active
\catcode `\; = \active
\catcode `\: = \active
\def \Prespace #1{\def #1{$\;$\char `#1\relax}}
\def \prespace #1{\def #1{$\,$\char `#1\relax}}
\def \postspace #1{\def #1{\char `#1\relax $\,$}}
\prespace ”
\Prespace ;
\Prespace :
\postspace “
\bodyfont
\parskip = 0 pt

% snip

\pieces
\centerline {\char "1FA60\relax}
\centerline {🩠}

\end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210318/0d4c8db6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20772 bytes
Desc: not available
URL: <https://tug.org/pipermail/xetex/attachments/20210318/0d4c8db6/attachment-0001.png>


More information about the XeTeX mailing list.