Re: [Dev-luatex] Embedding minimally used TTF fonts
On 23 July 2019 16:21:18 CEST, luigi scarso
On Tue, Jul 23, 2019 at 1:03 PM Marcel Fabian Krüger
wrote: Hi,
whenever LuaTeX loads a TTF font but only uses a single glyph, which happens to be the notdef glyph (GID=0), LuaTeX complains about
(type 2): there are no glyphs in the subset
Of course this isn't true, because the notdef *is* in the subset.
This happens because LuaTeX always includes the notdef glyph, so it is never counted. The problem can be fixed by explicitly testing for this case.
Do you have an example ?
Of course: \starttext \font\test=logix.ttf\test \char"F0000 \stoptext See https://github.com/u-fischer/luaotfload/issues/73 for some context.
On Tue, Jul 23, 2019 at 5:03 PM Marcel Krüger
On 23 July 2019 16:21:18 CEST, luigi scarso
wrote: On Tue, Jul 23, 2019 at 1:03 PM Marcel Fabian Krüger
wrote: Hi,
whenever LuaTeX loads a TTF font but only uses a single glyph, which happens to be the notdef glyph (GID=0), LuaTeX complains about
(type 2): there are no glyphs in the subset
Of course this isn't true, because the notdef *is* in the subset.
This happens because LuaTeX always includes the notdef glyph, so it is never counted. The problem can be fixed by explicitly testing for this case.
Do you have an example ?
Of course:
\starttext \font\test=logix.ttf\test \char"F0000 \stoptext
See https://github.com/u-fischer/luaotfload/issues/73 for some context.
ok, thank you. I will see it asap . -- luigi
On Tue, Jul 23, 2019 at 5:05 PM luigi scarso
On Tue, Jul 23, 2019 at 5:03 PM Marcel Krüger
wrote: On 23 July 2019 16:21:18 CEST, luigi scarso
wrote: On Tue, Jul 23, 2019 at 1:03 PM Marcel Fabian Krüger
wrote: Hi,
whenever LuaTeX loads a TTF font but only uses a single glyph, which happens to be the notdef glyph (GID=0), LuaTeX complains about
(type 2): there are no glyphs in the subset
Of course this isn't true, because the notdef *is* in the subset.
This happens because LuaTeX always includes the notdef glyph, so it is never counted. The problem can be fixed by explicitly testing for this case.
Do you have an example ?
Of course:
\starttext \font\test=logix.ttf\test \char"F0000 \stoptext
See https://github.com/u-fischer/luaotfload/issues/73 for some context.
ok, thank you. I will see it asap .
ok, it's not a crash as said in https://github.com/u-fischer/luaotfload/issues/73 but it's a normal error, i.e. something that luatex considers as an error (of the user or of the the font). -- luigi
participants (2)
-
luigi scarso
-
Marcel Krüger