• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

COPYINGH A D26-Mar-199724.7 KiB482399

FTBitmapFont.CH A D13-Mar-19993 KiB14180

FTBitmapFont.hH A D13-Mar-19991.7 KiB6831

FTEngine.CH A D10-Nov-20012 KiB8742

FTEngine.hH A D13-Mar-19991.4 KiB5723

FTFace.CH A D10-Nov-20013.4 KiB14591

FTFace.hH A D13-Mar-19991.7 KiB7739

FTFont.CH A D13-Mar-19993.4 KiB178105

FTFont.hH A D13-Mar-19991.6 KiB7232

FTGlyph.CH A D10-Nov-20013.3 KiB15588

FTGlyph.hH A D13-Mar-19991.8 KiB7939

FTGlyphBitmap.CH A D10-Nov-20012.9 KiB13177

FTGlyphBitmap.hH A D13-Mar-19991.9 KiB9654

FTGlyphPixmap.CH A D10-Nov-20014.7 KiB211139

FTGlyphPixmap.hH A D13-Mar-19992.1 KiB10056

FTGlyphVectorizer.CH A D10-Nov-200116.3 KiB662503

FTGlyphVectorizer.hH A D03-May-20223 KiB14387

FTInstance.CH A D10-Nov-20013.3 KiB13977

FTInstance.hH A D13-Mar-19991.6 KiB6831

FTPixmapFont.CH A D13-Mar-19993 KiB14080

FTPixmapFont.hH A D13-Mar-19991.7 KiB6831

GLTTBitmapFont.CH A D21-Nov-19995.3 KiB218135

GLTTBitmapFont.hH A D10-Oct-19991.6 KiB6730

GLTTFont.CH A D21-Nov-19995.3 KiB278163

GLTTFont.hH A D13-Mar-19991.8 KiB8038

GLTTGlyphPolygonizer.CH A D10-Nov-20016.4 KiB275176

GLTTGlyphPolygonizer.hH A D13-Mar-19991.7 KiB6529

GLTTGlyphPolygonizerHandler.CH A D21-Nov-19992.3 KiB8842

GLTTGlyphPolygonizerHandler.hH A D03-May-20221.7 KiB5824

GLTTGlyphTriangulator.CH A D21-Nov-19993.3 KiB13981

GLTTGlyphTriangulator.hH A D13-Mar-19992 KiB7132

GLTTOutlineFont.CH A D21-Nov-19995.4 KiB275165

GLTTOutlineFont.hH A D13-Mar-19991.8 KiB7736

GLTTPixmapFont.CH A D21-Nov-19996.4 KiB254160

GLTTPixmapFont.hH A D10-Oct-19991.6 KiB6730

GLTTboolean.hH A D13-Mar-1999961 296

GLTTminmax.hH A D13-Mar-19991.6 KiB6225

INSTALLH A D20-Apr-1998126 178

Makefile.amH A D30-Nov-2001925 5447

Makefile.inH A D30-Nov-200113.1 KiB463356

NEWSH A D19-Dec-19994.2 KiB121106

READMEH A D22-Aug-19995.2 KiB156115

TODOH A D24-May-1998267 137

acinclude.m4H A D10-Nov-200120.6 KiB782671

aclocal.m4H A D30-Nov-2001130.1 KiB4,1863,704

config.guessH A D10-Oct-199930.5 KiB1,088953

config.h.inH A D10-Nov-20011.5 KiB6241

config.subH A D10-Oct-199923.6 KiB1,2161,104

configureH A D30-Nov-2001318.4 KiB10,7628,825

configure.inH A D30-Nov-20012 KiB8363

gltt.specH A D05-Dec-20012.2 KiB9269

gltt.spec.inH A D10-Nov-20012.2 KiB9270

install-shH A D13-Apr-19974.7 KiB239152

ltconfigH A D10-Oct-199992 KiB3,0182,323

ltmain.shH A D30-Oct-2001136.5 KiB4,9994,001

missingH A D30-Oct-20016.3 KiB199159

mkinstalldirsH A D13-Apr-1997730 3721

stamp-h.inH A D30-Nov-200110 21

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