[GRASS-dev] Re: [GRASS GIS] #1338: Text doesn't display for d.legend and d.barscale

GRASS GIS trac at osgeo.org
Mon May 16 01:31:47 EDT 2011


#1338: Text doesn't display for d.legend and d.barscale
----------------------------+-----------------------------------------------
 Reporter:  snorfalorpagus  |       Owner:  grass-dev@…              
     Type:  defect          |      Status:  new                      
 Priority:  critical        |   Milestone:  7.0.0                    
Component:  Display         |     Version:  svn-trunk                
 Keywords:  cairo, fonts    |    Platform:  MacOSX                   
      Cpu:  OSX/Intel       |  
----------------------------+-----------------------------------------------

Comment(by glynn):

 Replying to [comment:6 snorfalorpagus]:
 > Confirmed this is an issue with cairo, or at least GRASS' use of it. If
 I compile --without-cairo, it falls back on... I don't know what... but
 the legend/scalebar display OK.

 The default display driver is cairo if GRASS was built --with-cairo, and
 the PNG driver otherwise. You can force the use of a specific driver with
 e.g.:
 {{{
 export GRASS_RENDER_IMMEDIATE=PNG
 }}}

 The cairo driver uses cairo's text rendering and, where available,
 !FontConfig for font selection. If !FontConfig isn't available, the only
 non-stroke fonts which the cairo driver supports are "sans", "serif" and
 "mono" (plus bold and/or italic variants). Unlike the PNG driver, the
 cairo driver cannot use !FreeType directly (i.e. without going through
 !FontConfig).

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



More information about the grass-dev mailing list