Author: spitzak
Date: 2007-04-10 06:43:15 -0400 (Tue, 10 Apr 2007)
New Revision: 5771
Log:
Added undocumented function to get at the Freetype source filename. There 
probably
is a much better way to do this, though.


Modified:
   trunk/OpenGL/gl_draw.cxx

Modified: trunk/OpenGL/gl_draw.cxx
===================================================================
--- trunk/OpenGL/gl_draw.cxx    2007-04-10 10:42:07 UTC (rev 5770)
+++ trunk/OpenGL/gl_draw.cxx    2007-04-10 10:43:15 UTC (rev 5771)
@@ -320,6 +320,8 @@
 }
 #endif
 
+const char* fl_default_font_pathname;
+
 #if USE_XFT
 
 static int nextpow2(int a) {
@@ -347,6 +349,11 @@
   int maxy = 1;
 
   FT_Face face = XftLockFace(xftfont);
+
+  // hack so Nuke knows where to look for fonts...
+  if (!fl_default_font_pathname)
+    fl_default_font_pathname = (char*)(face->stream->pathname.pointer);
+
 //   if (!face->charmap && face->num_charmaps)
 //     FT_Set_Charmap(face, face->charmaps[0]);
   int prev_pixel_mode = FT_PIXEL_MODE_GRAY;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to