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 | |
vfont * | vfont_get () |
void | vfont_free () |
vfont * | vfont_get (char *font) |
void | vfont_free (register struct vfont *vfp) |
|
Definition at line 72 of file vfont-if.h. Referenced by vfont_get(). |
|
Definition at line 90 of file vfont-if.h. Referenced by vfont_get(). |
|
Definition at line 53 of file vfont.c. Referenced by vfont_get(). |
|
Definition at line 54 of file vfont.c. Referenced by vfont_get(). |
|
Definition at line 55 of file vfont.c. Referenced by vfont_get(). |
|
|
|
|
|
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: ![]() |
|
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: ![]() |