1 /* 2 * fonts.h -- 3 * 4 * Vectored font definitions for the database module. 5 * This file defines variables and procedures that are visible to clients 6 * outside the database module. 7 * 8 * Copyright (C) 2008 OpenCircuitDesign, Inc. 9 * 10 * rcsid "$$" 11 */ 12 13 #ifndef _FONTS_H 14 #define _FONTS_H 15 16 #ifndef _TILES_H 17 #include "tiles/tile.h" 18 #endif /* _TILES_H */ 19 20 /* ---------------------------- Fonts --------------------------------- */ 21 22 typedef struct fontchar *FontCharPtr; 23 typedef struct fontchar 24 { 25 short fc_numpoints; 26 Point *fc_points; 27 FontCharPtr fc_next; 28 } FontChar; 29 30 typedef struct 31 { 32 char *mf_name; 33 Rect mf_extents; /* Character extents (max bbox) */ 34 FontChar *mf_vectors[96]; /* ASCII characters 32 through 126 */ 35 Point mf_offset[96]; /* Vector offset to next character */ 36 Rect mf_bbox[96]; /* Character bounding boxes */ 37 } MagicFont; 38 39 extern MagicFont **DBFontList; /* List of loaded font vectors */ 40 extern int DBNumFonts; /* Number of loaded fonts */ 41 42 #endif /* _FONTS_H */ 43