<div dir="auto">PANOSE has nothing to do with color.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Mar 2021 at 21:35, Ross Moore <<a href="mailto:ross.moore@mq.edu.au">ross.moore@mq.edu.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">



<div style="word-wrap:break-word;line-break:after-white-space">
Hi David, Philip.
<div><br>
</div>
<div>
<div><br>
<blockquote type="cite">
<div>On 19 Mar 2021, at 7:17 am, David Carlisle <<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Not sure if xetex can do colour fonts currently, </div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>According to here:</div>
<div><br>
</div>
<div>     <a href="https://www.colorfonts.wtf" target="_blank">https://www.colorfonts.wtf</a></div>
<div><br>
</div>
<div>there’s not many applications that do support this new technology.</div>
<div><br>
</div>
<div>The colour doesn’t show in Phil’s example PDF, neither in Adobe’s  Illustrator, nor Acrobat Pro,</div>
<div>despite Adobe being one of the instigators of this font format.</div>
<div>So presumably the font isn’t installed correctly into the PDF.</div>
<div><br>
</div>
<div>Presumably the  /Style  dictionary here:</div>
<div><br>
</div>
<div>
<div>9 0 obj </div>
<div><<</div>
<div>/Descent -173</div>
<div>/StemV 87</div>
<div>/Ascent 631</div>
<div>/FontName /THVNSG+BabelStoneXiangqiColour</div>
<div>/ItalicAngle 0</div>
<div>/Style </div>
<div><<</div>
<div>/Panose <080002020604010101010101></div>
<div>>></div>
<div>/AvgWidth 734</div>
<div>/FontBBox [-14 -232 1014 795]</div>
<div>/Type /FontDescriptor</div>
<div>/CIDSet 16 0 R</div>
<div>/CapHeight 631</div>
<div>/Flags 4</div>
<div>/FontFile2 17 0 R</div>
<div>>></div>
<div>endobj </div>
<div><br>
</div>
<div>is where the colour is specified, by that /Panose  entry.</div>
<div>But there must be something else that is missing.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Unfortunately the link to get the font doesn’t work for me.</div>
<div><br>
</div>
<div><img src="cid:1784a34f75d8302b82f1"></div>
<div><br>
</div>
<div>So David, could you possibly send the PDF of the example you posted below, please?</div>
<div><br>
</div>
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>You can always experiment with luatex which gets this if using harfbuzz</div>
<div><br>
</div>
</div></div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div><div dir="ltr"><div><span id="m_8675955841424950566cid:ii_kmfbe8630"><image.png></span><br>
</div>
<div><br>
</div>
<div>\documentclass{article}<br>
<br>
\usepackage{fontspec}<br>
<br>
\newfontfamily\chess[Renderer=HarfBuzz]{BabelStoneXiangqiColour.ttf}<br>
\begin{document}<br>
<br>
testing {\chess ^^^^^^01fa64}<br>
<br>
\end{document}<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div></div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div><div dir="ltr"></div></div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, 18 Mar 2021 at 18:39, Philip Taylor <<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div bgcolor="#FFFFFF">Seeking to re-typeset a long out-of-print classic on Xiang-Qi ("Chinese Chess"), but with the pieces shewn as they really are rather than as upper-case Latin letters requiring a gloss (the presentation chosen by the original
 author), I downloaded and installed Andrew West's <a href="https://www.babelstone.co.uk/Fonts/Xiangqi.html" target="_blank">
BabelStone Xiangqi Colour font</a>.  I then wrote a short piece of XeTeX code to check that the glyphs/pieces appear in the PDF as they should, and very sadly they do not, coming out as monochrome rather than in colour (see attached PDF). 
<br>
<br>
The red pieces are described by Andrew as <i>red Chinese characters on a sandy yellow background</i>, and the black pieces as
<i>black Chinese characters on a sandy yellow background.</i>  In the resulting PDF, however, they appear as white Hanzi on a black ground and black Hanzi on a white ground.  Does XeTeX support coloured fonts, and if so, how do I persuade it to render
 these glyphs as intended rather than in monochrome ? <br>
<br>
I can, of course, load <tt style="font-family:monospace">\font \redpieces = "BabelStone Xiangqi Colour":color=FF0000 scaled \magstep 5
</tt>(see code below), but that still does not give me the sandy yellow ground that each glyph was designed to have.<br>
<br>
<tt style="font-family:monospace">'opentype-info.tex'</tt>, when run against BabelStone Xiangqi Colour, tells me that the font does not provide any Opentype layout features, so it does not look as if XeTeX's "/ICU:+abcd" convention would allow me to indicate that I require colour
 support.<br>
<br>
<blockquote type="cite"><tt style="font-family:monospace">% !TeX Program=XeTeX<br>
<br>
\font \pieces = "BabelStone Xiangqi Colour" scaled \magstep 5</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\font \redpieces = "BabelStone Xiangqi Colour":color=FF0000 scaled \magstep 5</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\font \blackpieces = "BabelStone Xiangqi Colour" scaled \magstep 5</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\pieces</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\char "1FA60\relax \ \char "1FA61\relax \ \char "1FA62\relax \ \char "1FA63\relax \ \char "1FA64\relax \ \char "1FA65\relax \ \char "1FA66\relax}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\strut}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\char "1FA67\relax \ \char "1FA68\relax \ \char "1FA69\relax \ \char "1FA6A\relax \ \char "1FA6B\relax \ \char "1FA6C\relax \ \char "1FA6D\relax}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\strut}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\strut}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\redpieces \char "1FA60\relax \ \char "1FA61\relax \ \char "1FA62\relax \ \char "1FA63\relax \ \char "1FA64\relax \ \char "1FA65\relax \ \char "1FA66\relax}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\strut}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\centerline {\blackpieces \char "1FA67\relax \ \char "1FA68\relax \ \char "1FA69\relax \ \char "1FA6A\relax \ \char "1FA6B\relax \ \char "1FA6C\relax \ \char "1FA6D\relax}</tt><tt style="font-family:monospace"><br>
</tt><tt style="font-family:monospace">\end</tt></blockquote>
<tt style="font-family:monospace">-- <br>
<i style="font-family:monospace">Philip Taylor</i><br>
</tt></div>
</blockquote>
</div>
</div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div></div>
</blockquote>
<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers.</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>Ross</div>
<br>
<div><br>
Dr Ross Moore<br>
Department of Mathematics and Statistics 
<div><a href="https://www.google.com/maps/search/12+Wally%E2%80%99s+Walk,+Level+7,+Room+734?entry=gmail&source=g">12 Wally’s Walk, Level 7, Room 734</a><br>
Macquarie University, NSW 2109, Australia<br>
T: +61 2 9850 8955  |  F: +61 2 9850 8114<br>
M:+61 407 288 255  |  E: <a href="mailto:ross.moore@mq.edu.au" target="_blank">ross.moore@mq.edu.au</a><br>
<a href="http://www.maths.mq.edu.au" target="_blank">http://www.maths.mq.edu.au</a><span style="font-size:12px;line-height:normal"><a href="http://mq.edu.au/" style="font-size:12px;line-height:normal" target="_blank"><span><br style="color:rgb(0,105,217);font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Arial,sans-serif">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Arial,sans-serif;color:rgb(0,105,217)"><span style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif"><img src="cid:1784a34f75ead7999132" style="font-family: Arial, sans-serif;"></span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">CRICOS
 Provider Number 00002J. Think before you</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">print. </span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">Please
 consider the environment before printing this</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">email.</span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">This
 message is intended for the addressee named</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">and
 may </span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">contain
 confidential information. If you are not the</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">intended </span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">recipient,
 please delete it and notify the sender. Views</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">expressed </span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">in
 this message are those of the individual sender, and</span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)"> </span><span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">are
 not </span><br style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;text-decoration:none">
<span style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;text-decoration:none;float:none;display:inline!important;color:rgb(0,0,0)">necessarily
 the views of Macquarie University.</span> </span></span></span></span></span></a></span></div>
<a href="http://mq.edu.au/" style="font-size:12px;line-height:normal" target="_blank"></a></div>
<br>
</div>
</div>

</blockquote></div></div>