emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix placement of toggle and radio button in Lucid menu.


From: Po Lu
Subject: Re: [PATCH] Fix placement of toggle and radio button in Lucid menu.
Date: Sat, 26 Feb 2022 15:33:40 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Sorry, I don't understand how this is relevant.

The problem is that the Lucid menu bar widget doesn't find fonts like
the rest of Emacs does, using the individual font backends.  Instead, it
relies on various ad hoc methods for font discovery that change
depending on how it is built.  I didn't look too closely, but font
metrics are probably calculated differently as well.

But I thought you were suggesting that the Lucid menu bar widget used
font objects opened by Emacs.

> What I meant is to invoke Emacs like this:
>
>    emacs -Q -fn SOMETHING
>
> where SOMETHING is the font used in the Lucid menus, and the examine
> the metrics of the relevant characters and of the font inside
> gui_produce_glyphs.
>
> The only difficulty I could see is if somehow it is not easy to know
> which font is used in the Lucid menus.  Is that the problem?

That's also a problem, but you can control the font by starting Emacs
with "-xrm 'Emacs.pane.menubar.font: Courier-12''" or something to that
effect.  But keep in mind that the metrics may still be different, due
to the aformentioned caveats.  For instance, it might elect to use X
server-side fonts even if the same font is displayed using Xft by the
rest of Emacs, very often resulting in different metrics.

Thanks.


reply via email to

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