summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <pwu@redhat.com>2021-09-09 12:06:10 +0800
committerPeng Wu <pwu@redhat.com>2021-09-09 12:06:10 +0800
commitb57761c6dd221606b5f75062a74bbc10f468e5af (patch)
tree1fe9a0cda3194397a1b0c0e05a8530ad7e9ffdec
parent6a0c62a7219a4d0340bce9822fff561737736d32 (diff)
downloadpango-b57761c6dd221606b5f75062a74bbc10f468e5af.tar.gz
Support antialias option in pango-view with the FreeType backend
-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);