Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upColor SVG in OpenType font always rendered in B&W #96
Comments
This comment has been minimized.
This comment has been minimized.
The similar issue in ConTeXt can be worked around by addition of But the above workaround does not work for this issue, so this issue seems independent of the similar issue in ConTeXt. |
This comment has been minimized.
This comment has been minimized.
@emojifreak The created file is caused by a typo in ConTeXt, so we will have to wait for the ConTeXt team to fix it. Even then, the conversion will almost always fail: By default, LuaLaTeX does not allow unrestricted shell-escape, so the code is not allowsed to call arbitrary programs like Off topic, but given that we are talking about warnings anyway: Have you noticed that your examples gives a warning about paths in file lookups?
Basicalls |
This comment has been minimized.
This comment has been minimized.
On dev-context Hans is taking care of the upstream issue. |
This comment has been minimized.
This comment has been minimized.
@zauguin Thank you very much for the detailed comment!
I understand the development policy. I have absolutely no objection about it.
Thanks again. I will use a correct (up-to-date) syntax in the next time.
I saw (part of ?) your comment as http://tracker.luatex.org/view.php?id=1013#c1722 |
This comment has been minimized.
This comment has been minimized.
@zauguin Thank you for your work. This issue is almost fixed as below. When I use lualatex + luaotfload 3.1 on the below file with
lualatex gives the error
and with the above correction |
This comment has been minimized.
This comment has been minimized.
This looks like an upstream error in the generic fontloader. Please report it on the context mailing. When they adapt the fontloader we can import it, |
This comment has been minimized.
This comment has been minimized.
@u-fischer Thanks for your quick response.
The error in luaotfload is caused by the absense of definition of the function There seems no problem in the upstream ConTeXt. If there is a problem in ConTeXt, please tell me it. I see nothing to be reported to the ConTeXt team. |
This comment has been minimized.
This comment has been minimized.
yes it is a context problem, the fontloader is (more or less) a copy of the generic font loader provided by context (luatex-fonts-merged.lua in tex/generic/context/luatex) and as you remarked it refers to an undefined function. |
This comment has been minimized.
This comment has been minimized.
Sorry I cannot see your point. The function
The Actually, Section 9.2 of
I believe that if the |
This comment has been minimized.
This comment has been minimized.
We don't and can't import all lua-files from context - some of them are incompatible. We only import the files which are listed in luatex-fonts.lua. So please write to the list and say that the generic fontloader is using an undefined function. Hans will manage, and if he doesn't I can still interfere. |
This comment has been minimized.
This comment has been minimized.
@u-fischer Thank you for your kind explanation and I am sorry for my slow understanding. I reported it at http://tracker.luatex.org/view.php?id=1013#c1724 |
Background: ConTeXt officially supports Color SVG in OpenType font as stated in
https://meeting.contextgarden.net/2017/talks/2017-09-12-hans-color-fonts/picture-fonts.pdf
but it seems broken in the sense that no glyph appears in PDF as reported at
http://tracker.luatex.org/view.php?id=1013
After downloading Abelone color font from
https://www.fontself.com/colorfontweek/2018#abelone
to current directory and use lualatex to the following file
{{{
\documentclass{minimal}
\font\svgcolorfont={file:./Abelone-FREE.otf:+svg}
\begin{document}
\noindent
\svgcolorfont ABCDEF abcdef
\end{document}
}}}
+svg
. So the fallback B&W glyph in the font file is used for PDF generation.inkscape --shell > temp-otf-svg-shape.log
is generated.+svg
is removed from the above TeX source, then fileinkscape --shell > temp-otf-svg-shape.log
is not generated.It seems that LuaLaTeX converts SVG in the font file to PDF, tries to embed converted PDF
and fails. I have made sure that my installation of inkscape can convert SVG to PDF by
inkscape file.svg -A file.pdf
.Conclusion:
+svg