X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=pdf%2Fxpdf%2FSFont.cc;h=1f421dd4541d09ed5dd5ca146aeea2f276bf31bd;hb=884f739665dc56e66f51e104350f2affd33f2dd8;hp=5ffe315e2e03c7414b8a3af5b0881034aede0f07;hpb=7aac8dc8533347e21311b15186e0af82f1b22fd6;p=evince.git diff --git a/pdf/xpdf/SFont.cc b/pdf/xpdf/SFont.cc index 5ffe315e..1f421dd4 100644 --- a/pdf/xpdf/SFont.cc +++ b/pdf/xpdf/SFont.cc @@ -2,9 +2,13 @@ // // SFont.cc // +// Copyright 2001-2003 Glyph & Cog, LLC +// //======================================================================== -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma implementation #endif @@ -12,32 +16,32 @@ //------------------------------------------------------------------------ -SFontEngine::SFontEngine(Display *display, Visual *visual, int depth, - Colormap colormap) { - this->display = display; - this->visual = visual; - this->depth = depth; - this->colormap = colormap; -}; +SFontEngine::SFontEngine(Display *displayA, Visual *visualA, int depthA, + Colormap colormapA) { + display = displayA; + visual = visualA; + depth = depthA; + colormap = colormapA; +} SFontEngine::~SFontEngine() { } -void SFontEngine::useTrueColor(int rMax, int rShift, int gMax, int gShift, - int bMax, int bShift) { +void SFontEngine::useTrueColor(int rMaxA, int rShiftA, int gMaxA, int gShiftA, + int bMaxA, int bShiftA) { trueColor = gTrue; - this->rMax = rMax; - this->rShift = rShift; - this->gMax = gMax; - this->gShift = gShift; - this->bMax = bMax; - this->bShift = bShift; + rMax = rMaxA; + rShift = rShiftA; + gMax = gMaxA; + gShift = gShiftA; + bMax = bMaxA; + bShift = bShiftA; } -void SFontEngine::useColorCube(Gulong *colors, int nRGB) { +void SFontEngine::useColorCube(Gulong *colorsA, int nRGBA) { trueColor = gFalse; - this->colors = colors; - this->nRGB = nRGB; + colors = colorsA; + nRGB = nRGBA; rMax = gMax = bMax = nRGB - 1; } @@ -71,3 +75,7 @@ SFont::SFont() { SFont::~SFont() { } + +GBool SFont::getCharPath(CharCode c, Unicode u, GfxState *state) { + return gFalse; +}