updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / poppler-qt-lcd / 0003-Forcing-subpixel-rendering-in-Cairo-backend.patch
blobba812d42a081de732ef8a9832908bdf0df67e891
1 From 56cdd525ff4297c6e30cb47e2bc76b0d4519d519 Mon Sep 17 00:00:00 2001
2 From: Paul Gideon Dann <pdgiddie@gmail.com>
3 Date: Wed, 20 May 2009 13:06:48 +0100
4 Subject: [PATCH 3/4] Forcing subpixel rendering in Cairo backend
6 ---
7 poppler/CairoOutputDev.cc | 7 +++++++
8 1 files changed, 7 insertions(+), 0 deletions(-)
10 diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
11 index fae0136..e690fd7 100644
12 --- a/poppler/CairoOutputDev.cc
13 +++ b/poppler/CairoOutputDev.cc
14 @@ -199,6 +199,13 @@ void CairoOutputDev::setCairo(cairo_t *cairo)
16 if (cairo != NULL) {
17 this->cairo = cairo_reference (cairo);
18 + {
19 + cairo_font_options_t *options = cairo_font_options_create ();
20 + cairo_get_font_options (cairo, options);
21 + cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_SUBPIXEL);
22 + cairo_set_font_options (cairo, options);
23 + cairo_font_options_destroy (options);
24 + }
25 /* save the initial matrix so that we can use it for type3 fonts. */
26 //XXX: is this sufficient? could we miss changes to the matrix somehow?
27 cairo_get_matrix(cairo, &orig_matrix);
28 --
29 1.7.8.4