Re: [XeTeX] Coloured fonts

2021-03-20 Thread BPJ
Last time I looked the glyphs in colored fonts are bitmap images anyway, so you might just to create a set of images from the font and use them, or you might take the right characters from a regular vector font and use XeTeX's regular font color mechanism to make the red ones appear red, perhaps ad

Re: [XeTeX] Coloured fonts

2021-03-19 Thread Adam Twardoch (Lists)
I'll add something: The new OpenType extensions (variable CFF2, variable TTF, color SVG, color COLR, color sbix, color CBDT) are not supported natively in PDF or PostScript. So when a printer driver creates the PDF/PS, it needs to convert the font to something. Generally there are two scenarios

Re: [XeTeX] Coloured fonts

2021-03-19 Thread Paul A Norman
Thanks Jonathan, Absolutely correct. Ross's link covers the previously competing technologies for this (which are still around), and much the same can apply to any of them depending on how things are processed right through to end product. Paul On Fri, 19 Mar 2021 at 13:57, Jonathan Kew wrote:

Re: [XeTeX] Coloured fonts

2021-03-19 Thread Adam Twardoch (Lists)
PANOSE has nothing to do with color. On Thu, 18 Mar 2021 at 21:35, Ross Moore wrote: > Hi David, Philip. > > > On 19 Mar 2021, at 7:17 am, David Carlisle wrote: > > Not sure if xetex can do colour fonts currently, > > > According to here: > > https://www.colorfonts.wtf > > there’s not many

Re: [XeTeX] Coloured fonts

2021-03-19 Thread Philip Taylor
Ulrike Fischer wrote: You use harf mode, and so you should use luahbtex not luatex. Thank you Ulrike — David C. made this very point yesterday, after which all worked as hoped.  Having switched to LuaHbTeX for this project, I now have a new problem however  — LuaHbTeX does not form ligatures

Re: [XeTeX] Coloured fonts

2021-03-19 Thread Ulrike Fischer
Am Thu, 18 Mar 2021 21:28:32 + schrieb Philip Taylor: > % !TeX Program=LuaTeX You use harf mode, and so you should use luahbtex not luatex. (lualatex uses luahbtex as engine by default). -- Ulrike Fischer http://www.troubleshooting-tex.de/

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Jonathan Kew
On 18/03/2021 23:50, Paul A. Norman wrote: If a pdf (pre)viewer component is not coded to do it by itself, the underlying operating system may be called to do the rendering. As per link in Ross More's posting, that may mean sometimes that a minimum of: macOS 10.14+, iOS 12+, Windows 10+ – is

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Paul A. Norman
P.S. link for Laura Baker's article ... "OpenType SVG Fonts in Print: Known Issues and Recommendations" https://www.sheridan.com/books-blog/opentype-svg-fonts-in-print-known-issues-and-recommendations --- http://PaulANorman.info On March 19, 2021 12:50:32 PM GMT+13:00, "Paul A. Norman" wrote:

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Paul A. Norman
If a pdf (pre)viewer component is not coded to do it by itself, the underlying operating system may be called to do the rendering. As per link in Ross More's posting, that may mean sometimes that a minimum of: macOS 10.14+, iOS 12+, Windows 10+ – is required. It's one thing to get it showing in

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Philip Taylor
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

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Philip Taylor
David Carlisle wrote: Sigh, I thought you'd like the challenge:-) with luahbtex: \input luaotfload.sty \font\chess=BabelStoneXiangqiColour.ttf:mode=harf testing {\chess ^^01fa64} \bye But does that give a coloured glyph, as did your LuaLaTeX version ? I ask because I have integrate

Re: [XeTeX] Coloured fonts

2021-03-18 Thread David Carlisle
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 wrote: > David Carlisle wrote: > > Not sure if xetex can do colour fonts curr

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Philip Taylor
Hallo Ross — The colour doesn’t show in Phil’s example PDF, neither in Adobe’s  Illustrator, nor Acrobat Pro, despite Adobe being one of the instigators of this font format. So presumably the font isn’t installed correctly into the PDF. Yes, I'd agree with that. Unfortunately the link to ge

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Philip Taylor
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} testi

Re: [XeTeX] Coloured fonts

2021-03-18 Thread Ross Moore
Hi David, Philip. On 19 Mar 2021, at 7:17 am, David Carlisle mailto:d.p.carli...@gmail.com>> wrote: Not sure if xetex can do colour fonts currently, According to here: https://www.colorfonts.wtf there’s not many applications that do support this new technology. The colour doesn’t show

Re: [XeTeX] Coloured fonts

2021-03-18 Thread David Carlisle
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 ^^