[GRASS-dev] Re: [GRASS GIS] #291: font settings not saved

GRASS GIS trac at osgeo.org
Mon Sep 15 06:01:44 EDT 2008


#291: font settings not saved
-----------------------+----------------------------------------------------
  Reporter:  msieczka  |       Owner:  martinl         
      Type:  defect    |      Status:  assigned        
  Priority:  major     |   Milestone:  6.4.0           
 Component:  wxGUI     |     Version:  svn-develbranch6
Resolution:            |    Keywords:                  
  Platform:  All       |         Cpu:  All             
-----------------------+----------------------------------------------------
Comment (by msieczka):

 Replying to [comment:4 glynn]:
 > Replying to [comment:3 msieczka]:

 > > On my system encoding is pl_PL.UTF-8.

 > "pl_PL.UTF-8" is the locale; the encoding is just "UTF-8".

 > > Should I set the encoding in Preferences > Display > Set font be set
 to that, instead of ISO-8859-1?

 > Probably. Try using some non-ASCII characters in e.g. d.text text="..."
 and see what works.
 >
 > If you have a Unicode version of wxWidgets, it's likely to use Unicode
 internally (e.g. for anything you type into a text field). That will get
 converted to a byte string (either by wxWidgets or by Python) by the time
 that it's passed to d.text, and it will probably use the locale's encoding
 to perform the conversion.

 Whatever encoding I specify, e.g. ISO-8859-1 or UTF-8, Polish non-ASCII
 chars are always rendered correct. I'm not sure if this is normal - when I
 specify ISO-8859-1 I'd expect those chars to be rendered wrong.

 As for the original bug report, it is fixed. Remaining issues:

 1. The text overlay dialog is missing a show/hide checkbox.

 2. If multiple labels are added, dragging them with a *right* mouse key
 does some strange swapping.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/291#comment:5>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list