local and remote text fonts

Bert Wesarg wesarg at informatik.uni-halle.de
Fri Jun 29 13:24:53 CEST 2007


Hi,

Tony Balinski wrote:
> Quoting Bert Wesarg <wesarg at informatik.uni-halle.de>:
> 
>> 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. ...
>>
>> 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).
> 
> I would do this very differently, by using a script to launch nedit or nc with
> appropriate font resources for each display. That script can examine the
> output of xdpyinfo or other such programs to decide on the best font set to
> apply. It would then invoke nedit/nc with the appropriate -xrm arguments.
Nice approach. I may sleep about this. But my second feeling says that the
font informations should be saved in the x server machine, not on the
nedit machine. Even if I must change these settings by hand.

But thanks for the input.

Bert



More information about the Discuss mailing list