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

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

bug#2885: 23.0.92; Cannot customize tootip font


From: Stephen Berman
Subject: bug#2885: 23.0.92; Cannot customize tootip font
Date: Sat, 04 Apr 2009 16:30:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

On Sat, 04 Apr 2009 11:05:45 +0300 Eli Zaretskii <address@hidden> wrote:

> I don't like the default size of the font used by tooltips, so I
> customize it to a smaller size by the following expression in my
> ~/.emacs:
>
>   (setq tooltip-frame-parameters
>               '((name . "tooltip")
>                 (internal-border-width . 2)
>                 (border-width . 1)
>                 (font . "-*-*-light-r-*-*-10-*-*-*-*-*-*")))
>
> This copies all the default parameters from tooltip.el, but adds a
> font specification to the alist.
>
> In Emacs 23, this doesn't seem to work, though: if you evaluate the
> above expression in "emacs -Q" and move the mouse pointer to some
> tool-bar button, you will see that the first tooltip is popped using
> the smaller font, but the next and all the following tooltips somehow
> revert to using the original font.
> [...]
> In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600)
>  of 2009-04-04 on HOME-C4E4A596F7

I cannot reproduce this in GNU Emacs 23.0.91.5 (i686-pc-linux-gnu, GTK+
Version 2.14.4) of 2009-03-30 on escher: for me the font parameter has
no effect, which agrees with the doc string:

tooltip-frame-parameters is a variable defined in `tooltip.el'.
Its value is 
((name . "tooltip")
 (internal-border-width . 2)
 (border-width . 1))


Documentation:
Frame parameters used for tooltips.

If `left' or `top' parameters are included, they specify the absolute
position to pop up the tooltip.

Note that font and color parameters are ignored, and the attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
of the `tooltip' face are used instead.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Can you get what you want with set-face-attribute?

Steve Berman






reply via email to

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