source: NonGTP/glut/FLTK/include/fltk/Font.h @ 814

Revision 814, 1.5 KB checked in by gumbau, 18 years ago (diff)

Glut initial import used by Geometry modules

Line 
1//
2// "$Id: Font.h 3203 2004-01-25 06:55:06Z spitzak $"
3//
4// Copyright 2004 by Bill Spitzak and others.
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Library General Public
8// License as published by the Free Software Foundation; either
9// version 2 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14// Library General Public License for more details.
15//
16// You should have received a copy of the GNU Library General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19// USA.
20//
21// Please report all bugs and problems to "fltk-bugs@fltk.org".
22
23#ifndef fltk_Font_h
24#define fltk_Font_h
25
26#include "Style.h"
27
28namespace fltk {
29
30struct FL_API Font {
31  const char* name_;
32  int attributes_;
33  // other fields are added here!
34
35  const char* name() const;
36
37  const char* name(int* p) {*p = attributes_; return name_;}
38
39  Font* plus(int attributes);
40  Font* bold() {return plus(BOLD);}
41  Font* italic() {return plus(ITALIC);}
42
43  int sizes(int*&);
44
45  int encodings(const char**&);
46
47  const char* system_name();
48
49  static const char* current_name();
50
51};
52
53// Find and return every font on the system.
54FL_API int list_fonts(Font**& arrayp);
55
56}
57
58#endif
Note: See TracBrowser for help on using the repository browser.