diff options
author | mezz <mezz@FreeBSD.org> | 2006-11-14 05:19:21 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2006-11-14 05:19:21 +0800 |
commit | 76c3ed785baec58b5d6ea885b067475c5be241f8 (patch) | |
tree | f8f42aa8df511267181ab6f2093061bdc4ca91bc /graphics/poppler | |
parent | 9d7e286909a79b2c1b7ea8e80ce1efbfba4ea271 (diff) | |
download | freebsd-ports-gnome-76c3ed785baec58b5d6ea885b067475c5be241f8.tar.gz freebsd-ports-gnome-76c3ed785baec58b5d6ea885b067475c5be241f8.tar.zst freebsd-ports-gnome-76c3ed785baec58b5d6ea885b067475c5be241f8.zip |
Took a patch from CVS to fix a few of PDFs display as characters inverted.
PR: ports/104490
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=8924
https://bugs.freedesktop.org/show_bug.cgi?id=8944
Reported by: trasz <trasz@pin.if.uz.zgora.pl>
Diffstat (limited to 'graphics/poppler')
-rw-r--r-- | graphics/poppler/Makefile | 2 | ||||
-rw-r--r-- | graphics/poppler/files/patch-fix_inverted_text | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile index 99a265f5326f..20efa1417c6e 100644 --- a/graphics/poppler/Makefile +++ b/graphics/poppler/Makefile @@ -8,7 +8,7 @@ PORTNAME= poppler PORTVERSION= 0.5.4 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= graphics print MASTER_SITES= http://poppler.freedesktop.org/ diff --git a/graphics/poppler/files/patch-fix_inverted_text b/graphics/poppler/files/patch-fix_inverted_text new file mode 100644 index 000000000000..8821c68fc11b --- /dev/null +++ b/graphics/poppler/files/patch-fix_inverted_text @@ -0,0 +1,32 @@ +--- poppler/CairoOutputDev.cc 2006/09/21 00:56:33 1.44 ++++ poppler/CairoOutputDev.cc 2006/11/07 23:53:31 1.45 +@@ -263,8 +263,6 @@ + + void CairoOutputDev::updateFont(GfxState *state) { + cairo_font_face_t *font_face; +- double m11, m12, m21, m22; +- double w; + cairo_matrix_t matrix; + + LOG(printf ("updateFont() font=%s\n", state->getFont()->getName()->getCString())); +@@ -278,9 +276,6 @@ + + if (!currentFont) + return; +- state->getFontTransMat(&m11, &m12, &m21, &m22); +- m11 *= state->getHorizScaling(); +- m12 *= state->getHorizScaling(); + + LOG(printf ("font matrix: %f %f %f %f\n", m11, m12, m21, m22)); + +@@ -289,8 +284,8 @@ + + double fontSize = state->getFontSize(); + double *m = state->getTextMat(); +- matrix.xx = m[0] * fontSize; +- matrix.yx = m[1] * fontSize; ++ matrix.xx = m[0] * fontSize * state->getHorizScaling(); ++ matrix.yx = m[1] * fontSize * state->getHorizScaling(); + matrix.xy = -m[2] * fontSize; + matrix.yy = -m[3] * fontSize; + matrix.x0 = 0; |