[GRASS-dev] [GRASS GIS] #3542: cannot set default font in preferences

#3542: cannot set default font in preferences
-------------------------+-------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.4.1
Component: wxGUI | Version: 7.2.2
Keywords: wxgui, font | CPU: Unspecified
Platform: MacOSX |
-------------------------+-------------------------
I cannot set any font in preferences. It raises a GUI python error. The
result is that I get no text in some parts of the output (e.g. d.grid).
Here is the error:

Traceback (most recent call last):
   File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui
/wxpython/gui_core/preferences.py", line 1994, in
OnSetOutputFontCustomDialog

type='outputfont')
   File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui
/wxpython/gui_core/dialogs.py", line 2474, in __init__

pos=(2, 0))
   File "/Applications/GRASS-7.2.2.app/Contents/Resources/lib
/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line
15935, in Add

return _core_.GridBagSizer_Add(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion "!CheckForIntersection(item)" failed at
/Users/chris.barker/miniconda/conda-bld/work/wxPython-
src-3.0.2.0/src/common/gbsizer.cpp(223) in Add(): An item is
already at that position

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3542&gt;
GRASS GIS <https://grass.osgeo.org>

#3542: cannot set default font in preferences
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.4.1
Component: wxGUI | Version: 7.2.2
Resolution: fixed | Keywords: wxgui, font
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

Fixed in r72586, backported in r72587, r72588.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3542#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3542: cannot set default font in preferences
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 7.4.1
Component: wxGUI | Version: 7.2.2
Resolution: | Keywords: wxgui, font
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by cmbarton):

* status: closed => reopened
* resolution: fixed =>

Comment:

This is still broken in GRASS 7.2.2 for the map display (works for command
output font). Here is the error

Traceback (most recent call last):
   File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui
/wxpython/gui_core/preferences.py", line 1961, in OnSetFont

type='font')
   File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui
/wxpython/gui_core/dialogs.py", line 2489, in __init__

self.fontlb.SetStringSelection(fontdict_reverse[self.font],
True)
KeyError
:
'Helvetica'

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3542#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3542: cannot set default font in preferences
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 7.4.1
Component: wxGUI | Version: 7.2.2
Resolution: | Keywords: wxgui, font
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------

Comment (by cmbarton):

This is fixed in 7.4 release branch on up. I don't know if anyone has
backported the fix to 7.2

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3542#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3542: cannot set default font in preferences
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.4.1
Component: wxGUI | Version: 7.2.2
Resolution: fixed | Keywords: wxgui, font
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by cmbarton):

* status: reopened => closed
* resolution: => fixed

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3542#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>