1
//========================================================================
5
//========================================================================
7
//========================================================================
9
// Modified under the Poppler project - http://poppler.freedesktop.org
11
// All changes made under the Poppler project to this file are licensed
12
// under GPL version 2 or later
14
// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
15
// Copyright (C) 2008, 2010 Albert Astals Cid <aacid@kde.org>
17
// To see a description of the changes please see the Changelog file that
18
// came with your tarball or type make ChangeLog if you are building from git
20
//========================================================================
22
#ifndef SPLASHFONTFILE_H
23
#define SPLASHFONTFILE_H
25
#ifdef USE_GCC_PRAGMAS
29
#include "goo/gtypes.h"
30
#include "SplashTypes.h"
33
class SplashFontEngine;
35
class SplashFontFileID;
37
//------------------------------------------------------------------------
39
//------------------------------------------------------------------------
45
void setFile(GooString *file, GBool del);
46
void setFile(const char *file, GBool del);
47
void setBuf(char *bufA, int buflenA, GBool del);
63
class SplashFontFile {
66
virtual ~SplashFontFile();
68
// Create a new SplashFont, i.e., a scaled instance of this font
70
virtual SplashFont *makeFont(SplashCoord *mat, SplashCoord *textMat) = 0;
72
// Get the font file ID.
73
SplashFontFileID *getID() { return id; }
75
// Increment the reference count.
78
// Decrement the reference count. If the new value is zero, delete
79
// the SplashFontFile object.
86
SplashFontFile(SplashFontFileID *idA, SplashFontSrc *srcA);
92
friend class SplashFontEngine;