[GRASS-dev] RE: [GRASS-user] Small tcltk fonts used in gis.m gui
    Patton, Eric 
    epatton at nrcan.gc.ca
       
    Tue Apr 29 13:18:45 EDT 2008
    
    
  
Patton, Eric wrote:
>> I'm pretty sure something strange happened between my upgrade from
>> Ubuntu 7.10 to 8.04, but all applications that I use (there's not too
>> many) that use tcl/tk as the gui toolkit have really small fonts being
>> used. 
>This probably indicates that it is confused about the scale factor to
>convert between points and pixels. It may be that your monitor is
>reporting bogus physical dimensions via EDID. Or it may be that you
>have some existing configuration settings based upon the historical
>default of 75 DPI and those settings are producing undesirable results
>when your system uses your monitor's actual resolution.
>> Does anyone know how I can re-configure the global font sizes used in
>> tcl/tk?
>Tk reads ~/.Xdefaults, and uses any "*font: ..." setting found there.
>
>However, gis.m overrides that setting with:
>
>	fontcreate default -family Helvetica -size -12
>	...
>	option add *font default
It's easy enough to do a global find and replace on the relevant tcl files,
and to edit my ~/.Xdefaults; is there anything else I should do to ensure the edits 
remain permanently?
>I have no idea where it gets this information from (or if it's just
>hard-coded to 75 DPI). Tk 8.4 doesn't call DisplayWidthMM or
>DisplayHeightMM, which is the normal way to determine the physical
>screen resolution. However, the list of changes for Tk 8.5 suggest
>that the font rendering has been replaced.
Hopefully an update to 8.5 will solve the problem. 
Thanks for the hints; 
~ Eric.
    
    
More information about the grass-dev
mailing list