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

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

bug#42330: 26.3; Emacs does not change fonts per mode when changing buff


From: Eli Zaretskii
Subject: bug#42330: 26.3; Emacs does not change fonts per mode when changing buffers
Date: Sun, 12 Jul 2020 17:07:31 +0300

> From: Ray Dillinger <bear@sonic.net>
> Date: Sat, 11 Jul 2020 11:35:32 -0700
> 
> (add-hook 'text-mode-hook
>           (lambda()
>             (setq fill-column 9999) ; each "line" (as defined by ending
> in \n) is a paragraph.
>             '(buffer-face-set "xft:-PfEd-DejaVu Serif-normal-normal-
> semicondensed-*-21-*-*-*-*-0-iso10646-1 (#x4F)")

I believe the call to buffer-face-set above is in error, and thus
doesn't do what you want.

>             (set-frame-font "DejaVuSerifCondensed 16" t t)

And this switches the entire frame to the new font: again, not what
you want.

If you fix these two problems, i.e. use buffer-face-set correctly and
don't use set-frame-font at all, your setup will work as you want.

IOW, I don't think there's an Emacs bug here.





reply via email to

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