WebFont.h (xpdf-4.03) | : | WebFont.h (xpdf-4.04) | ||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
#ifndef WEBFONT_H | #ifndef WEBFONT_H | |||
#define WEBFONT_H | #define WEBFONT_H | |||
#include <aconf.h> | #include <aconf.h> | |||
#ifdef USE_GCC_PRAGMAS | #ifdef USE_GCC_PRAGMAS | |||
#pragma interface | #pragma interface | |||
#endif | #endif | |||
#include "gtypes.h" | #include "gtypes.h" | |||
#include "FoFiBase.h" | ||||
#include "GfxFont.h" | #include "GfxFont.h" | |||
class FoFiTrueType; | class FoFiTrueType; | |||
class FoFiType1C; | class FoFiType1C; | |||
class XRef; | class XRef; | |||
//------------------------------------------------------------------------ | //------------------------------------------------------------------------ | |||
class WebFont { | class WebFont { | |||
public: | public: | |||
skipping to change at line 48 | skipping to change at line 49 | |||
GBool canWriteTTF(); | GBool canWriteTTF(); | |||
// Returns true if the font is, or can be converted to, an OpenType | // Returns true if the font is, or can be converted to, an OpenType | |||
// font. | // font. | |||
GBool canWriteOTF(); | GBool canWriteOTF(); | |||
// Write a TrueType (.ttf) file to [fontFilePath]. This can only be | // Write a TrueType (.ttf) file to [fontFilePath]. This can only be | |||
// called if canWriteTTF() returns true. Returns true on success. | // called if canWriteTTF() returns true. Returns true on success. | |||
GBool writeTTF(const char *fontFilePath); | GBool writeTTF(const char *fontFilePath); | |||
// Return the TrueType file as a string. This can only be called if | ||||
// canWriteTTF() returns true. Returns null on error. | ||||
GString *getTTFData(); | ||||
// Write an OpenType (.otf) file to [fontFilePath]. This can only | // Write an OpenType (.otf) file to [fontFilePath]. This can only | |||
// be called if canWriteOTF() returns true. Returns true on | // be called if canWriteOTF() returns true. Returns true on | |||
// success. | // success. | |||
GBool writeOTF(const char *fontFilePath); | GBool writeOTF(const char *fontFilePath); | |||
// Return the OpenType file as a string. This can only be called if | ||||
// canWriteOTF() returns true. Returns null on error. | ||||
GString *getOTFData(); | ||||
private: | private: | |||
GBool generateTTF(FoFiOutputFunc outFunc, void *stream); | ||||
GBool generateOTF(FoFiOutputFunc outFunc, void *stream); | ||||
Gushort *makeType1CWidths(int *codeToGID, int nCodes, int *nWidths); | Gushort *makeType1CWidths(int *codeToGID, int nCodes, int *nWidths); | |||
Gushort *makeCIDType0CWidths(int *codeToGID, int nCodes, int *nWidths); | Gushort *makeCIDType0CWidths(int *codeToGID, int nCodes, int *nWidths); | |||
Guchar *makeUnicodeCmapTable(int *codeToGID, int nCodes, | Guchar *makeUnicodeCmapTable(int *codeToGID, int nCodes, | |||
int *unicodeCmapLength); | int *unicodeCmapLength); | |||
int *makeUnicodeToGID(int *codeToGID, int nCodes, int *unicodeToGIDLength); | int *makeUnicodeToGID(int *codeToGID, int nCodes, int *unicodeToGIDLength); | |||
GfxFont *gfxFont; | GfxFont *gfxFont; | |||
char *fontBuf; | char *fontBuf; | |||
int fontLength; | int fontLength; | |||
FoFiTrueType *ffTrueType; | FoFiTrueType *ffTrueType; | |||
End of changes. 4 change blocks. | ||||
0 lines changed or deleted | 11 lines changed or added |