diff options
author | Peng Wu <pwu@redhat.com> | 2021-09-09 12:06:10 +0800 |
---|---|---|
committer | Peng Wu <pwu@redhat.com> | 2021-09-09 12:06:10 +0800 |
commit | b57761c6dd221606b5f75062a74bbc10f468e5af (patch) | |
tree | 1fe9a0cda3194397a1b0c0e05a8530ad7e9ffdec /utils | |
parent | 6a0c62a7219a4d0340bce9822fff561737736d32 (diff) | |
download | pango-b57761c6dd221606b5f75062a74bbc10f468e5af.tar.gz |
Support antialias option in pango-view with the FreeType backend
Diffstat (limited to 'utils')
-rw-r--r-- | utils/viewer-pangoft2.c | 5 |
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); |