Commit 1223fd4b authored by Albert Astals Cid's avatar Albert Astals Cid

* poppler/UGooString.cc: 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
parent b85a39dd
2006-06-11 Albert Astals Cid <aacid@kde.org>
* poppler/UGooString.cc: 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
2006-06-01 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-qt4.h:
......
......@@ -51,8 +51,16 @@ void UGooString::initChar(GooString &str)
{
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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment