diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-10 11:39:27 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-10 11:39:27 +0100 |
commit | 974a481d12bf430891725bd3662876358e57e11a (patch) | |
tree | cad011151456251fef2f1b8d02ef4b4e45fad61a /gfx/cairo/ft-no-subpixel-if-surface-disables.patch | |
parent | 6bd66b1728eeddb058066edda740aaeb2ceaec23 (diff) | |
parent | 736d25cbec4541186ed46c935c117ce4d1c7f3bb (diff) | |
download | UXP-974a481d12bf430891725bd3662876358e57e11a.tar UXP-974a481d12bf430891725bd3662876358e57e11a.tar.gz UXP-974a481d12bf430891725bd3662876358e57e11a.tar.lz UXP-974a481d12bf430891725bd3662876358e57e11a.tar.xz UXP-974a481d12bf430891725bd3662876358e57e11a.zip |
Merge branch 'master' into js-modules
# Conflicts:
# modules/libpref/init/all.js
Diffstat (limited to 'gfx/cairo/ft-no-subpixel-if-surface-disables.patch')
-rw-r--r-- | gfx/cairo/ft-no-subpixel-if-surface-disables.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gfx/cairo/ft-no-subpixel-if-surface-disables.patch b/gfx/cairo/ft-no-subpixel-if-surface-disables.patch deleted file mode 100644 index a53e5de2b..000000000 --- a/gfx/cairo/ft-no-subpixel-if-surface-disables.patch +++ /dev/null @@ -1,46 +0,0 @@ -# HG changeset patch -# Parent 31c7eac3de3de324cb5c93bd19c4e16a693f1101 -# User Karl Tomlinson <karlt+@karlt.net> -b=929451 don't use subpixel aa for ft fonts on surfaces that don't support it r?roc - -Also: -* Prefer subpixel order provided by the surface over that from the font face. -* Allow font face options to turn off subpixel aa. - -diff --git a/gfx/cairo/cairo/src/cairo-ft-font.c b/gfx/cairo/cairo/src/cairo-ft-font.c ---- a/gfx/cairo/cairo/src/cairo-ft-font.c -+++ b/gfx/cairo/cairo/src/cairo-ft-font.c -@@ -1759,23 +1759,26 @@ static void - - if (load_flags & FT_LOAD_NO_HINTING) - other->base.hint_style = CAIRO_HINT_STYLE_NONE; - - if (other->base.antialias == CAIRO_ANTIALIAS_NONE || - options->base.antialias == CAIRO_ANTIALIAS_NONE) { - options->base.antialias = CAIRO_ANTIALIAS_NONE; - options->base.subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT; -- } -- -- if (other->base.antialias == CAIRO_ANTIALIAS_SUBPIXEL && -- (options->base.antialias == CAIRO_ANTIALIAS_DEFAULT || -- options->base.antialias == CAIRO_ANTIALIAS_GRAY)) { -- options->base.antialias = CAIRO_ANTIALIAS_SUBPIXEL; -- options->base.subpixel_order = other->base.subpixel_order; -+ } else if (options->base.antialias != CAIRO_ANTIALIAS_GRAY) { -+ /* The surface supports subpixel aa, so let the font face options -+ * choose whether to use subpixel aa. If the surface has -+ * CAIRO_ANTIALIAS_GRAY (e.g. PS, PDF, SVG, translucent part of a -+ * CONTENT_COLOR_ALPHA surface), then don't accept subpixel aa. */ -+ if (other->base.antialias != CAIRO_ANTIALIAS_DEFAULT) -+ options->base.antialias = other->base.antialias; -+ /* If the surface knows the subpixel order then use that. */ -+ if (options->base.subpixel_order == CAIRO_SUBPIXEL_ORDER_DEFAULT) -+ options->base.subpixel_order = other->base.subpixel_order; - } - - if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT) - options->base.hint_style = other->base.hint_style; - - if (other->base.hint_style == CAIRO_HINT_STYLE_NONE) - options->base.hint_style = CAIRO_HINT_STYLE_NONE; - |