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

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

bug#56763: 29.0.50; [PATCH] Update font for X toolkit


From: Po Lu
Subject: bug#56763: 29.0.50; [PATCH] Update font for X toolkit
Date: Tue, 26 Jul 2022 10:19:55 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Manuel Giraud <manuel@ledu-giraud.fr> writes:

> Hi,
>
> Here is a patch that sure needs some work (and test) but still I'm
> sending it as it works for me™.  The purpose is to have Emacs to update
> its menu face for X toolkits (i.e. not GTK) from elisp.  For instance,
> one can then do the following:
>
> (custom-set-faces
>  '(menu ((t (:foreground "blue" :background "red" :font "Iosevka")))))
>
>
> or
>
> (custom-set-faces
>  '(menu ((t (:foreground "#0a0a0a" :background "#d7d7d7" :family "Fira Sans 
> 20")))))
>
> and the face (along with colors) will be updated in menu. AFAIU it was
> not working because, when Emacs support i18n, only the fontSet resource
> was set and not the font.  This code does that.

*.pane.menubar.fontSet is documented to supersede .pane.menubar.font,
and AFAIR that's what it did until the Xft support was added, which
completely broke all the font selection logic.

So I will eventually get around to fixing this in xlwmenu.c, because the
bug is not in xfaces.c.

Thanks for reporting the bug.




reply via email to

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