all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ace-window and font face not working
@ 2021-07-26 13:19 Luca Ferrari
  2021-07-26 13:32 ` Eli Zaretskii
  2021-07-29  8:18 ` Luca Ferrari
  0 siblings, 2 replies; 4+ messages in thread
From: Luca Ferrari @ 2021-07-26 13:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
running Emacs 27.2, and I've try to setup the font face for when
ace-window activates (the window number):

(custom-set-faces
         '(aw-leading-char-face
           ((t (:inherit ace-jump-face-foreground :height 30 :weight
bold :foreground "#00ffff" :background "#0000ff")))))


The color for the foreground and background is correctly set, but the
height does not seem to work. At least in terminal mode, that is how I
use Emacs in this configuration.

Any idea?

Thanks,
Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ace-window and font face not working
  2021-07-26 13:19 ace-window and font face not working Luca Ferrari
@ 2021-07-26 13:32 ` Eli Zaretskii
  2021-07-29  8:18 ` Luca Ferrari
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-07-26 13:32 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Luca Ferrari <fluca1978@gmail.com>
> Date: Mon, 26 Jul 2021 15:19:34 +0200
> 
> running Emacs 27.2, and I've try to setup the font face for when
> ace-window activates (the window number):
> 
> (custom-set-faces
>          '(aw-leading-char-face
>            ((t (:inherit ace-jump-face-foreground :height 30 :weight
> bold :foreground "#00ffff" :background "#0000ff")))))
> 
> 
> The color for the foreground and background is correctly set, but the
> height does not seem to work.

What is the definition of ace-jump-face-foreground face?

> At least in terminal mode, that is how I use Emacs in this
> configuration.

If by "terminal mode" you mean text-mode terminal, then Emacs cannot
change the height of the font in that case.  The font is determined by
the terminal emulator (xterm etc.) in that case.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ace-window and font face not working
  2021-07-26 13:19 ace-window and font face not working Luca Ferrari
  2021-07-26 13:32 ` Eli Zaretskii
@ 2021-07-29  8:18 ` Luca Ferrari
  2021-07-29  9:03   ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2021-07-29  8:18 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, Jul 26, 2021 at 3:19 PM Luca Ferrari <fluca1978@gmail.com> wrote:
> (custom-set-faces
>          '(aw-leading-char-face
>            ((t (:inherit ace-jump-face-foreground :height 30 :weight
> bold :foreground "#00ffff" :background "#0000ff")))))
>

I'm still fighting with this, however I've made some steps forward:
1) the aw-ledaing-char-face is not honored in terminal window because
any face size is not, since the terminal is driving the font size. In
other words, the above almost works in GUI Emacs but
2) no matter where I place the above snippet, it does not work once
GUI Emacs is started unless M-x evaluate-region

Why do I need to re-evaluate the region after Emacs has started? I've
tried to place the snippet at the very end of my config file, but
still it does not work.

Thanks,
Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ace-window and font face not working
  2021-07-29  8:18 ` Luca Ferrari
@ 2021-07-29  9:03   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-07-29  9:03 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Luca Ferrari <fluca1978@gmail.com>
> Date: Thu, 29 Jul 2021 10:18:38 +0200
> 
> On Mon, Jul 26, 2021 at 3:19 PM Luca Ferrari <fluca1978@gmail.com> wrote:
> > (custom-set-faces
> >          '(aw-leading-char-face
> >            ((t (:inherit ace-jump-face-foreground :height 30 :weight
> > bold :foreground "#00ffff" :background "#0000ff")))))
> >
> 
> I'm still fighting with this, however I've made some steps forward:
> 1) the aw-ledaing-char-face is not honored in terminal window because
> any face size is not, since the terminal is driving the font size. In
> other words, the above almost works in GUI Emacs but
> 2) no matter where I place the above snippet, it does not work once
> GUI Emacs is started unless M-x evaluate-region

Both results are expected.

> Why do I need to re-evaluate the region after Emacs has started?

Because as long as at least one GUI frame is created, Emacs doesn't
have access to GUI capabilities that can affect the selected fonts.
Assuming that you start Emacs with -nw or as a daemon, you need to
have face customizations that require GUI features in
after-make-frame-functions, not in your init file.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-29  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 13:19 ace-window and font face not working Luca Ferrari
2021-07-26 13:32 ` Eli Zaretskii
2021-07-29  8:18 ` Luca Ferrari
2021-07-29  9:03   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.