diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch')
-rw-r--r-- | app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch b/app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch new file mode 100644 index 000000000000..21547b951802 --- /dev/null +++ b/app-text/poppler/files/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch @@ -0,0 +1,30 @@ +From a9a6a3fcf4f2bf62e83d325a790624241084ad72 Mon Sep 17 00:00:00 2001 +From: Paul Gideon Dann <pdgiddie@gmail.com> +Date: Wed, 20 May 2009 13:06:48 +0100 +Subject: [PATCH 3/4] Forcing subpixel rendering in Cairo backend + +--- + poppler/CairoOutputDev.cc | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc +index d0d6cb4..50e64f9 100644 +--- a/poppler/CairoOutputDev.cc ++++ b/poppler/CairoOutputDev.cc +@@ -203,6 +203,13 @@ void CairoOutputDev::setCairo(cairo_t *cairo) + } + if (cairo != NULL) { + this->cairo = cairo_reference (cairo); ++ { ++ cairo_font_options_t *options = cairo_font_options_create (); ++ cairo_get_font_options (cairo, options); ++ cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_SUBPIXEL); ++ cairo_set_font_options (cairo, options); ++ cairo_font_options_destroy (options); ++ } + /* save the initial matrix so that we can use it for type3 fonts. */ + //XXX: is this sufficient? could we miss changes to the matrix somehow? + cairo_get_matrix(cairo, &orig_matrix); +-- +2.7.3 + |