local and remote text fonts

Bert Wesarg wesarg at informatik.uni-halle.de
Fri Jun 29 10:05:10 CEST 2007


Problem situation:

I'm sure I'm not the only person who uses nedit from a remote machine. But
when I use nedit from one machine on different machines and these
different machines have different display settings (resolution, dpi) than
I have to choose the text fonts vary carefully to get the best on all
these different displays. Now I have maybe two vary different display
settings: one 1600x1200 100dpi display and a 1024x768 124dpi. So I tried
to improve the situation.

Current solution:

I hacked (what else) nedit to not save the text font settings in the
nedit.rc file. And I copied on every x server machine the text font
settings from nedit.rc to .Xdefaults. this works, but is a hack.

A better solution to this could maybe something like this:

check after connecting to the x server if nedit and the x server running
on the same machine, iff use the current behavior else use the text font
settings from the x server resourcedb (and probably ask the user for this).

there is one technical issue which I came up with this:

How to check if nedit and the x server are running on the same machine? My
current plan is to check the ip address of the X server with the one nedit
is running on. But this isn't canonical, think of an ssh tunnel.

So my request is more to answer this last question, the rest I can code by
myself and provide a patch.

regards
bert

ps: this is a repost of the Feature Requests item #1745033:
https://sourceforge.net/tracker/?func=detail&atid=361005&aid=1745033&group_id=11005


More information about the Discuss mailing list