|
From: | Andreas Schwab |
Subject: | bug#35816: 26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont |
Date: | Thu, 12 Aug 2021 09:31:44 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Aug 12 2021, Eli Zaretskii wrote: > Another important API that accepts font names is > set-face-font, and you will see that there's already some heuristics > in set-face-attribute to support the likes of "Courier-10", which is a > Fontconfig format of specifying a font family. Note that fontconfig requires a dash in the family name to be quoted. $ fc-match 'Montserrat\-ExtraLightItalic' Montserrat-ExtraLightItalic.pfb: "Montserrat-ExtraLightItalic" "ExtraLight" $ fc-match 'Montserrat-ExtraLightItalic' Montserrat-Regular.otf: "Montserrat" "Regular" Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
[Prev in Thread] | Current Thread | [Next in Thread] |