vector fonts
[libbu (utility functions)]

Collaboration diagram for vector fonts:


Files

file  vfont-if.h
file  vfont.c
 Berkely Vector Fonts.

Data Structures

struct  vfont_dispatch
struct  vfont

Defines

#define SXT(c)   ((c)|((c&0x80)?(~0xFF):0))
#define VFONT_NULL   ((struct vfont *)NULL)
#define FONTDIR2   "/usr/lib/vfont"
#define DEFAULT_FONT   "nonie.r.12"
#define FONTNAMESZ   128

Functions

vfontvfont_get ()
void vfont_free ()
vfontvfont_get (char *font)
void vfont_free (register struct vfont *vfp)

Define Documentation

#define SXT  )     ((c)|((c&0x80)?(~0xFF):0))
 

Definition at line 72 of file vfont-if.h.

Referenced by vfont_get().

#define VFONT_NULL   ((struct vfont *)NULL)
 

Definition at line 90 of file vfont-if.h.

Referenced by vfont_get().

#define FONTDIR2   "/usr/lib/vfont"
 

Definition at line 53 of file vfont.c.

Referenced by vfont_get().

#define DEFAULT_FONT   "nonie.r.12"
 

Definition at line 54 of file vfont.c.

Referenced by vfont_get().

#define FONTNAMESZ   128
 

Definition at line 55 of file vfont.c.

Referenced by vfont_get().


Function Documentation

struct vfont* vfont_get  ) 
 

void vfont_free  ) 
 

struct vfont* vfont_get char *  font  ) 
 

V F O N T _ G E T

Fetch the named font, and return a struct vfont pointer.

First the filename provided is used, then the BRL-CAD font directory is searched (for places where "system" directories are considered sacred), and then finally the ordinary font directory is searched.

The font files are treated as pure byte streams, and are expected to be in VAX order.

VFONT_NULL is returned on error. On ordinary errors, the function is silent. On extraordinary errors, a remark is placed on stderr.

Definition at line 79 of file vfont.c.

References bu_brlcad_data(), bu_free(), bu_malloc(), DEFAULT_FONT, FONTDIR2, FONTNAMESZ, fp, NULL, size, SXT, vf_bits, vf_dispatch, vf_maxx, vf_maxy, vf_xtend, and VFONT_NULL.

Here is the call graph for this function:

void vfont_free register struct vfont vfp  ) 
 

V F O N T _ F R E E

Return the storage associated with a struct vfont

Definition at line 188 of file vfont.c.

References bu_free().

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:22 2006 for BRL-CAD by  doxygen 1.4.6