1 From 251b4cdbb68d504e9877d508d7be4040f192149f 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
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)
17 this->cairo = cairo_reference (cairo);
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);
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);