[GRASS-dev] Re: [GRASS GIS] #155: ps.map: the "M" highlight problem

GRASS GIS trac at osgeo.org
Wed May 7 00:32:13 EDT 2008


#155: ps.map: the "M" highlight problem
----------------------+-----------------------------------------------------
  Reporter:  perk     |       Owner:  hamish                      
      Type:  defect   |      Status:  assigned                    
  Priority:  minor    |   Milestone:  6.4.0                       
 Component:  default  |     Version:  svn-trunk                   
Resolution:           |    Keywords:  ps.map highlight text labels
----------------------+-----------------------------------------------------
Comment (by perk):

 Replying to [comment:5 glynn]:
 > Replying to [comment:4 perk]:
 >
 > > > before applying the patch I would like to ask about possible side
 effects -- does the "currentlinejoin 1 setlinejoin stroke setlinejoin"
 part need to be swiched off after drawing the labels, or will it be self
 contained?
 > >
 > > This should be self-contained.  "currentlinejoin" puts the current
 line join style on the Postcript stack, "1 setlinejoin" sets the join
 style to rounded, "stroke" draws the current path (does not affect the
 stack), and the final "setlinejoin" uses the value put on the stack
 earlier to return the join style to the previous value.
 >
 > The normal way to make temporary changes to the rendering state is with
 gsave/grestore, e.g.:
 >
 > {{{
 > gsave 1 setlinejoin stroke grestore
 > }}}

 Works for me.  The patch is updated.

 Bill

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


More information about the grass-dev mailing list