Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members  

True Type Font Utilities

True Type Font Utilities. More...

Compounds

struct  psTTFontInfo

Typedefs

typedef struct psTTFontInfo  PSTTFontInfo
 Typedef for psTTFontInfo structure.


Functions

int psTTInit (void)
 Initializes the True Type functions of the library. More...

void psTTDone (void)
 Shuts down TT functions. More...

PSTTFontInfopsTTFontInfoAlloc (void)
 Allocates and initializes a new psTTFontInfo structure. More...

void psTTFontInfoFree (PSTTFontInfo* info)
 Frees up a psTTFontInfo structure. More...

PSTTFontInfopsTTGetFontInfo (char *fileName)
 Get True Type font info from specified file. More...

int psTTGetPSFontWidth (PSTTFontInfo* info)
 Get PS font width from psTTFontInfo structure. More...

int psTTGetPSFontWeight (PSTTFontInfo* info)
 Get PS font weight from psTTFontInfo structure. More...

int psTTFToT1PFA (char *ttfFileName, PSStream *pfa, int flags)
 Convert a True Type font to a Postscript Type 1. More...

int psTTFToT42PFA (PSStream* ttf, PSStream* pfa, PSStream* afm)
 Convert True Type font to PS Type 42 and PS AFM. More...


Detailed Description

True Type Font Utilities.

These routines support conversion of True Type fonts to Postscript Type 42 fonts (for inclusion in postscript files), generation of AFM (font metrics) and various manipulations of True Type font files.


Function Documentation

void psTTDone ( void )
 

Shuts down TT functions.

Returns:
nothing.

int psTTFToT1PFA ( char * ttfFileName,
PSStream * pfa,
int flags )
 

Convert a True Type font to a Postscript Type 1.

This is a hack which execs ttf2pt1.

Parameters:
ttfFileName   pointer to name of True Type font file.
pfa   Stream to write type 1 font data to.
flags  

Returns:
non-zero on success or 0 on failure.

int psTTFToT42PFA ( PSStream * ttf,
PSStream * pfa,
PSStream * afm )
 

Convert True Type font to PS Type 42 and PS AFM.

Parameters:
ttf   pointer to ttf PSStream (input).
pfa   pointer to pfa PSStream (output). Set to NULL if PFA file is not desired.
afm   pointer to afm PSStream (output). Set to NULL if AFM file is not desired.

Returns:
non-zero on success or 0 on failure and sets pserrno.

PSTTFontInfo * psTTFontInfoAlloc ( void )
 

Allocates and initializes a new psTTFontInfo structure.

Returns:
a pointer to the newly allocated structure on success or NULL on failure.
See also:
psTTFontInfoFree().

void psTTFontInfoFree ( PSTTFontInfo * info )
 

Frees up a psTTFontInfo structure.

Parameters:
info   pointer to psTTFontInfo structure to free.
Returns:
nothing.
See also:
psTTFontInfoAlloc().

PSTTFontInfo * psTTGetFontInfo ( char * fileName )
 

Get True Type font info from specified file.

Parameters:
fileName   pointer to fileName to read.

Returns:
a pointer to a new psTTFontInfo structure on success or NULL on failure.

int psTTGetPSFontWeight ( PSTTFontInfo * info )
 

Get PS font weight from psTTFontInfo structure.

Parameters:
info   pointer to psTTFontInfo structure.

Returns:
the PS_FONT_WEIGHT_XXX value for the specified TT font info.

int psTTGetPSFontWidth ( PSTTFontInfo * info )
 

Get PS font width from psTTFontInfo structure.

Parameters:
info   pointer to psTTFontInfo structure.

Returns:
the PS_FONT_WIDTH_XXX value for the specified TT font info.

int psTTInit ( void )
 

Initializes the True Type functions of the library.

Must be called before calling any other TT functions.

Returns:
non-zero on success or 0 on failure.


Generated at Mon Dec 11 22:46:31 2000 for Postscript Utility Library by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000