summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-09 11:46:55 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-09-09 11:46:55 +0000
commita6a705618faf74abb723a8ae57bd60d39e71f8b2 (patch)
tree1fe9a0cda3194397a1b0c0e05a8530ad7e9ffdec
parent6a0c62a7219a4d0340bce9822fff561737736d32 (diff)
parentb57761c6dd221606b5f75062a74bbc10f468e5af (diff)
downloadpango-a6a705618faf74abb723a8ae57bd60d39e71f8b2.tar.gz
Merge branch 'antialias-option' into 'main'
Support antialias option in pango-view with the FreeType backend See merge request GNOME/pango!473
-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);