Commit d4232117 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Render correctly Type 1 as CID fonts

Improves font rendering of fireforx nytimes pdf
BUG: 96085

svn path=/trunk/kdegraphics/kpdf/; revision=376349
parent 61eaf43b
......@@ -74,19 +74,20 @@ SplashFontFile *SplashFTFontEngine::loadType1CFont(SplashFontFileID *idA,
SplashFontFile *SplashFTFontEngine::loadCIDFont(SplashFontFileID *idA,
char *fileName,
GBool deleteFile) {
FoFiType1C *ff;
//FoFiType1C *ff;
Gushort *cidToGIDMap;
int nCIDs;
SplashFontFile *ret;
// check for a CFF font
if ((ff = FoFiType1C::load(fileName))) {
/*if ((ff = FoFiType1C::load(fileName))) {
cidToGIDMap = ff->getCIDToGIDMap(&nCIDs);
delete ff;
} else {
} else {*/
// No need to check for CFF Font, freetype treats all CID fonts the same way
cidToGIDMap = NULL;
nCIDs = 0;
ret = SplashFTFontFile::loadCIDFont(this, idA, fileName, deleteFile,
cidToGIDMap, nCIDs);
if (!ret) {
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