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 "$$"
|
|
|
|
|
*/
|
|
|
|
|
|
2024-10-16 08:38:41 +02:00
|
|
|
#ifndef _MAGIC__DATABASE__FONTS_H
|
|
|
|
|
#define _MAGIC__DATABASE__FONTS_H
|
2017-04-25 14:41:48 +02:00
|
|
|
|
2025-01-31 19:53:59 +01:00
|
|
|
#ifndef _MAGIC__TILES__TILE_H
|
2017-04-25 14:41:48 +02:00
|
|
|
#include "tiles/tile.h"
|
2025-01-31 19:53:59 +01:00
|
|
|
#endif
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
/* ---------------------------- 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 */
|
|
|
|
|
|
2024-10-16 08:38:41 +02:00
|
|
|
#endif /* _MAGIC__DATABASE__FONTS_H */
|