summaryrefslogtreecommitdiff
path: root/utils/viewer-pangoft2.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/viewer-pangoft2.c')
-rw-r--r--utils/viewer-pangoft2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/viewer-pangoft2.c b/utils/viewer-pangoft2.c
index 3a698b8e..de948307 100644
--- a/utils/viewer-pangoft2.c
+++ b/utils/viewer-pangoft2.c
@@ -34,6 +34,11 @@ static void
substitute_func (FcPattern *pattern,
gpointer data G_GNUC_UNUSED)
{
+ if (opt_antialias != ANTIALIAS_DEFAULT)
+ {
+ FcPatternDel (pattern, FC_ANTIALIAS);
+ FcPatternAddBool (pattern, FC_ANTIALIAS, opt_antialias != ANTIALIAS_NONE);
+ }
if (opt_hinting != HINT_DEFAULT)
{
FcPatternDel (pattern, FC_HINTING);