Subject: Re: bug#70989: 29.3; Calling isearch-forward when using Unifont throws error "Invalid font name"

From: Po Lu <[email-masked]>
Date: Sun, 19 May 2024 08:15:14 +0800

Eli Zaretskii <[email-masked]> writes:

> Sorry, can you elaborate a bit, please?  Specifically:
>
>   . which code in get_adstyle_property does this, and how?

Not "which code", but "the code", in that the function doesn't actively
generate adstyles inappropriate for XLFDs, but duly returns such
adstyles when Fontconfig reports the same.

>   . what is your idea for a fix, which led you to ask about "the
>     chances that a font will define two adstyles that collide"?

Replacing instances of "-" with "_" in adstyles.