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.
Best regards,
Marcel Krueger
diff --git a/source/texk/web2c/luatexdir/font/writetype2.c b/source/texk/web2c/luatexdir/font/writetype2.c
index 49193579b..0f889f707 100644
--- a/source/texk/web2c/luatexdir/font/writetype2.c
+++ b/source/texk/web2c/luatexdir/font/writetype2.c
@@ -289,7 +289,7 @@ boolean make_tt_subset(PDF pdf, fd_entry * fd, unsigned char *buff, int buflen)
num_glyphs++;
}
- if (num_glyphs == 1) {
+ if (num_glyphs == 1 && used_chars[0] == 0) {
normal_error("type 2","there are no glyphs in the subset");
}
if (tt_build_tables(sfont, glyphs, fd) < 0) {