Add --with-default-hinting to configure

This commit is contained in:
Akira TAGOH 2016-06-23 11:18:40 +09:00
parent 505712d1dc
commit 0ed1575917
2 changed files with 20 additions and 1 deletions

View File

@ -26,7 +26,7 @@ DOC_SOURCES = README.in
DOC_FILES = $(DOC_SOURCES:.in=) DOC_FILES = $(DOC_SOURCES:.in=)
CONF_LINKS = \ CONF_LINKS = \
10-hinting-slight.conf \ 10-hinting-$(PREFERRED_HINTING).conf \
10-scale-bitmap-fonts.conf \ 10-scale-bitmap-fonts.conf \
20-unhint-small-vera.conf \ 20-unhint-small-vera.conf \
30-urw-aliases.conf \ 30-urw-aliases.conf \

View File

@ -405,6 +405,25 @@ if test "$enable_libxml2" = "yes"; then
CFLAGS="$fc_saved_CFLAGS" CFLAGS="$fc_saved_CFLAGS"
fi fi
#
# Set default hinting
#
AC_ARG_WITH(default-hinting,
[AC_HELP_STRING([--with-default-hinting=NAME],
[Enable your preferred hinting configuration (none/slight/medium/full) [default=slight]])],
preferred_hinting="$withval", preferred_hinting=slight)
case "$preferred_hinting" in
none|slight|medium|full)
PREFERRED_HINTING="$preferred_hinting"
AC_SUBST(PREFERRED_HINTING)
;;
*)
AC_MSG_ERROR([Invalid hinting. please choose one of none, slight, medium, or full])
;;
esac
# #
# Set default font directory # Set default font directory
# #