[GRASS-dev] Re: [GRASS GIS] #1441: Hard Copy Map Utility (wxPython
wrapper for ps.map) text overlay is broken
GRASS GIS
trac at osgeo.org
Thu Sep 8 10:43:51 EDT 2011
#1441: Hard Copy Map Utility (wxPython wrapper for ps.map) text overlay is broken
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-trunk
Keywords: hard copy map utility, ps.map | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by cmbarton):
The main question is how close does this need to be for text placement.
Also, we don't want the module to raise an error when it's only trying to
figure out the size of a layout box.
The way I've got it set up now is that it will try to use typefaces with
names Times, Helvetica, or Courier, depending on which one of these ps.map
fonts is picked. If it can't find one, it will revert to the "default"
font family for the system. This can be fine tuned.
Perhaps it would be better just to pick the corresponding font family from
wxPython (e.g., wx.FONTFAMILY_SWISS for Helvetica) and not worry about
finding a particular typeface.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1441#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list