"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fofi/FoFiTrueType.h" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

FoFiTrueType.h  (xpdf-4.01.01):FoFiTrueType.h  (xpdf-4.02)
skipping to change at line 98 skipping to change at line 98
// * 3: installable embedding // * 3: installable embedding
// * 2: editable embedding // * 2: editable embedding
// * 1: preview & print embedding // * 1: preview & print embedding
// * 0: restricted license embedding // * 0: restricted license embedding
int getEmbeddingRights(); int getEmbeddingRights();
// Return the font matrix as an array of six numbers. (Only useful // Return the font matrix as an array of six numbers. (Only useful
// for OpenType CFF fonts.) // for OpenType CFF fonts.)
void getFontMatrix(double *mat); void getFontMatrix(double *mat);
// Return the number of glyphs in the font.
int getNumGlyphs() { return nGlyphs; }
// Returns true if this looks like a CJK font that uses bytecode // Returns true if this looks like a CJK font that uses bytecode
// instructions to assemble glyphs. // instructions to assemble glyphs.
GBool checkForTrickyCJK(); GBool checkForTrickyCJK();
// Convert to a Type 42 font, suitable for embedding in a PostScript // Convert to a Type 42 font, suitable for embedding in a PostScript
// file. <psName> will be used as the PostScript font name (so we // file. <psName> will be used as the PostScript font name (so we
// don't need to depend on the 'name' table in the font). The // don't need to depend on the 'name' table in the font). The
// <encoding> array specifies the mapping from char codes to names. // <encoding> array specifies the mapping from char codes to names.
// If <encoding> is NULL, the encoding is unknown or undefined. The // If <encoding> is NULL, the encoding is unknown or undefined. The
// <codeToGID> array specifies the mapping from char codes to GIDs. // <codeToGID> array specifies the mapping from char codes to GIDs.
skipping to change at line 157 skipping to change at line 160
// Convert to a Type 0 (but non-CID) composite font, suitable for // Convert to a Type 0 (but non-CID) composite font, suitable for
// embedding in a PostScript file. <psName> will be used as the // embedding in a PostScript file. <psName> will be used as the
// PostScript font name. (Only useful for OpenType CFF fonts.) // PostScript font name. (Only useful for OpenType CFF fonts.)
void convertToType0(char *psName, int *cidMap, int nCIDs, void convertToType0(char *psName, int *cidMap, int nCIDs,
FoFiOutputFunc outputFunc, void *outputStream); FoFiOutputFunc outputFunc, void *outputStream);
// Write a clean TTF file, filling in missing tables and correcting // Write a clean TTF file, filling in missing tables and correcting
// various other errors. If <name> is non-NULL, the font is renamed // various other errors. If <name> is non-NULL, the font is renamed
// to <name>. If <codeToGID> is non-NULL, the font is re-encoded, // to <name>. If <codeToGID> is non-NULL, the font is re-encoded,
// using a Windows Unicode cmap. If <name> is NULL and the font is // using a Windows Unicode cmap. If <name> is NULL and the font is
// complete and correct, it will be written unmodified. (Not useful // complete and correct, it will be written unmodified. If
// for OpenType CFF fonts.) Returns true if the font was modified. // <replacementCmapTable> is non-NULL it will be used as the cmap
// table in the written font (overriding any existing cmap table
// and/or the codeToGID arg). (Not useful for OpenType CFF fonts.)
// Returns true if the font was modified.
GBool writeTTF(FoFiOutputFunc outputFunc, void *outputStream, GBool writeTTF(FoFiOutputFunc outputFunc, void *outputStream,
char *name = NULL, int *codeToGID = NULL); char *name = NULL, int *codeToGID = NULL,
Guchar *replacementCmapTable = NULL,
int replacementCmapTableLen = 0);
// Returns a pointer to the CFF font embedded in this OpenType font. // Returns a pointer to the CFF font embedded in this OpenType font.
// If successful, sets *<start> and *<length>, and returns true. // If successful, sets *<start> and *<length>, and returns true.
// Otherwise returns false. (Only useful for OpenType CFF fonts). // Otherwise returns false. (Only useful for OpenType CFF fonts).
GBool getCFFBlock(char **start, int *length); GBool getCFFBlock(char **start, int *length);
private: private:
FoFiTrueType(char *fileA, int lenA, GBool freeFileDataA, FoFiTrueType(char *fileA, int lenA, GBool freeFileDataA,
int fontNum, GBool isDfont, GBool allowHeadlessCFF); int fontNum, GBool isDfont, GBool allowHeadlessCFF);
skipping to change at line 203 skipping to change at line 211
int nTables; int nTables;
TrueTypeCmap *cmaps; TrueTypeCmap *cmaps;
int nCmaps; int nCmaps;
int nGlyphs; int nGlyphs;
int locaFmt; int locaFmt;
int bbox[4]; int bbox[4];
GHash *nameToGID; GHash *nameToGID;
GBool openTypeCFF; GBool openTypeCFF;
GBool headlessCFF; GBool headlessCFF;
GBool isDfont; GBool isDfont;
GBool isTTC;
GBool parsedOk; GBool parsedOk;
}; };
#endif #endif
 End of changes. 4 change blocks. 
3 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)