blob: 59b38167de91847264ad4f5bee2fcd9632b8824a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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.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
|