"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xpdf/WebFont.cc" between
xpdf-4.02.tar.gz and xpdf-4.03.tar.gz

About: Xpdf is a PDF viewer for X.

WebFont.cc  (xpdf-4.02):WebFont.cc  (xpdf-4.03)
skipping to change at line 25 skipping to change at line 25
#include "gmem.h" #include "gmem.h"
#include "gmempp.h" #include "gmempp.h"
#include "GHash.h" #include "GHash.h"
#include "FoFiTrueType.h" #include "FoFiTrueType.h"
#include "FoFiType1C.h" #include "FoFiType1C.h"
#include "CharCodeToUnicode.h" #include "CharCodeToUnicode.h"
#include "WebFont.h" #include "WebFont.h"
WebFont::WebFont(GfxFont *gfxFontA, XRef *xref) { WebFont::WebFont(GfxFont *gfxFontA, XRef *xref) {
GfxFontType type; GfxFontType type;
Ref id;
gfxFont = gfxFontA; gfxFont = gfxFontA;
fontBuf = NULL; fontBuf = NULL;
ffTrueType = NULL; ffTrueType = NULL;
ffType1C = NULL; ffType1C = NULL;
isOpenType = gFalse; isOpenType = gFalse;
type = gfxFont->getType(); if (gfxFont->getEmbeddedFontID(&id)) {
if (type == fontTrueType || type = gfxFont->getType();
type == fontTrueTypeOT || if (type == fontTrueType ||
type == fontCIDType2 || type == fontTrueTypeOT ||
type == fontCIDType2OT) { type == fontCIDType2 ||
if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) { type == fontCIDType2OT) {
ffTrueType = FoFiTrueType::make(fontBuf, fontLength, 0); if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) {
} ffTrueType = FoFiTrueType::make(fontBuf, fontLength, 0);
} else if (type == fontType1C || }
type == fontCIDType0C) { } else if (type == fontType1C ||
if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) { type == fontCIDType0C) {
ffType1C = FoFiType1C::make(fontBuf, fontLength); if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) {
} ffType1C = FoFiType1C::make(fontBuf, fontLength);
} else if (type == fontType1COT || }
type == fontCIDType0COT) { } else if (type == fontType1COT ||
if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) { type == fontCIDType0COT) {
isOpenType = gTrue; if ((fontBuf = gfxFont->readEmbFontFile(xref, &fontLength))) {
isOpenType = gTrue;
}
} }
} }
} }
WebFont::~WebFont() { WebFont::~WebFont() {
delete ffTrueType; delete ffTrueType;
delete ffType1C; delete ffType1C;
gfree(fontBuf); gfree(fontBuf);
} }
 End of changes. 2 change blocks. 
17 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)