On 13/04/2025 14:56, Ihor Radchenko wrote:
Max Nikulin writes:
This list looks like a set of fallback variants for primary font, not as
options to try when some characters are missed. Perhaps it may be
reasonable to have predefined configuration for widely used fonts like
Noto, freefonts, DejaVu, Liberation, CMU (Computer Modern Unicode),
crosscore, ubuntu, etc., test what ones are installed (unless preferred
family is configured by the user) and use just it.

Yup, that's what I thought. It looks like lualatex is able to scan
available fonts and select first available, so we do not have to limit
ourselves to a single font.

It seems if any configured font name is missed then text completely disappears (nullfont is used). Try Something like "Missed Serif" in e.g. \setmainfont or in a fallback list.

So either elisp or lua code should iterate over known families (Noto, Freefont, DejaVu), drop unavailable, and prefer family that is available in all necessary variants: serif, sans, mono, matching math font.

Reply via email to