You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/kdvi/fontEncodingPool.cpp

38 lines
602 B

// fontEncodingPool.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
//
// (C) 2003 Stefan Kebekus
// Distributed under the GPL
#include <config.h>
#ifdef HAVE_FREETYPE
#include "fontEncodingPool.h"
fontEncodingPool::fontEncodingPool()
{
}
fontEncoding *fontEncodingPool::findByName(const TQString &name)
{
fontEncoding *ptr = dictionary.tqfind( 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