diff options
author | Yichao Zhou | 2016-05-19 00:42:29 -0700 |
---|---|---|
committer | Yichao Zhou | 2016-05-19 00:42:29 -0700 |
commit | f42cd432abd8727a5e19a55cd303df7dea921f36 (patch) | |
tree | bbfe86ce4eedb0626b37cf66c1923331f73a243f /evince-poppler-subpixel.patch | |
parent | a567d68f5288be55a72d292a0f2dd4f7b24709b6 (diff) | |
download | aur-f42cd432abd8727a5e19a55cd303df7dea921f36.tar.gz |
Remove hinting; version bump
Diffstat (limited to 'evince-poppler-subpixel.patch')
-rw-r--r-- | evince-poppler-subpixel.patch | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/evince-poppler-subpixel.patch b/evince-poppler-subpixel.patch index 93170ec6ed2c..5ee4cc19a518 100644 --- a/evince-poppler-subpixel.patch +++ b/evince-poppler-subpixel.patch @@ -1,12 +1,12 @@ diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc -index f3a6510..4ab249a 100644 +index 214094f..8a09909 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc -@@ -393,11 +393,28 @@ pdf_page_render (PopplerPage *page, +@@ -393,11 +393,26 @@ pdf_page_render (PopplerPage *page, cairo_t *cr; double page_width, page_height; double xscale, yscale; -+ gboolean subpixel_rendering; ++ gboolean subpixel_rendering; + cairo_font_options_t *fo; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, @@ -15,13 +15,11 @@ index f3a6510..4ab249a 100644 + fo = cairo_font_options_create (); + cairo_get_font_options (cr, fo); -+ cairo_font_options_set_hint_style (fo, CAIRO_HINT_STYLE_SLIGHT); -+ + subpixel_rendering = poppler_page_support_subpixel_rendering (page); ++ // printf("subpixel_rendering: %d\n", subpixel_rendering); + if (subpixel_rendering) { + cairo_set_source_rgb (cr, 1., 1., 1.); + cairo_paint (cr); -+ + cairo_font_options_set_antialias (fo, CAIRO_ANTIALIAS_SUBPIXEL); + cairo_font_options_set_subpixel_order (fo, CAIRO_SUBPIXEL_ORDER_RGB); + } @@ -31,7 +29,7 @@ index f3a6510..4ab249a 100644 switch (rc->rotation) { case 90: cairo_translate (cr, width, 0); -@@ -420,9 +437,11 @@ pdf_page_render (PopplerPage *page, +@@ -420,9 +435,11 @@ pdf_page_render (PopplerPage *page, cairo_rotate (cr, rc->rotation * G_PI / 180.0); poppler_page_render (page, cr); |