So I've been messing around for the past year or so with getting as many
things as possible to scale (and position) properly based on the actual
display resolution and size.  Fonts are more or less easy for the easy
cases, but a horrendous nightmare for the hard cases.  (I'm ignoring
icons for now!)

CTWM has mostly honoured my requests and I get nicely sized fonts in my
title bars, icon manager, menus, and icon labels (and the resize text).

However I have only briefly, and using magic I did not understand or
correctly record, managed to get the font in the Identify and About
windows to scale properly.

I have aliased every font spec I can find in the source and libraries,
and I've explicitly set every font-related X resource I can find
reference to, all to no avail (well they all work for everything else,
just not the Identify and About windows).

I'm probably going to have to resort to some trickery to trace what
fonts are being requested and loaded (probably using LD_PRELOAD), but
before I do I wonder if anyone has any suggestions as to exactly what
font specification is used to request the font for the Identify and
About windows.

If anyone wants to see the nitty-gritty messy details of what I'm doing
please have a look at all my $HOME dotfiles:

       https://github.com/robohack/dotfiles

In particular see .fonts.alias.m4 and .Xdefaults (and .X11-m4macros.m4)
Good old .ctwmrc is also there too of course, but it seems irrelevant
since it is impossible to actually configure DefaultFont.

BTW, as an aside, some unthinking ignorant fool has caused fonts to
scale improperly on Debian GNU/Linux!  They're all always way over-sized
by default!  I really wish I could put a stop entirely to this idiotic
useless practice of wholesale display scaling to deal with high-
resolution (so-called "HiDPI") displays.  It REALLY doesn't help.  X11
has been designed for, and capable of, scaling fonts and handling window
sizing and positioning for arbitrary screen resolutions and sizes since
at least X11R6 -- it just has to be used correctly!

--
                                        Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>

Attachment: pgpApn7PSoqTx.pgp
Description: OpenPGP Digital Signature

Reply via email to