[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2006-06-10 22:23:09
Message-ID: 1149978189.816150.12778.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 550074 by aacid:
When any of the chars that we
are passing to the UGooString is not pdfencodable, do not
encode the string, because we loose information if we do,
this fixes rendering of
http://publikationen.ub.uni-frankfurt.de/volltexte/2005/890/pdf/TR_abs_g.pdf
and other docs with type3 fonts and ligatures
M +8 -0 UGString.cc
--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/UGString.cc #550073:550074
@@ -51,9 +51,17 @@
{
length = str.getLength();
s = (Unicode *)gmallocn(length, sizeof(Unicode));
+ bool anyNonEncoded = false;
for (int j = 0; j < length; ++j) {
s[j] = pdfDocEncoding[str.getChar(j) & 0xff];
+ if (!s[j]) anyNonEncoded = true;
}
+ if ( anyNonEncoded )
+ {
+ for (int j = 0; j < length; ++j) {
+ s[j] = str.getChar(j);
+ }
+ }
}
UGString::~UGString()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic