1 //========================================================================
5 //========================================================================
7 #ifndef SPLASHFONTFILE_H
8 #define SPLASHFONTFILE_H
12 #ifdef USE_GCC_PRAGMAS
17 #include "SplashTypes.h"
20 class SplashFontEngine
;
22 class SplashFontFileID
;
24 //------------------------------------------------------------------------
26 //------------------------------------------------------------------------
28 class SplashFontFile
{
31 virtual ~SplashFontFile();
33 // Create a new SplashFont, i.e., a scaled instance of this font
35 virtual SplashFont
*makeFont(SplashCoord
*mat
, SplashCoord
*textMat
) = 0;
37 // Get the font file ID.
38 SplashFontFileID
*getID() { return id
; }
40 // Increment the reference count.
43 // Decrement the reference count. If the new value is zero, delete
44 // the SplashFontFile object.
49 SplashFontFile(SplashFontFileID
*idA
, char *fileNameA
,
57 friend class SplashFontEngine
;