[PD-cvs] externals/pidip/modules pdp_qtext.c, 1.1.2.3, 1.1.2.4 pdp_text.c, 1.4.2.3, 1.4.2.4

Hans-Christoph Steiner eighthave at users.sourceforge.net
Wed Jul 11 05:33:50 CEST 2007


Update of /cvsroot/pure-data/externals/pidip/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17803

Modified Files:
      Tag: branch-v0-39-2-extended
	pdp_qtext.c pdp_text.c 
Log Message:
made Bitstream Vera the default font on all platforms since it seems imlib will only load .ttf files and Mac OS X doesn't seem to come with any .ttf, only .dfont

Index: pdp_qtext.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_qtext.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** pdp_qtext.c	9 Jul 2007 19:36:12 -0000	1.1.2.3
--- pdp_qtext.c	11 Jul 2007 03:33:48 -0000	1.1.2.4
***************
*** 39,47 ****
  #define DEFAULT_CAPACITY 10
  
- #ifdef __APPLE__
- #define DEFAULT_FONT "Monaco/16"
- #else
  #define DEFAULT_FONT "Vera/16"
- #endif
  
  #define PIDIP_TEXT_MODE_STATIC 0
--- 39,43 ----
***************
*** 1082,1085 ****
--- 1078,1082 ----
      imlib_add_path_to_font_path("/Library/Fonts");
      imlib_add_path_to_font_path("/sw/share/imlib2/data/fonts");
+     imlib_add_path_to_font_path("/sw/lib/X11/fonts/msttf");
  #else
      imlib_add_path_to_font_path("/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType");
***************
*** 1089,1092 ****
--- 1086,1090 ----
      {
         post( "pdp_qtext : severe error : could not load default font : no rendering !!!" );
+ 	   post( "pdp_text : try installing Bitstream Vera (http://www.gnome.org/fonts/)" );
      }
      imlib_context_set_font( font );

Index: pdp_text.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_text.c,v
retrieving revision 1.4.2.3
retrieving revision 1.4.2.4
diff -C2 -d -r1.4.2.3 -r1.4.2.4
*** pdp_text.c	9 Jul 2007 19:36:12 -0000	1.4.2.3
--- pdp_text.c	11 Jul 2007 03:33:48 -0000	1.4.2.4
***************
*** 35,43 ****
  
  #define DEFAULT_CAPACITY 10
- #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 at free.fr";
--- 35,39 ----
***************
*** 645,648 ****
--- 641,645 ----
      imlib_add_path_to_font_path("/Library/Fonts");
      imlib_add_path_to_font_path("/sw/share/imlib2/data/fonts");
+     imlib_add_path_to_font_path("/sw/lib/X11/fonts/msttf");
  #else
      imlib_add_path_to_font_path("/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType");
***************
*** 652,655 ****
--- 649,653 ----
      {
         post( "pdp_text : severe error : could not load default font : no rendering !!!" );
+ 	   post( "pdp_text : try installing Bitstream Vera (http://www.gnome.org/fonts/)" );
      }
      imlib_context_set_font( font );





More information about the Pd-cvs mailing list