diff options
author | Paul Gideon Dann | 2020-02-17 11:48:17 +0000 |
---|---|---|
committer | Paul Gideon Dann | 2020-02-17 11:48:17 +0000 |
commit | bb9fe259ba0c5df3b1ac4d023dd7f6b20b82da5d (patch) | |
tree | 606dbb4e51b380fbb1f5fccb90f306d7b622e8d0 /0003-Apply-subpixel-rendering-in-Cairo-Backend.patch | |
parent | 39246c68ecc7e60d217c132a2108fdca623a9470 (diff) | |
download | aur-bb9fe259ba0c5df3b1ac4d023dd7f6b20b82da5d.tar.gz |
Update for Poppler 0.85.0
Diffstat (limited to '0003-Apply-subpixel-rendering-in-Cairo-Backend.patch')
-rw-r--r-- | 0003-Apply-subpixel-rendering-in-Cairo-Backend.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/0003-Apply-subpixel-rendering-in-Cairo-Backend.patch b/0003-Apply-subpixel-rendering-in-Cairo-Backend.patch index 0f7f2d341b9f..956749b914c4 100644 --- a/0003-Apply-subpixel-rendering-in-Cairo-Backend.patch +++ b/0003-Apply-subpixel-rendering-in-Cairo-Backend.patch @@ -1,4 +1,4 @@ -From 93573105c0c73cee4acb451bcb9e99a34ce2daea Mon Sep 17 00:00:00 2001 +From 16c34ccad8d99ded933daa3d0875369e5b9459bf Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann <pdgiddie@gmail.com> Date: Tue, 9 Aug 2016 15:02:53 +0100 Subject: [PATCH 3/4] Apply subpixel rendering in Cairo Backend @@ -135,10 +135,10 @@ index 1f637cf5..3de0a45e 100644 if (cairo_font_face_set_user_data (l->font_face, &_ft_cairo_key, diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc -index eac8ed09..b842818f 100644 +index 34c02667..520fdb4e 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc -@@ -206,6 +206,13 @@ void CairoOutputDev::setCairo(cairo_t *c) +@@ -204,6 +204,13 @@ void CairoOutputDev::setCairo(cairo_t *c) } if (c != nullptr) { cairo = cairo_reference (c); @@ -152,7 +152,7 @@ index eac8ed09..b842818f 100644 /* 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); -@@ -1431,6 +1438,7 @@ void CairoOutputDev::drawChar(GfxState *state, double x, double y, +@@ -1428,6 +1435,7 @@ void CairoOutputDev::drawChar(GfxState *state, double x, double y, void CairoOutputDev::endString(GfxState *state) { int render; @@ -160,7 +160,7 @@ index eac8ed09..b842818f 100644 if (!currentFont) return; -@@ -1448,6 +1456,18 @@ void CairoOutputDev::endString(GfxState *state) +@@ -1445,6 +1453,18 @@ void CairoOutputDev::endString(GfxState *state) goto finish; } @@ -179,7 +179,7 @@ index eac8ed09..b842818f 100644 if (!(render & 1)) { LOG (printf ("fill string\n")); cairo_set_source (cairo, fill_pattern); -@@ -1498,6 +1518,10 @@ void CairoOutputDev::endString(GfxState *state) +@@ -1495,6 +1515,10 @@ void CairoOutputDev::endString(GfxState *state) } finish: @@ -191,10 +191,10 @@ index eac8ed09..b842818f 100644 glyphs = nullptr; if (use_show_text_glyphs) { diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc -index 58c36fcb..1aea6090 100644 +index 9773b60c..945210d2 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc -@@ -4602,6 +4602,47 @@ void Gfx::doImage(Object *ref, Stream *str, bool inlineImg) { +@@ -4595,6 +4595,47 @@ void Gfx::doImage(Object *ref, Stream *str, bool inlineImg) { error(errSyntaxError, getPos(), "Bad image parameters"); } @@ -295,5 +295,5 @@ index 01f056f9..d6547a79 100644 Object getAnnotsObject(XRef *xrefA = nullptr) { return annotsObj.fetch(xrefA ? xrefA : xref); } // Add a new annotation to the page -- -2.24.1 +2.25.0 |