summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <pwu@redhat.com>2021-09-09 12:06:10 +0800
committerMatthias Clasen <mclasen@redhat.com>2021-09-11 08:36:41 -0400
commit8011082ecdba71cd3b4372ca0af032b95426770b (patch)
treeb8be1be191292359f66deb3aa9e471ecc61378e9 /utils
parent71e39443b5e97fd5e8952c42369c9f59b3f393e3 (diff)
downloadpango-8011082ecdba71cd3b4372ca0af032b95426770b.tar.gz
Support antialias option in pango-view with the FreeType backend
Diffstat (limited to 'utils')
-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);