SUMO - Simulation of Urban MObility
polyfonttypes.h
Go to the documentation of this file.
1 #ifndef __POLYFONTTYPES__
2 #define __POLYFONTTYPES__
3 
4 /*
5  Polyfonts is a polygon font drawing library for use with SDL. Any
6  TTF font can be converted for use with this library. Contact the
7  author for details.
8 
9  Copyright (C) 2003 Bob Pendleton
10 
11  This library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU Lesser General Public License
13  as published by the Free Software Foundation, either version 3.1
14  of the License, or (at your option) any later version.
15 
16  This library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  Lesser General Public License for more details.
20 
21  You should have received a copy of the GNU Lesser General Public
22  License along with this library; if not, write to the Free
23  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24  02111-1307 USA
25 
26  If you do not wish to comply with the terms of the LGPL please
27  contact the author as other terms are available for a fee.
28 
29  Bob Pendleton
30  Bob@Pendleton.com
31 */
32 /* =========================================================================
33  * included modules
34  * ======================================================================= */
35 #ifdef _MSC_VER
36 #include <windows_config.h>
37 #else
38 #include <config.h>
39 #endif
40 
41 
42 typedef unsigned char pfuint8;
43 typedef signed char pfint8;
44 
45 typedef unsigned short int pfuint16;
46 typedef signed short int pfint16;
47 
48 #define pfFixScale (1 << 15)
49 
50 typedef struct
51 {
60 }
61 pfglyph;
62 
63 typedef struct
64 {
65  char *name;
66  int loaded;
71  int numglyphs;
73 }
74 pffont;
75 /*
76 typedef struct
77 {
78  int numfonts;
79  pffont *fonts;
80 } pftable;
81 */
82 #endif
SUMOReal maxx
Definition: polyfonttypes.h:69
SUMOReal minx
Definition: polyfonttypes.h:52
pfuint16 numsegments
Definition: polyfonttypes.h:58
char * name
Definition: polyfonttypes.h:65
SUMOReal advance
Definition: polyfonttypes.h:56
pfglyph * glyphs
Definition: polyfonttypes.h:72
signed char pfint8
Definition: polyfonttypes.h:43
SUMOReal minx
Definition: polyfonttypes.h:67
SUMOReal maxy
Definition: polyfonttypes.h:55
int numglyphs
Definition: polyfonttypes.h:71
unsigned short int pfuint16
Definition: polyfonttypes.h:45
signed short int pfint16
Definition: polyfonttypes.h:46
pfuint16 glyph
Definition: polyfonttypes.h:57
unsigned char pfuint8
Definition: polyfonttypes.h:42
SUMOReal miny
Definition: polyfonttypes.h:53
#define SUMOReal
Definition: config.h:213
pfint16 * segments
Definition: polyfonttypes.h:59
int loaded
Definition: polyfonttypes.h:66
SUMOReal maxy
Definition: polyfonttypes.h:70
SUMOReal maxx
Definition: polyfonttypes.h:54
SUMOReal miny
Definition: polyfonttypes.h:68