Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

kernfactor and missing glyphs #351

Closed
schlcht opened this issue May 1, 2016 · 0 comments
Closed

kernfactor and missing glyphs #351

schlcht opened this issue May 1, 2016 · 0 comments
Labels

Comments

@schlcht
Copy link

schlcht commented May 1, 2016

\input luaotfload.sty
\font\x="Latin Modern Roman:kernfactor=0.100"
\x Αθήνα
\bye

crashes with

error: ...mf-dist/tex/luatex/luaotfload/luaotfload-letterspace.lua:414: attempt to index field '?' (a nil value)

as the font doesn't contain the Greek glyphs. However, it should just issue a warning.

@phi-gamma phi-gamma added the bug label May 2, 2016
phi-gamma added a commit to phi-gamma/luaotfload that referenced this issue May 2, 2016
Fix issue lualatex#351

The letterspace node handler dereferences kern values of non-existant
character information under some circumstances, causing Luatex to crash.
To avoid this crash, check more thoroughly for the presence of the
fields accessed.

Discovered by @schlcht
@phi-gamma phi-gamma mentioned this issue May 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants