1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/************************************************************************/
/* */
/* Define a mapping between fonts and their faces as they appear in an */
/* office document and the family/encoding/face combinations as they */
/* are used in printing, and indirectly in showing a document on */
/* screen. */
/* */
/* 1) Indirection to the family in the administration of PostScript */
/* fonts. */
/* 2) Indirection to the face in the family. */
/* 3) Shortcut to the metrics of the face. */
/* 4) Attributes of the face. */
/* 5) Encoding for which this entry is used. */
/* */
/************************************************************************/
# ifndef UTIL_POSTSCRIPT_FACE_H
# define UTIL_POSTSCRIPT_FACE_H
# include <docFont.h>
# include <psFont.h>
typedef struct PostScriptFace
{
# if 0
int psfFamilyNumber; /* 1 */
int psfFaceNumber; /* 2 */
# endif
const AfmFontInfo * psfAfi; /* 3 */
TextAttribute psfAttributes; /* 4 */
int psfEncodingUsed; /* 5 */
char psfFontPrefix[10];
char psfFontId[25];
int psfAppearsInText;
} PostScriptFace;
typedef struct PostScriptFaceList
{
PostScriptFace * psflFaces;
int psflFaceCount;
} PostScriptFaceList;
/************************************************************************/
/* */
/* Declarations. */
/* */
/************************************************************************/
extern int utilRememberPostsciptFace( PostScriptFaceList * psfl,
/*
int familyNumber,
int faceNumber,
*/
int encoding,
const AfmFontInfo * afi,
TextAttribute ta,
const char * prefix,
int appearsInText );
extern void utilInitPostScriptFaceList( PostScriptFaceList * psfl );
extern void utilCleanPostScriptFaceList( PostScriptFaceList * psfl );
# endif /* UTIL_POSTSCRIPT_FACE_H */
|