From f77b9dee32c62415f4c92791611e4db1b6d3431f Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 14 Oct 2002 18:25:37 +0000 Subject: XftFontImp fixes --- src/Font.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Font.cc b/src/Font.cc index 627a825..ddc78e3 100644 --- a/src/Font.cc +++ b/src/Font.cc @@ -19,12 +19,16 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Font.cc,v 1.11 2002/10/13 22:27:21 fluxgen Exp $ +//$Id: Font.cc,v 1.12 2002/10/14 18:25:37 fluxgen Exp $ #include "Font.hh" #include "FontImp.hh" +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif // HAVE_CONFIG_H + // for antialias #ifdef USE_XFT #include "XftFontImp.hh" @@ -34,10 +38,6 @@ #include "XFontImp.hh" #include "XmbFontImp.hh" -#ifdef HAVE_CONFIG_H -#include "../config.h" -#endif // HAVE_CONFIG_H - //use gnu extensions #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -82,8 +82,9 @@ Font::Font(const char *name, bool antialias) { // create the right font implementation #ifdef USE_XFT + antialias = true; if (antialias) { - m_fontimp = new XftFontImp(); + m_fontimp = std::auto_ptr(new XftFontImp()); } #endif //USE_XFT // if we didn't create a Xft font then create basic font -- cgit v0.11.2