mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
935e883d8d
This means that QF should support more exotic fonts without any issue (once the rest of the text handling system is up to snuff) as HarfBuzz does all the hard work of handling OpenType, Graphite, etc text shaping, including kerning (when enabled). Also, font loading now loads all the glyphs into the atlas (preload is gone).
32 lines
891 B
Text
32 lines
891 B
Text
AC_ARG_ENABLE(freetype,
|
|
AS_HELP_STRING([--disable-freetype], [disable freetype support]))
|
|
if test "x$enable_freetype" != "xno"; then
|
|
if test "x$PKG_CONFIG" != "x"; then
|
|
PKG_CHECK_MODULES([FREETYPE], [freetype2], HAVE_FREETYPE=yes, HAVE_FREETYPE=no)
|
|
fi
|
|
else
|
|
HAVE_FREETYPE=no
|
|
FREETYPE_LIBS=
|
|
fi
|
|
AC_SUBST(FREETYPE_LIBS)
|
|
|
|
if test "x$HAVE_FREETYPE" == "xyes"; then
|
|
AC_DEFINE(HAVE_FREETYPE, 1, [Define if you have the freetype library])
|
|
fi
|
|
|
|
|
|
AC_ARG_ENABLE(harfbuzz,
|
|
AS_HELP_STRING([--disable-harfbuzz], [disable HarfBuzz support]))
|
|
if test "x$enable_harfbuzz" != "xno"; then
|
|
if test "x$PKG_CONFIG" != "x"; then
|
|
PKG_CHECK_MODULES([HARFBUZZ], [harfbuzz], HAVE_HARFBUZZ=yes, HAVE_HARFBUZZ=no)
|
|
fi
|
|
else
|
|
HAVE_HARFBUZZ=no
|
|
HARFBUZZ_LIBS=
|
|
fi
|
|
AC_SUBST(HARFBUZZ_LIBS)
|
|
|
|
if test "x$HAVE_HARFBUZZ" == "xyes"; then
|
|
AC_DEFINE(HAVE_HARFBUZZ, 1, [Define if you have the HarfBuzz library])
|
|
fi
|