bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35816: 26.2; set-frame-font cannot set some fonts which autocomplete


From: Eli Zaretskii
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 15:48:28 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: schwab@linux-m68k.org,  lockywolf@gmail.com,  35816@debbugs.gnu.org
> Date: Thu, 12 Aug 2021 14:27:49 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > set-frame-font is not the only API that accepts font names, and XLFD
> > is not the only format of fonts Emacs accepts
> 
> This bug was only about XLFD fonts, though.

AFAIR, we eventually convert all the other forms into XLFD format.

> > Also, perhaps set-face-font can now accept font names that
> > include a dash which not only precedes a numeric size, in which case
> > at least the doc string of set-face-font should be amended?
> 
> I didn't see anything about dashes in the set-face-font doc string?

  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".

> > Finally, I think it would be good to have some tests for these issues,
> > as much as possible (we cannot set fonts in batch mode, but perhaps
> > using lower-level APIs that parse the font spec would allow such
> > tests).
> 
> I didn't find any Lisp-level interfaces that exposed this yesterday, but
> I now see that `(font-spec :name ...)' was what I was looking for, so
> I've added a couple of tests.

Thanks!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]