diff options
author | Pavel Vinogradov | 2017-10-16 14:31:40 -0400 |
---|---|---|
committer | Pavel Vinogradov | 2017-10-16 14:35:57 -0400 |
commit | 41cb06c185b4de7b62363040d4d959e593f377de (patch) | |
tree | 712a55ee7ce59d18d234be0be8e7393ca44a81a0 | |
parent | 453e4298e5a0400f0f017738dc9d0d96c4e8a763 (diff) |
graphics-libs/freetype2: fixed processing of subpixel hinting options
-rwxr-xr-x | graphics-libs/freetype2/BUILD | 6 | ||||
-rw-r--r-- | graphics-libs/freetype2/HISTORY | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/graphics-libs/freetype2/BUILD b/graphics-libs/freetype2/BUILD index 47a52079ad..ba0c310999 100755 --- a/graphics-libs/freetype2/BUILD +++ b/graphics-libs/freetype2/BUILD @@ -11,10 +11,12 @@ if [[ ${FT2_BYTECODE} == "n" ]]; then else case ${FT2_SUBPIXEL_HINTING} in new) - enable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+2" ;; + true ;; # default old) - enable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+1" ;; + enable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+1" && + disable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+2" ;; both) + disable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+2" && enable_ftoption "TT_CONFIG_OPTION_SUBPIXEL_HINTING[ \t]+\( 1 \| 2 \)" ;; *) message "${PROBLEM_COLOR}Broken configuration, try cast -r ${SPELL}${DEFAULT_COLOR}" && diff --git a/graphics-libs/freetype2/HISTORY b/graphics-libs/freetype2/HISTORY index e881d8412a..3e048f9df9 100644 --- a/graphics-libs/freetype2/HISTORY +++ b/graphics-libs/freetype2/HISTORY @@ -1,3 +1,7 @@ +2017-10-16 Pavel Vinogradov <public@sourcemage.org> + * BUILD: honor the defaults in ftoption.h and properly handle other + options of subpixel hinting + 2017-09-16 Pavel Vinogradov <public@sourcemage.org> * DETAILS: version 2.8.1 |