src/font.cpp

Go to the documentation of this file.
00001 // Copyright (c) 2003 - 2004 Anselm R. Garbe <anselmg at t-online.de>
00002 // See ../LICENSE.txt for license details.
00003 //
00004 // $Id: font.cpp 2 2007-05-16 10:38:27Z eg $
00005 
00006 #include "font.h"
00007 
00008 #include "xcore.h"
00009 #include "xfont.h"
00010 #include "xftfont.h"
00011 
00012 WFont::WFont(Monitor *monitor) {
00013     monitor_ = monitor;
00014 }
00015 
00016 WFont::~WFont() {
00017 }
00018 
00019 WFont *WFont::load(Monitor *monitor, string name) {
00020 
00021     WFont *font = XFont::load(monitor, name);
00022 #ifdef XFT_SUPPORT
00023     if (!font) {
00024         // fallback if XFT_SUPPORT enabled
00025         font = WXftFont::load(monitor, name);
00026     }
00027 #endif
00028     return font;
00029 }
00030 
00031 
00032 WFont::Type WFont::type() const{
00033     return type_;
00034 }

Generated on Thu May 24 15:19:32 2007 for ncwm by  doxygen 1.5.1