Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tl24-pretest: emoji-fallback errors #274

Open
u-fischer opened this issue Feb 16, 2024 · 4 comments
Open

tl24-pretest: emoji-fallback errors #274

u-fischer opened this issue Feb 16, 2024 · 4 comments
Labels
bug Something isn't working fixed in dev already fixed

Comments

@u-fischer
Copy link
Member

The following example works fine for me on texlive 2023 but error in tl24-pretest:

\documentclass{article}
\usepackage{fontspec}

\directlua{luaotfload.add_fallback
   ("emojifallback",
    {
      "NotoColorEmoji:mode=harf;"
    }
   )}

\setmainfont{texgyretermes-regular}[RawFeature={fallback=emojifallback}]


\begin{document}
😄  minikube v1.15.1 on Ubuntu 20.04\\
✨  Automatically selected the docker driver\\
👍  Starting control plane node minikube in cluster minikube\\
🚜  Pulling base image ...
\end{document}

The error message depends on if I use lualatex or lualatex-dev (which then use the luotfload-dev branch):

lualatex:

luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate....texm
f-dist/tex/luatex/luaotfload/luaotfload-fallback.lua:50: attempt to index a nil 
value (local 'f').
<to be read again> 

lualatex.dev

warning  (node filter): error: ...nstall/tex/latex-dev/luaotfload/luaotfload-har
f-plug.lua:715: attempt to index a nil value

.
<argument> ...ype:D \tex_hskip:D \c_zero_dim \fi: \tex_par:D 
                                                  \hook_use:n {para/after}\@...
l.207 \end{document}

(I assume it has to do with the new security settings as the example loads files from /AppData/Local/Temp/s77k.0, segoe works).

@zauguin
Copy link
Member

zauguin commented Feb 17, 2024

This is probably not fallback specific. AFAICT the PNG support generally has issues since the temporary directory can't be written to.

@u-fischer
Copy link
Member Author

u-fischer commented Feb 17, 2024

yes it fails also with a simply \setmainfont{NotoColorEmoji}[Renderer=HarfBuzz].

@zauguin
Copy link
Member

zauguin commented Feb 17, 2024

This should be fixed with the latest commit on dev.

@zauguin zauguin added bug Something isn't working fixed in dev already fixed labels Feb 18, 2024
@u-fischer
Copy link
Member Author

Seems to work fine, the picture are now from a local temporary directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev already fixed
Projects
None yet
Development

No branches or pull requests

2 participants