Call FT_Set_Default_Properties when available.
authorBen Wagner <bungeman@google.com>
Wed, 1 Mar 2017 18:00:53 +0000 (13:00 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 1 Mar 2017 22:09:58 +0000 (22:09 +0000)
commit2a098d09edfb7f02139a9537df6f1c0ac514fd74
tree9c8562a8a323fb0326ffb6fdaaf51d4c21200b94
parent2fe8373bb1d56f531f8a2e03a3087b0aa73e199c
Call FT_Set_Default_Properties when available.

FreeType 2.7.0 added the ability to read some global properties from
environment variables to configure an FT_Library. However, this did
not apply to FT_New_Library. After 2.7.1 FT_Set_Default_Properties was
added so that users of FT_New_Library can also repect these properties.

This also removes SK_FONTHOST_FREETYPE_USE_NORMAL_LCD_FILTER and
associated code since there are no users of this flag, the behavior it
guards is now more or less in upstream FreeType, and the pattern in the
code it guards is now in use for calling FT_Set_Default_Properties.

BUG=skia:6165

Change-Id: I9fca86cc8b1bb9709c0b980330cf974455be3b57
Reviewed-on: https://skia-review.googlesource.com/9109
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
src/ports/SkFontHost_FreeType.cpp