-
Notifications
You must be signed in to change notification settings - Fork 2
/
font.h
69 lines (58 loc) · 1.21 KB
/
font.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/***************************************************************\
*
* Header file for Greg Omi's Font routines
*
* By: Greg Omi
*
* Last update: 22-Sep-93
*
* Copyright (c) 1993, The 3DO Company
*
* This program is proprietary and confidential
*
\***************************************************************/
/***************************************************************\
*
* Font support routines
*
\***************************************************************/
typedef struct FontStruct
{
char *TextPtr;
void *FontPtr;
int32 CoordX;
int32 CoordY;
int32 LineFeedOffset;
Item BItem;
void *PLUTPtr;
} FontStruct;
/*
* Name:
* FontInit
* Purpose:
* Allocates memory and initializes Font
* Entry:
* Maximum number of characters per line
*/
void FontInit (int32 num);
/*
* Name:
* FontPrint
* Purpose:
* Prints a text message using a font.
* Expects the character set to be packed,
* rotated 90 degrees to be facing down,
* and horizontally flipped.
* The control point is in the top left corner.
* Accepts strings with CR/LF.
* Entry:
* FontStruct pointer
*/
void FontPrint (FontStruct*);
/*
* Name:
* FontFree
* Purpose:
* Frees memory allocation for characters
*/
void FontFree (void);