[GRASS-dev] [GRASS GIS] #3013: support background and border for d.legend

GRASS GIS trac at osgeo.org
Fri Jun 17 05:51:51 PDT 2016

#3013: support background and border for d.legend
  Reporter:  annakrat    |      Owner:  grass-dev@…
      Type:              |     Status:  new
  enhancement            |
  Priority:  normal      |  Milestone:  7.3.0
 Component:  Display     |    Version:  svn-trunk
Resolution:              |   Keywords:  d.legend, background, gsoc2016,
       CPU:              |  cartography
  Unspecified            |   Platform:  All

Comment (by lazaa):

 Replying to [comment:12 annakrat]:
 > Thank you, I committed it in r68699. I did some minor changes in
 guisections and fixed one warning (-Wreturn-type). I have two more
 > * if you use different font than the default one, the background box is
 larger than it should be. You don't use `D_get_text_box` there, I wonder
 if this would give you better estimate?

 Thank you! Before there was a constant for font height/width ratio, which
 works only for romans font. With {{{D_get_text_box}}} it works now for all
 fonts much better.

 > * The ticks are currently rendered in the same color as text, but they
 should be black as the legend outline.

 I changed it to black color.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3013#comment:14>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list