[MacPorts] #26897: gd2 default fontpath for OS X

MacPorts noreply at macports.org
Tue Oct 19 08:58:35 PDT 2010


#26897: gd2 default fontpath for OS X
-------------------------------------+--------------------------------------
 Reporter:  and.damore@…             |       Owner:  ryandesign@…           
     Type:  enhancement              |      Status:  new                    
 Priority:  Normal                   |   Milestone:                         
Component:  ports                    |     Version:  1.9.1                  
 Keywords:  libgd font path          |        Port:  gd2                    
-------------------------------------+--------------------------------------
 Default font path in libgd is ''/usr/share/fonts/truetype'' that is not
 present on standard OS X, this makes necessary to either set up GDFONTPATH
 or link the default directory to an actual font directory.
 Moreover the former doesn't work if there's no shell involved, for example
 when wxMaxima directly calls gnuplot to get a png plot.

 The solution is to add
 {{{
 configure.cflags-append
 -DDEFAULT_FONTPATH=\\\"/System/Library/Fonts:/Library/Fonts\\\"
 }}}
 to Portfile thus passing the appropriate macro to compiler.

 This way programs relying on libgd will find system's fonts even if
 GDFONTPATH is not specified and there's no /usr/share/fonts/truetype .

 This is not a bug per se but I think that a port that works out of the box
 rather than requiring further configuration is better.

-- 
Ticket URL: <https://trac.macports.org/ticket/26897>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list