Re: UseThreeDMenus text alignment

[email protected]
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
On Thu, Oct 11, 2018 at 07:08:07PM -0500, Matthew D. Fuller wrote:
> On Thu, Oct 11, 2018 at 03:20:49PM -0400 I heard the voice of
> Wayne, and lo! it spake thus:
> > 
> > When UseThreeDMenus is defined in .ctwmrc it appears that the text
> > of menu is shifted down by some number of pixels causing the menu
> > text not to line with the menu selection and is aesthetically
> > unpleasing.
> 
> Interesting.  So, I _can_ reproduce it in Xnest and Xephyr, but it's
> dependant on the MenuFont.  The builtin default is
> "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*", which looks fine.
> But with "-misc-fixed-bold-r-normal--*-140-*-*-*", it gets shifted.
> 
> A few-pixel shift in things is characteristic of the font height
> estimation changes we landed just after 3.8.2 (r298).  And if I fire
> up that nest'd ctwm with LANG=C or an ISO8859-1 charset, the shift
> does go away.  So that at least points a good finger at where the
> problem is.
> 
> 
> -- 
> Matthew Fuller     (MF4839)   |  [email protected]
> Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
>            On the Internet, nobody can hear you scream.
>

One important detail that I neglected to report is the log that is
produced when ctwm > 4.x is started:

Failed to get fontset -*-helvetica-bold-r-normal-*-*-120-*,*
Failed to get fontset -*-helvetica-bold-r-normal-*-*-120-*,*
Failed to get fontset -*-helvetica-bold-r-normal-*-*-120-*,*
Failed to get fontset -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*,*
Failed to get fontset -*-helvetica-bold-r-normal-*-*-120-*,*
Failed to get fontset -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*,*
Failed to get fontset -adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1,*

This happens when run under Xephyr on my system which results in
the 'misc-fixed' font being selected so, that explains it. Xnest and
Xorg must be using the adobe-helvetica, as you mentioned. I'm not
married to helvetica so I can work around that for now.

Thank you for looking into that Matthew. BTW, what is the significance
of MF4839?

Regards,
Wayne
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.