From 47d455dd55be855e4cc691c32f687f723d9247ee Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdvi/fontEncodingPool.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 kdvi/fontEncodingPool.cpp (limited to 'kdvi/fontEncodingPool.cpp') diff --git a/kdvi/fontEncodingPool.cpp b/kdvi/fontEncodingPool.cpp new file mode 100644 index 00000000..0100ee90 --- /dev/null +++ b/kdvi/fontEncodingPool.cpp @@ -0,0 +1,37 @@ +// fontEncodingPool.cpp +// +// Part of KDVI - A DVI previewer for the KDE desktop environemt +// +// (C) 2003 Stefan Kebekus +// Distributed under the GPL + +#include +#ifdef HAVE_FREETYPE + + +#include "fontEncodingPool.h" + +fontEncodingPool::fontEncodingPool() +{ +} + + +fontEncoding *fontEncodingPool::findByName(const QString &name) +{ + fontEncoding *ptr = dictionary.find( 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 -- cgit v1.2.1