2017-04-25 14:41:48 +02:00
|
|
|
/*
|
|
|
|
|
* fonts.h --
|
|
|
|
|
*
|
|
|
|
|
* Vectored font definitions for the database module.
|
|
|
|
|
* This file defines variables and procedures that are visible to clients
|
|
|
|
|
* outside the database module.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2008 OpenCircuitDesign, Inc.
|
|
|
|
|
*
|
|
|
|
|
* rcsid "$$"
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _FONTS_H
|
|
|
|
|
#define _FONTS_H
|
|
|
|
|
|
|
|
|
|
#ifndef _TILES_H
|
|
|
|
|
#include "tiles/tile.h"
|
|
|
|
|
#endif /* _TILES_H */
|
|
|
|
|
|
|
|
|
|
/* ---------------------------- Fonts --------------------------------- */
|
|
|
|
|
|
|
|
|
|
typedef struct fontchar *FontCharPtr;
|
|
|
|
|
typedef struct fontchar
|
|
|
|
|
{
|
|
|
|
|
short fc_numpoints;
|
|
|
|
|
Point *fc_points;
|
|
|
|
|
FontCharPtr fc_next;
|
|
|
|
|
} FontChar;
|
2020-05-23 23:13:14 +02:00
|
|
|
|
2017-04-25 14:41:48 +02:00
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
char *mf_name;
|
|
|
|
|
Rect mf_extents; /* Character extents (max bbox) */
|
|
|
|
|
FontChar *mf_vectors[96]; /* ASCII characters 32 through 126 */
|
|
|
|
|
Point mf_offset[96]; /* Vector offset to next character */
|
|
|
|
|
Rect mf_bbox[96]; /* Character bounding boxes */
|
|
|
|
|
} MagicFont;
|
|
|
|
|
|
|
|
|
|
extern MagicFont **DBFontList; /* List of loaded font vectors */
|
|
|
|
|
extern int DBNumFonts; /* Number of loaded fonts */
|
|
|
|
|
|
|
|
|
|
#endif /* _FONTS_H */
|