latex3 / luaotfload

OpenType font loader for LuaTeX
Other
60 stars 7 forks source link

using Noto Color Emoji font #98

Open u-fischer opened 5 years ago

u-fischer commented 5 years ago

https://tex.stackexchange.com/questions/507987/loca-table-not-found

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Noto Color Emoji}
\begin{document}
😺
👅 
\end{document}

errors with

! error:  (file c:/Users/Nililand-Surface/UFlocaltexmf/fonts/truetype/NotoColor
Emoji.ttf) (ttf): loca table not found

It errors also in context so is probably an upstream problem.

khaledhosny commented 5 years ago

The font does not have any outline glyph tables (neither CFF no loca/glyf) and LuaTeX requires one of these to embed the font in PDF file. In harf mode I extract the PNGs for the glyphs and embed them directly in the PDF file and make sure no glyph nodes reach the backend with this font. ConTeXt code, IIRC, depends on third-party tools to do some of this, much like how it handles SVG table.