vectfont.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include "vmath.h"
#include "plot3.h"
#include "vectfont.h"
#include "bu/malloc.h"
Include dependency graph for vectfont.c:

Go to the source code of this file.


#define NUM_SYMBOLS   8


void tp_setup (void)
 Once-only setup routine Used by libplot3/symbol.c, so it can't be static. DEPRECATED: libplot3 has been merged into libbn, so this no longer needs to be public. More...
int * tp_getchar (const unsigned char *c)

Detailed Description

Terminal Independent Graphics Display Package. Mike Muuss July 31, 1978

This routine is used to plot a string of ASCII symbols on the plot being generated, using a built-in set of fonts drawn as vector lists.

Internally, the basic font resides in a 10x10 unit square.

Externally, each character can be thought to occupy one square plotting unit; the 'scale' parameter allows this to be changed as desired, although scale factors less than 10.0 are unlikely to be legible.

The vector font table here was provided courtesy of Dr. Bruce Henrikson and Dr. Stephen Wolff, US Army Ballistic Research Laboratory, Summer of 1978. They had developed it for their remote Houston Instruments pen plotter package for the GE Tymeshare system.

Definition in file vectfont.c.

Macro Definition Documentation

#define NUM_SYMBOLS   8

Definition at line 57 of file vectfont.c.

Referenced by tp_setup().

Function Documentation

int* tp_getchar ( const unsigned char *  c)

Definition at line 1104 of file vectfont.c.

References tp_setup().

Referenced by bn_vlist_3string(), and tp_3symbol().

Here is the call graph for this function: