[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
Wed Sep 7 17:42:47 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 hamish):
Replying to [comment:4 cmbarton]:
> The code that is breaking here is trying to use the PS font name
> as a TrueType font to estimate the size of the text box for placement
> in the graphical page representation. This won't work. It only seemed
> to work because of the fact that some TrueType fonts and some PS fonts
> have the same name.
>
> So we need a different way to estimate the size of the text box.
hmm, well we know exactly how tall the text will be (10/72" for 10pt,
12/72" for 12pt, ..) but not how wide for proportionally widthed fonts. We
can probably figure out the aspect ratio for a fixed width font like
Courier and just use that knowing it won't be any wider. (???)
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1441#comment:5>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list