Skip to content

alias FindTruetypeFileCallback


(alias) FindTruetypeFileCallback = fun(asked_name: string) -> string?

Find a TrueType font file.

The asked_name is a font file. This callback is called while LuaTeX is building its internal list of needed font files, so the actual timing may surprise you. Your return value is later fed back into the matching read_file callback.

Strangely enough, find_type1_file is also used for OpenType (OTF) fonts.

😱 Types incomplete or incorrect? 🙏 Please contribute!