With LuaTeX, how do I get a list of OTF features supported by the current font in use printed?
For example, with otfinfo, I can get a list of OTF features by otfinfo -f font_file_name. Can I do anything similar with LuaTeX?
The goal is to produce such a list for each font I tested. For example, I would like to have such a macro,
\def\listfontfeatures{
\directlua{... some lua code to list font features to a string, say ff ...}
\directlua{tex.print(ff)}
}
And use it like the following,
Times Ten LT Std: \fontspec{Times Ten LT Std} \listfontfeatures \par
Palatino LT Std: \fontspec{Palatino LT Std} \listfontfeatures \par
Minion Pro: \fontspec{Minion Pro} \listfontfeatures \par