2 * freeglut_glutfont_definitions.c
4 * Bitmap and stroke fonts displaying.
6 * Copyright (c) 2003 Stephen J. Baker (whether he wants it or not). All Rights Reserved.
7 * Written by John F. Fay <fayjf@sourceforge.net>, who releases the copyright over to the
8 * "freeglut" project lead.
9 * Creation date: Mon July 21 2003
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 * This file is necessary for the *nix version of "freeglut" because the original GLUT
31 * defined its font variables in rather an unusual way. Publicly, in "glut.h", they were
32 * defined as "void *". Privately, in one of the source code files, they were defined as
33 * pointers to a structure. Most compilers and linkers are satisfied with the "void *"
34 * and don't go any farther, but some of them balked. In particular, when compiling with
35 * "freeglut" and then trying to run using the GLUT ".so" library, some of them would give
36 * an error. So we are having to create this file to define the variables as pointers
37 * to an unusual structure to match GLUT.
40 #include "freeglut_internal.h"
42 #if TARGET_HOST_UNIX_X11
44 #define G_LOG_DOMAIN "freeglut-glutfont-definitions"
46 struct freeglutStrokeFont
55 struct freeglutBitmapFont
64 struct freeglutStrokeFont glutStrokeRoman ;
65 struct freeglutStrokeFont glutStrokeMonoRoman ;
67 struct freeglutBitmapFont glutBitmap9By15 ;
68 struct freeglutBitmapFont glutBitmap8By13 ;
69 struct freeglutBitmapFont glutBitmapTimesRoman10 ;
70 struct freeglutBitmapFont glutBitmapTimesRoman24 ;
71 struct freeglutBitmapFont glutBitmapHelvetica10 ;
72 struct freeglutBitmapFont glutBitmapHelvetica12 ;
73 struct freeglutBitmapFont glutBitmapHelvetica18 ;