changeset 93599:a67af10a545c

(uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
author Jason Rumney <jasonr@gnu.org>
date Thu, 03 Apr 2008 13:11:29 +0000
parents 6b92cdd67bfb
children 24c940ccd28e
files src/w32fns.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Thu Apr 03 13:10:57 2008 +0000
+++ b/src/w32fns.c	Thu Apr 03 13:11:29 2008 +0000
@@ -341,6 +341,12 @@
 extern HMENU current_popup_menu;
 static int menubar_in_use = 0;
 
+/* From w32uniscribe.c  */
+#ifdef USE_FONT_BACKEND
+extern void syms_of_w32uniscribe ();
+extern int uniscribe_available;
+#endif
+
 /* Function prototypes for hourglass support.  */
 static void show_hourglass P_ ((struct frame *));
 static void hide_hourglass P_ ((void));
@@ -4443,6 +4449,8 @@
     {
       /* Perhaps, we must allow frame parameter, say `font-backend',
 	 to specify which font backends to use.  */
+      if (uniscribe_available)
+	register_font_driver (&uniscribe_font_driver, f);
       register_font_driver (&w32font_driver, f);
 
       x_default_parameter (f, parameters, Qfont_backend, Qnil,
@@ -9357,6 +9365,10 @@
 
   /* MessageBox does not work without this when linked to comctl32.dll 6.0.  */
   InitCommonControls ();
+
+#ifdef USE_FONT_BACKEND
+  syms_of_w32uniscribe ();
+#endif
 }
 
 #undef abort