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 #52 received at 35816 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: lockywolf <at> gmail.com, schwab <at> linux-m68k.org, 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 16:06:12 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: schwab <at> linux-m68k.org,  lockywolf <at> gmail.com,  35816 <at> debbugs.gnu.org
> Date: Thu, 12 Aug 2021 14:53:30 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> This bug was only about XLFD fonts, though.
> >
> > AFAIR, we eventually convert all the other forms into XLFD format.
> 
> Oh, we do?  I didn't know that.  Well, then there might be problems.
> But...  why?  I thought everything got parsed into font-spec structures.

Maybe you are right, I won't trust my memory too much on this.

> >   The format of the font string specification varies based on the font
> >   system in use, but it can commonly be an X Logical Font
> >   Description (XLFD) string, or a simpler string like "Courier-10"
> >   or "courier:size=10".
> 
> Right.  
> 
> (font-spec :name "Courier-10")
> => #<font-spec nil nil Courier nil nil nil nil nil 10.0 nil nil nil ((:name . "Courier-10"))>
> 
> (font-spec :name "Courier-Foo-10")
> => #<font-spec nil nil Courier-Foo nil nil nil nil nil 10.0 nil nil nil ((:name . "Courier-Foo-10"))>
> 
> Both before and after the changes.

Great, thanks.




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.