Filewatcher File Search File Search
Catalog
Content Search
» » » » » kdegraphics-4.6.0.tar.bz2 » Content »
pkg://kdegraphics-4.6.0.tar.bz2:5101406/kdegraphics-4.6.0/okular/generators/dvi/  info  downloads

fontEncodingPool.cpp

// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
// fontEncodingPool.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environment
//
// (C) 2003 Stefan Kebekus
// Distributed under the GPL

#include <config.h>

#ifdef HAVE_FREETYPE

#include "fontEncodingPool.h"


fontEncodingPool::fontEncodingPool()
{}

fontEncodingPool::~fontEncodingPool()
{
  qDeleteAll(dictionary);
}

fontEncoding *fontEncodingPool::findByName(const QString &name)
{
  fontEncoding *ptr = dictionary.value( name );

  if (ptr == 0) {
    ptr = new fontEncoding(name);
    if (ptr->isValid())
      dictionary.insert(name, ptr );
    else {
      delete ptr;
      ptr = 0;
    }
  }

  return ptr;
}

#endif // HAVE_FREETYPE
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com