17 #ifndef _uhardfont_hpp_ 18 #define _uhardfont_hpp_ 1 19 #include <ubit/ubit_features.h> 23 # include <X11/Xlib.h> 37 enum {NO_FONT=0, SYS_FONT, GLX_FONT, FTGL_FONT};
42 void drawString(
const char* str,
int str_len,
float x,
float y)
const;
44 bool isReady() {
return status > NO_FONT;}
45 int getStatus() {
return status;}
46 float getAscent()
const;
47 float getDescent()
const;
48 float getHeight()
const;
49 float getWidth(
char)
const;
50 float getWidth(
const char* str,
int len = -1)
const;
68 friend class UX11context;
72 friend class UGDKContext;
[Impl] Native Font.
Definition: uhardfont.hpp:35
class for drawing on widgets.
Definition: ugraph.hpp:44
Display Context.
Definition: udisp.hpp:44
[impl] Internal representation for fonts.
Definition: ufontImpl.hpp:24
Definition: uhardfont.hpp:31