GNU bug report logs - #35816
26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont

Previous Next

Package: emacs;

Reported by: Vladimir Nikishkin <lockywolf <at> gmail.com>

Date: Tue, 21 May 2019 02:07:01 UTC

Severity: normal

Found in version 26.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 35816 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: larsi <at> gnus.org, lockywolf <at> gmail.com, 35816 <at> debbugs.gnu.org
Subject: Re: 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 11:10:31 +0300
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,  lockywolf <at> gmail.com,
>   35816 <at> debbugs.gnu.org
> Date: Thu, 12 Aug 2021 09:31:44 +0200
> 
> 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"

That's not what Emacs requires, at least not according to the manual.
And the code doesn't seem to support such quoting, unless I'm missing
something.




This bug report was last modified 3 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.