summaryrefslogtreecommitdiff
path: root/otk/font.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 18:42:39 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 18:42:39 +0000
commita52a6d96d701c993896f276e4198003317632aaf (patch)
treebe2f51e6a433d1fdf9a7c8248b343cb3f6297212 /otk/font.hh
parenta36c7543d4eedaa9e10bfd9f4d9b81279b1bb7e6 (diff)
rm the old code including the .pys and the c++ shit
Diffstat (limited to 'otk/font.hh')
-rw-r--r--otk/font.hh60
1 files changed, 0 insertions, 60 deletions
diff --git a/otk/font.hh b/otk/font.hh
deleted file mode 100644
index 53e48c4e..00000000
--- a/otk/font.hh
+++ /dev/null
@@ -1,60 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef __font_hh
-#define __font_hh
-
-#include "ustring.hh"
-#include "truerendercontrol.hh"
-
-extern "C" {
-#include <X11/Xlib.h>
-#define _XFT_NO_COMPAT_ // no Xft 1 API
-#include <X11/Xft/Xft.h>
-}
-
-#include <cassert>
-
-namespace otk {
-
-class Color;
-class Surface;
-
-class Font {
- /*
- * static members
- */
-private:
- static bool _xft_init;
-
- int _screen_num;
-
- std::string _fontstring;
-
- bool _shadow;
- unsigned char _offset;
- unsigned char _tint;
-
- XftFont *_xftfont;
-
- bool createXftFont(void);
-
-public:
- // loads an Xft font
- Font(int screen_num, const std::string &fontstring, bool shadow,
- unsigned char offset, unsigned char tint);
- virtual ~Font();
-
- inline const std::string &fontstring() const { return _fontstring; }
-
- int height() const;
- int maxCharWidth() const;
-
- int measureString(const ustring &string) const;
-
- // The RenderControl classes use the internal data to render the fonts, but
- // noone else needs it, so its private.
- friend class RenderControl;
-};
-
-}
-
-#endif // __font_hh