|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| COPYING | H A D | 26-Mar-1997 | 24.7 KiB | 482 | 399 |
| FTBitmapFont.C | H A D | 13-Mar-1999 | 3 KiB | 141 | 80 |
| FTBitmapFont.h | H A D | 13-Mar-1999 | 1.7 KiB | 68 | 31 |
| FTEngine.C | H A D | 10-Nov-2001 | 2 KiB | 87 | 42 |
| FTEngine.h | H A D | 13-Mar-1999 | 1.4 KiB | 57 | 23 |
| FTFace.C | H A D | 10-Nov-2001 | 3.4 KiB | 145 | 91 |
| FTFace.h | H A D | 13-Mar-1999 | 1.7 KiB | 77 | 39 |
| FTFont.C | H A D | 13-Mar-1999 | 3.4 KiB | 178 | 105 |
| FTFont.h | H A D | 13-Mar-1999 | 1.6 KiB | 72 | 32 |
| FTGlyph.C | H A D | 10-Nov-2001 | 3.3 KiB | 155 | 88 |
| FTGlyph.h | H A D | 13-Mar-1999 | 1.8 KiB | 79 | 39 |
| FTGlyphBitmap.C | H A D | 10-Nov-2001 | 2.9 KiB | 131 | 77 |
| FTGlyphBitmap.h | H A D | 13-Mar-1999 | 1.9 KiB | 96 | 54 |
| FTGlyphPixmap.C | H A D | 10-Nov-2001 | 4.7 KiB | 211 | 139 |
| FTGlyphPixmap.h | H A D | 13-Mar-1999 | 2.1 KiB | 100 | 56 |
| FTGlyphVectorizer.C | H A D | 10-Nov-2001 | 16.3 KiB | 662 | 503 |
| FTGlyphVectorizer.h | H A D | 03-May-2022 | 3 KiB | 143 | 87 |
| FTInstance.C | H A D | 10-Nov-2001 | 3.3 KiB | 139 | 77 |
| FTInstance.h | H A D | 13-Mar-1999 | 1.6 KiB | 68 | 31 |
| FTPixmapFont.C | H A D | 13-Mar-1999 | 3 KiB | 140 | 80 |
| FTPixmapFont.h | H A D | 13-Mar-1999 | 1.7 KiB | 68 | 31 |
| GLTTBitmapFont.C | H A D | 21-Nov-1999 | 5.3 KiB | 218 | 135 |
| GLTTBitmapFont.h | H A D | 10-Oct-1999 | 1.6 KiB | 67 | 30 |
| GLTTFont.C | H A D | 21-Nov-1999 | 5.3 KiB | 278 | 163 |
| GLTTFont.h | H A D | 13-Mar-1999 | 1.8 KiB | 80 | 38 |
| GLTTGlyphPolygonizer.C | H A D | 10-Nov-2001 | 6.4 KiB | 275 | 176 |
| GLTTGlyphPolygonizer.h | H A D | 13-Mar-1999 | 1.7 KiB | 65 | 29 |
| GLTTGlyphPolygonizerHandler.C | H A D | 21-Nov-1999 | 2.3 KiB | 88 | 42 |
| GLTTGlyphPolygonizerHandler.h | H A D | 03-May-2022 | 1.7 KiB | 58 | 24 |
| GLTTGlyphTriangulator.C | H A D | 21-Nov-1999 | 3.3 KiB | 139 | 81 |
| GLTTGlyphTriangulator.h | H A D | 13-Mar-1999 | 2 KiB | 71 | 32 |
| GLTTOutlineFont.C | H A D | 21-Nov-1999 | 5.4 KiB | 275 | 165 |
| GLTTOutlineFont.h | H A D | 13-Mar-1999 | 1.8 KiB | 77 | 36 |
| GLTTPixmapFont.C | H A D | 21-Nov-1999 | 6.4 KiB | 254 | 160 |
| GLTTPixmapFont.h | H A D | 10-Oct-1999 | 1.6 KiB | 67 | 30 |
| GLTTboolean.h | H A D | 13-Mar-1999 | 961 | 29 | 6 |
| GLTTminmax.h | H A D | 13-Mar-1999 | 1.6 KiB | 62 | 25 |
| INSTALL | H A D | 20-Apr-1998 | 126 | 17 | 8 |
| Makefile.am | H A D | 30-Nov-2001 | 925 | 54 | 47 |
| Makefile.in | H A D | 30-Nov-2001 | 13.1 KiB | 463 | 356 |
| NEWS | H A D | 19-Dec-1999 | 4.2 KiB | 121 | 106 |
| README | H A D | 22-Aug-1999 | 5.2 KiB | 156 | 115 |
| TODO | H A D | 24-May-1998 | 267 | 13 | 7 |
| acinclude.m4 | H A D | 10-Nov-2001 | 20.6 KiB | 782 | 671 |
| aclocal.m4 | H A D | 30-Nov-2001 | 130.1 KiB | 4,186 | 3,704 |
| config.guess | H A D | 10-Oct-1999 | 30.5 KiB | 1,088 | 953 |
| config.h.in | H A D | 10-Nov-2001 | 1.5 KiB | 62 | 41 |
| config.sub | H A D | 10-Oct-1999 | 23.6 KiB | 1,216 | 1,104 |
| configure | H A D | 30-Nov-2001 | 318.4 KiB | 10,762 | 8,825 |
| configure.in | H A D | 30-Nov-2001 | 2 KiB | 83 | 63 |
| gltt.spec | H A D | 05-Dec-2001 | 2.2 KiB | 92 | 69 |
| gltt.spec.in | H A D | 10-Nov-2001 | 2.2 KiB | 92 | 70 |
| install-sh | H A D | 13-Apr-1997 | 4.7 KiB | 239 | 152 |
| ltconfig | H A D | 10-Oct-1999 | 92 KiB | 3,018 | 2,323 |
| ltmain.sh | H A D | 30-Oct-2001 | 136.5 KiB | 4,999 | 4,001 |
| missing | H A D | 30-Oct-2001 | 6.3 KiB | 199 | 159 |
| mkinstalldirs | H A D | 13-Apr-1997 | 730 | 37 | 21 |
| stamp-h.in | H A D | 30-Nov-2001 | 10 | 2 | 1 |
README
1
2 gltt
3
4 Copyright (C) 1998-1999 Stephane Rehel
5
6Last modified: March 5 1998
7
8----------------------------------------------------------------------------
9Official Site
10----------------------------------------------------------------------------
11
12 http://geoxel.org/gltt
13
14----------------------------------------------------------------------------
15Author
16----------------------------------------------------------------------------
17
18 Stephane Rehel, rehel@geoxel.org
19
20----------------------------------------------------------------------------
21What it does
22----------------------------------------------------------------------------
23
24 gltt is a library that allows you to read and draw TrueType fonts in
25 any OpenGL application.
26 It supports bitmapped and anti-aliased font drawing as well as
27 vectorized and polygonized drawing.
28
29----------------------------------------------------------------------------
30What you need
31----------------------------------------------------------------------------
32
33 You need the OpenGL library.
34 For more information about OpenGL, check out http://www.opengl.org
35 This library has been developed under Linux with Mesa.
36 (Mesa site: http://www.mesa3d.org)
37
38 You also need the FreeType library. The official site of FreeType
39 is: http://www.freetype.org
40
41----------------------------------------------------------------------------
42How to install it
43----------------------------------------------------------------------------
44
45 Untar the distribution file:
46
47 tar xfvz gltt-1.1.tar.gz
48
49 This will create the gltt-1.1/ directory.
50
51 Untar the freetype distribution, compile and install it.
52
53 Edit the FREETYPE variable in gltt-1.1/Makefile for specifying
54 the FreeType installation prefix. (default is /usr/local)
55
56 Run make:
57
58 make
59
60 This will build libgltt.a and the demos applications.
61 The demos applications need glut-3.6 and one TrueType sample font.
62
63----------------------------------------------------------------------------
64How to use it
65----------------------------------------------------------------------------
66
67 To create a bitmapped font:
68
69 FTFace face;
70 if( ! face.open("arial.ttf") )
71 fatal("unable to open ttf file");
72 GLTTBitmapFont font(&face);
73 int point_size= 20;
74 if( ! font.create(point_size) )
75 fatal("unable to create bitmapped font");
76 // ... OpenGL initialization commands...
77 glColor3f(1,1,1);
78 font.print( x, y, "hello bitmaped world" );
79
80 To create an anti-aliased pixmapped font:
81
82 FTFace face;
83 if( ! face.open("arial.ttf") )
84 fatal("unable to open ttf file");
85 GLTTPixmapFont font(&face);
86 int point_size= 20;
87 if( ! font.create(point_size) )
88 fatal("unable to create pixmapped font");
89 // ... OpenGL initialization commands...
90 glColor3f(1,1,1);
91 font.output( x, y, "hello anti-aliased world" );
92
93 To create an outline font (vectorized contours only):
94
95 FTFace face;
96 if( ! face.open("arial.ttf") )
97 fatal("unable to open ttf file");
98 GLTTOutlineFont font(&face);
99 int point_size= 20;
100 if( ! font.create(point_size) )
101 fatal("unable to create outline font");
102 // ... OpenGL initialization commands...
103 glColor3f(1,1,1);
104 font.print( x, y, "hello outlined world" );
105
106 To create an plain font (plain polygonized font):
107
108 FTFace face;
109 if( ! face.open("arial.ttf") )
110 fatal("unable to open ttf file");
111 GLTTFont font(&face);
112 int point_size= 20;
113 if( ! font.create(point_size) )
114 fatal("unable to create outline font");
115 // ... OpenGL initialization commands...
116 glColor3f(1,1,1);
117 font.print( x, y, "hello plain world" );
118
119----------------------------------------------------------------------------
120How it works
121----------------------------------------------------------------------------
122
123 Read the FreeType documentation files for more information about
124 the vocabulary used. (as glyph, contours, etc.)
125
126 gltt is written in C++.
127 The FT* classes don't depend on OpenGL but simply on FreeType.
128 The GLTT* classes do depend on OpenGL.
129
130 The GLTTBitmapFont, GLTTOutlineFont and GLTTFont classes act as
131 font servers: they internally render only requested glyphs and
132 cache them.
133 BTW, the requested glyphs are put into a GL display list by
134 GLTTOutlineFont and GLTTFont classes.
135
136 You have access to the outline contour vectorization, as well as
137 its tesselation. You have access to the trangles set generated
138 by the glyph tesselation. (see the source code and the demo)
139
140 No extrusion ability is provided since this feature could be
141 restrictive: it is not the goal of this library. The author lets
142 the user have imagination for nice extrusions!
143
144----------------------------------------------------------------------------
145Bugs.
146----------------------------------------------------------------------------
147
148 This piece of code has been written in less than one week.
149 This library is distributed under the terms of the GNU Library
150 General Public License, see the LICENSE file for details.
151
152 Enjoy!
153 /kepler
154
155----------------------------------------------------------------------------
156