}
#ifdef HAVE_HARFBUZZ
- register_font_driver (&harfbuzz_font_driver, f);
+ if (harfbuzz_available)
+ register_font_driver (&harfbuzz_font_driver, f);
#endif
register_font_driver (&uniscribe_font_driver, f);
register_font_driver (&w32font_driver, f);
}
#ifdef HAVE_HARFBUZZ
- register_font_driver (&harfbuzz_font_driver, f);
+ if (harfbuzz_available)
+ register_font_driver (&harfbuzz_font_driver, f);
#endif
register_font_driver (&uniscribe_font_driver, f);
register_font_driver (&w32font_driver, f);
defsubr (&Sx_select_font);
- Fput (Quniscribe, Qfont_driver_superseded_by, Qharfbuzz);
-
pdumper_do_now_and_after_load (syms_of_w32font_for_pdumper);
}
if (!load_harfbuzz_funcs (harfbuzz))
return;
+ Fput (Quniscribe, Qfont_driver_superseded_by, Qharfbuzz);
harfbuzz_available = 1;
harfbuzz_font_driver = uniscribe_font_driver;
harfbuzz_font_driver.type = Qharfbuzz;