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

fontmetric.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "ps/ps.h"

Go to the source code of this file.

Defines

#define MATCH(line, key)    (!strncmp((line), (key), strlen((key))))

Functions

PSAFMDirectionpsAFMDirectionAlloc (void)
 Allocates and initializes a psAFMDirection structure. More...

PSAFMDirectionpsAFMDirectionCalloc (int count)
 Allocates and initializes count psAFMDirection structures. More...

void psAFMDirectionFree (PSAFMDirection* d)
 Frees up a psAFMDirection structure. More...

PSAFMCharMetricpsAFMCharMetricAlloc (void)
 Allocates and initializes a psAFMCharMetric structure. More...

PSAFMCharMetricpsAFMCharMetricCalloc (int count)
 Allocates and initializes count psAFMCharMetric structures. More...

void psAFMCharMetricFree (PSAFMCharMetric* cm)
 Frees up psAFMCharMetrics structure. More...

PSAFMpsAFMAlloc (void)
 Allocates and initializes a new psAFM structure. More...

PSAFMpsAFMCalloc (int count)
 Allocates and initializes count psAFM structures. More...

void psAFMFree (PSAFM *fontMetric)
 Frees up a psAFM structure. More...

PSAFMpsAFMLoad (char *fileName)
 Loads/parses an AFM file into a psAFM structure. More...

PSAFMpsAFMParse (PSStream *str)
 Parses the AFM file referenced by str. More...

PSAFMCharMetricpsAFMLookupCharMetricByCode (PSAFM* fm, int code)
 Looks up an AFM character metric by code. More...

PSAFMCharMetricpsAFMLookupCharMetricByName (PSAFM* fm, char *name)
 Looks up an AFM character metric by name. More...

double psAFMGetTextWidth (PSAFM* fm, char* text)
 Calculates the width of text for the font metric \fm. More...

int psAFMGetPSWeight (PSAFM* fm)
 Get weight from font metric fm. More...

int psAFMGetPSWidth (PSAFM* fm)
 Get width from font metric fm. More...

int psAFMGetPSItalic (PSAFM* fm)
 Determines if the font referenced by the font metric fm is an italic font. More...


Detailed Description


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