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

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

Re: Change font for buffer


From: Heime
Subject: Re: Change font for buffer
Date: Sat, 22 Jun 2024 19:47:07 +0000

On Saturday, June 22nd, 2024 at 4:08 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 22 Jun 2024 15:19:14 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > > What is the difference to using this instead ?
> > > > 
> > > > (set-face-attribute 'default nil :font "URW Chancery L-12")
> > > 
> > > It isn't buffer-local, and you wanted the change for a specific
> > > buffer, AFAIU.
> > 
> > Have looked at the docstring, but it is not very clear to me how to call it
> > exactly.
> > 
> > (buffer-face-mode-invoke "URW Chancery L-12" t)
> 
> 
> Try
> 
> (buffer-face-mode-invoke '(:family "URW Chancery L-12") t)

The command 

(buffer-face-mode-invoke '(:family "URW Chancery L-12") t)

gives me 

Debugger entered--Lisp error: (void-function buffer-face-mode-invoke)
  (buffer-face-mode-invoke '(:family "URW Chancery L-12") t)

Have used the command 

fc-list | sort | uniq | grep -i Chancery

to give me the list

/usr/share/fonts/type1/gsfonts/z003034l.pfb: URW Chancery L:style=Medium Italic

/usr/share/fonts/X11/Type1/z003034l.pfb: URW Chancery L:style=Medium Italic



reply via email to

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