55
55
GBool deleteFile, char **enc);
56
56
SplashFontFile *loadType1CFont(SplashFontFileID *idA, char *fileName,
57
57
GBool deleteFile, char **enc);
58
SplashFontFile *loadOpenTypeT1CFont(SplashFontFileID *idA, char *fileName,
59
GBool deleteFile, char **enc);
58
60
SplashFontFile *loadCIDFont(SplashFontFileID *idA, char *fileName,
62
SplashFontFile *loadOpenTypeCFFFont(SplashFontFileID *idA, char *fileName,
60
64
SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, char *fileName,
62
66
Gushort *codeToGID, int codeToGIDLen);
64
68
// Get a font - this does a cache lookup first, and if not found,
65
69
// creates a new SplashFont object and adds it to the cache. The
70
// matrix, mat = textMat * ctm:
67
71
// [ mat[0] mat[1] ]
68
72
// [ mat[2] mat[3] ]
69
73
// specifies the font transform in PostScript style:
70
74
// [x' y'] = [x y] * mat
71
75
// Note that the Splash y axis points downward.
72
SplashFont *getFont(SplashFontFile *fontFile, SplashCoord *mat);
76
SplashFont *getFont(SplashFontFile *fontFile,
77
SplashCoord *textMat, SplashCoord *ctm);