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

fontlist.c File Reference

Functions for managing the font list. More...

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

Go to the source code of this file.

Defines

#define dirent   direct
#define NAMLEN(dirent)    (dirent)->d_namlen
#define MAX_EXT_LEN   4
#define XFONTSDIR   "fonts.dir"

Functions

void psFontListSetPath (char *path)
 Sets the font path (psFontPath) to path. More...

char* psFontListGetPath (void)
 Gets a pointer to the current font path. More...

void psFontListAppendPath (char *dir)
 Appends a directory to the current font path. More...

void psFontListFreePath (void)
 Frees up memory used by the font path. More...

int psFontListLoad (int flags, void(*statusFunc)(char* msg))
 Builds psFontList by scanning the directories in psFontPath for valid fonts. More...

void psFontListFree ()
 Frees up the font list. More...

PSFontpsFontListLookupByFontName (char *fontName)
 Looks up an entry in the font list matching fontName. More...

PSFontpsFontListLookupByFontFamily (char *fontFamily)
 Looks up an entry in the font list matching fontFamily. More...

PSFontpsFontListLookupByXLFD (char *xlfd)
 Looks up an entry in the font list matching xlfd. More...

PSFontpsFontListLookupByFontFileName (char *fontFileName)
 Lookup an entry in the font list matching fontFileName. More...

char* psGetXFontFileName (char* XLFD, char **fileName)
double psFontGetTextWidth (PSFont* font, char *text)
 Calculates width of text for font. More...


Variables

PSFontType psFontTypes []
 Table to map font file extentions to font types. More...

PSListpsFontList = NULL
 Global list of available fonts. More...


Detailed Description

Functions for managing the font list.


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