Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 8146 → Rev 8147

/branches/Version13x/Scribus/scribus/pdflib.cpp
1045,6 → 1045,8
ObjCounter++;
StartObj(ObjCounter);
ObjCounter++;
QStringList toUnicodeMaps;
QValueList<int> toUnicodeMapsCount;
QString toUnicodeMap = "";
int toUnicodeMapCounter = 0;
PutDoc("<< /Type /Encoding\n");
1067,6 → 1069,13
tmp2.sprintf("%04X", gl[glyph].first.unicode());
toUnicodeMap += QString("<%1> <%2>\n").arg(tmp).arg((tmp2));
toUnicodeMapCounter++;
if (toUnicodeMapCounter == 100)
{
toUnicodeMaps.append(toUnicodeMap);
toUnicodeMapsCount.append(toUnicodeMapCounter);
toUnicodeMap = "";
toUnicodeMapCounter = 0;
}
crc++;
}
else
1081,6 → 1090,11
crc = 0;
}
}
if (toUnicodeMapCounter != 0)
{
toUnicodeMaps.append(toUnicodeMap);
toUnicodeMapsCount.append(toUnicodeMapCounter);
}
PutDoc("]\n");
PutDoc(">>\nendobj\n");
QString toUnicodeMapStream = "";
1095,11 → 1109,14
toUnicodeMapStream += "/CMapName /Adobe-Identity-UCS def\n";
toUnicodeMapStream += "/CMapType 2 def\n";
toUnicodeMapStream += "1 begincodespacerange\n";
toUnicodeMapStream += "<00> <FF>\n";
toUnicodeMapStream += "<0000> <FFFF>\n";
toUnicodeMapStream += "endcodespacerange\n";
toUnicodeMapStream += QString("%1 beginbfchar\n").arg(toUnicodeMapCounter);
toUnicodeMapStream += toUnicodeMap;
toUnicodeMapStream += "endbfchar\n";
for (uint uniC = 0; uniC < toUnicodeMaps.count(); uniC++)
{
toUnicodeMapStream += QString("%1 beginbfchar\n").arg(toUnicodeMapsCount[uniC]);
toUnicodeMapStream += toUnicodeMaps[uniC];
toUnicodeMapStream += "endbfchar\n";
}
toUnicodeMapStream += "endcmap\n";
toUnicodeMapStream += "CMapName currentdict /CMap defineresource pop\n";
toUnicodeMapStream += "end\n";