comparison src/w32fns.c @ 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 a461c5c16bd5
children 2dd3f3069c1c
comparison
equal deleted inserted replaced
93598:6b92cdd67bfb 93599:a67af10a545c
338 static HWND w32_visible_system_caret_hwnd; 338 static HWND w32_visible_system_caret_hwnd;
339 339
340 /* From w32menu.c */ 340 /* From w32menu.c */
341 extern HMENU current_popup_menu; 341 extern HMENU current_popup_menu;
342 static int menubar_in_use = 0; 342 static int menubar_in_use = 0;
343
344 /* From w32uniscribe.c */
345 #ifdef USE_FONT_BACKEND
346 extern void syms_of_w32uniscribe ();
347 extern int uniscribe_available;
348 #endif
343 349
344 /* Function prototypes for hourglass support. */ 350 /* Function prototypes for hourglass support. */
345 static void show_hourglass P_ ((struct frame *)); 351 static void show_hourglass P_ ((struct frame *));
346 static void hide_hourglass P_ ((void)); 352 static void hide_hourglass P_ ((void));
347 353
4441 #ifdef USE_FONT_BACKEND 4447 #ifdef USE_FONT_BACKEND
4442 if (enable_font_backend) 4448 if (enable_font_backend)
4443 { 4449 {
4444 /* Perhaps, we must allow frame parameter, say `font-backend', 4450 /* Perhaps, we must allow frame parameter, say `font-backend',
4445 to specify which font backends to use. */ 4451 to specify which font backends to use. */
4452 if (uniscribe_available)
4453 register_font_driver (&uniscribe_font_driver, f);
4446 register_font_driver (&w32font_driver, f); 4454 register_font_driver (&w32font_driver, f);
4447 4455
4448 x_default_parameter (f, parameters, Qfont_backend, Qnil, 4456 x_default_parameter (f, parameters, Qfont_backend, Qnil,
4449 "fontBackend", "FontBackend", RES_TYPE_STRING); 4457 "fontBackend", "FontBackend", RES_TYPE_STRING);
4450 } 4458 }
9355 doc: /* The ANSI code page used by the system. */); 9363 doc: /* The ANSI code page used by the system. */);
9356 w32_ansi_code_page = GetACP (); 9364 w32_ansi_code_page = GetACP ();
9357 9365
9358 /* MessageBox does not work without this when linked to comctl32.dll 6.0. */ 9366 /* MessageBox does not work without this when linked to comctl32.dll 6.0. */
9359 InitCommonControls (); 9367 InitCommonControls ();
9368
9369 #ifdef USE_FONT_BACKEND
9370 syms_of_w32uniscribe ();
9371 #endif
9360 } 9372 }
9361 9373
9362 #undef abort 9374 #undef abort
9363 9375
9364 void 9376 void