Revision: 9933 http://pure-data.svn.sourceforge.net/pure-data/?rev=9933&view=rev Author: eighthave Date: 2008-05-28 04:41:05 -0700 (Wed, 28 May 2008)
Log Message: ----------- made Monaco the default font on Mac OS X, since it is included by Apple
Modified Paths: -------------- branches/pd-extended/v0-40/externals/pidip/modules/pdp_qtext.c branches/pd-extended/v0-40/externals/pidip/modules/pdp_text.c
Modified: branches/pd-extended/v0-40/externals/pidip/modules/pdp_qtext.c =================================================================== --- branches/pd-extended/v0-40/externals/pidip/modules/pdp_qtext.c 2008-05-28 10:54:53 UTC (rev 9932) +++ branches/pd-extended/v0-40/externals/pidip/modules/pdp_qtext.c 2008-05-28 11:41:05 UTC (rev 9933) @@ -38,7 +38,11 @@
#define DEFAULT_CAPACITY 10
-#define DEFAULT_FONT "Vera/16" +#ifdef __APPLE__ +# define DEFAULT_FONT "Monaco/16" +#else +# define DEFAULT_FONT "Vera/16" +#endif
#define PIDIP_TEXT_MODE_STATIC 0 #define PIDIP_TEXT_MODE_SCROLL 1 @@ -1085,7 +1089,7 @@ if ( !font ) { post( "pdp_qtext : severe error : could not load default font : no rendering !!!" ); - post( "pdp_text : try installing Bitstream Vera (http://www.gnome.org/fonts/)" ); + post( "\ttry installing Bitstream Vera (http://www.gnome.org/fonts/)" ); } imlib_context_set_font( font ); }
Modified: branches/pd-extended/v0-40/externals/pidip/modules/pdp_text.c =================================================================== --- branches/pd-extended/v0-40/externals/pidip/modules/pdp_text.c 2008-05-28 10:54:53 UTC (rev 9932) +++ branches/pd-extended/v0-40/externals/pidip/modules/pdp_text.c 2008-05-28 11:41:05 UTC (rev 9933) @@ -34,8 +34,13 @@ #include <Imlib2.h> // imlib2 is required
#define DEFAULT_CAPACITY 10 -#define DEFAULT_FONT "Vera/16"
+#ifdef __APPLE__ +# define DEFAULT_FONT "Monaco/16" +#else +# define DEFAULT_FONT "Vera/16" +#endif + static char *pdp_text_version = "pdp_text: version 0.2 : text rendering object written by ydegoyon@free.fr";
typedef struct pdp_text_struct @@ -648,7 +653,7 @@ if ( !font ) { post( "pdp_text : severe error : could not load default font : no rendering !!!" ); - post( "pdp_text : try installing Bitstream Vera (http://www.gnome.org/fonts/)" ); + post( "\ttry installing Bitstream Vera (http://www.gnome.org/fonts/)" ); } imlib_context_set_font( font ); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.