BUG: Luatex gets high unicode codepoints with an offset
Hi, please consider this sample code|:| ||||\documentclass{article} \usepackage{fontspec} \newfontface\MDI{Material Design Icons}[] \begin{document} Look at this character {\MDI \char"F1372}! \end{document} It is meant to work with the materialdesignicons-webfont.ttf font downloadable from https://materialdesignicons.com/ https://materialdesignicons.com/ . The code works just fine with xelatex, but with lualatex it picks a wrong char (there seems to be an offset by 14). See also https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-... . Seems a bug to me, certainly an inconsistency with xelatex. Any idea? Best, Sergio ||
On Wed, May 12, 2021 at 8:45 AM Sergio Callegari
Hi, please consider this sample code:
\documentclass{article} \usepackage{fontspec} \newfontface\MDI{Material Design Icons}[] \begin{document} Look at this character {\MDI \char"F1372}! \end{document}
It is meant to work with the materialdesignicons-webfont.ttf font downloadable from https://materialdesignicons.com/ .
The code works just fine with xelatex, but with lualatex it picks a wrong char (there seems to be an offset by 14).
See also https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-... .
Seems a bug to me, certainly an inconsistency with xelatex.
Any idea?
For context there is a thread :
https://mailman.ntg.nl/pipermail/ntg-context/2021/thread.html [NTG-context] \char not working with private unicodes -- luigi
participants (2)
-
luigi scarso
-
Sergio Callegari