19SFontEngine::SFontEngine(Display *displayA, Visual *visualA, int depthA,
27SFontEngine::~SFontEngine() {
30void SFontEngine::useTrueColor( int rMaxA, int rShiftA, int gMaxA, int gShiftA,
31 int bMaxA, int bShiftA) {
41void SFontEngine::useColorCube(Gulong *colorsA, int nRGBA) {
45 rMax = gMax = bMax = nRGB - 1;
48Gulong SFontEngine::findColor( int r, int g, int b) {
52 r1 = ((r & 0xffff) * rMax) / 0xffff;
53 g1 = ((g & 0xffff) * gMax) / 0xffff;
54 b1 = ((b & 0xffff) * bMax) / 0xffff;
56 pix = (r1 << rShift) + (g1 << gShift) + (b1 << bShift);
58 pix = colors[(r1 * nRGB + g1) * nRGB + b1];
65SFontFile::SFontFile() {
68SFontFile::~SFontFile() {
79GBool SFont::getCharPath(CharCode c, Unicode u, GfxState *state) {
|