blob: f6ae93fbe77c088e7fe42ee09c8fd4183b05457c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 1c226f56147ea14519ee2cc5a50272f90fc55641 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 1e201d3..671e505 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.6.0
|