diff options
author | Akira TAGOH <akira@tagoh.org> | 2016-06-23 11:18:40 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2016-06-23 11:18:40 +0900 |
commit | 0ed1575917a28c6be56481509660bd783c7b6040 (patch) | |
tree | aa34d0237b10180ded8980cef3ab3bfab14ee129 | |
parent | 505712d1dcc52d410aa37cd2cffbc4ceb5048656 (diff) | |
download | fontconfig-0ed1575917a28c6be56481509660bd783c7b6040.tar.gz |
Add --with-default-hinting to configure
-rw-r--r-- | conf.d/Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am index 4c11a9c..ac68cd1 100644 --- a/conf.d/Makefile.am +++ b/conf.d/Makefile.am @@ -26,7 +26,7 @@ DOC_SOURCES = README.in DOC_FILES = $(DOC_SOURCES:.in=) CONF_LINKS = \ - 10-hinting-slight.conf \ + 10-hinting-$(PREFERRED_HINTING).conf \ 10-scale-bitmap-fonts.conf \ 20-unhint-small-vera.conf \ 30-urw-aliases.conf \ diff --git a/configure.ac b/configure.ac index f8dadf1..a04695b 100644 --- a/configure.ac +++ b/configure.ac @@ -406,6 +406,25 @@ if test "$enable_libxml2" = "yes"; then 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 # |