/usr/include/ossim/font/ossimFontFactoryRegistry.h is in libossim-dev 1.7.21-3ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
// Description:
//
//********************************************************************
// $Id: ossimFontFactoryRegistry.h 13508 2008-08-27 15:51:38Z gpotts $
#ifndef ossimFontFactoryRegistry_HEADER
#define ossimFontFactoryRegistry_HEADER
#include <vector>
#include <ossim/base/ossimFontInformation.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/font/ossimFontFactoryBase.h>
class OSSIMDLLEXPORT ossimFontFactoryRegistry
{
public:
static ossimFontFactoryRegistry* instance();
bool registerFactory(ossimFontFactoryBase* factory);
void unregisterFactory(ossimFontFactoryBase* factory);
bool findFactory(ossimFontFactoryBase* factory)const;
ossimFont* createFont(const ossimFontInformation& information)const;
ossimFont* createFont(const ossimFilename& file)const;
/*!
* Returns all font information.
*/
void getFontInformation(std::vector<ossimFontInformation>& informationList)const;
/*!
* Matches the entire string. Does a case insensitive match.
*/
void getFontInformationFamilyName(std::vector<ossimFontInformation>& informationList,
const ossimString& familyName)const;
/*!
* Matches the sub-string. Does a case insensitive match.
*/
void getFontInformationContainingFamilyName(std::vector<ossimFontInformation>& informationList,
const ossimString& familyName)const;
/*!
* This font should not be deleted. It returns the default font. If you
* want to make a copy then just call the dup method on
* font.
*/
ossimFont* getDefaultFont()const;
protected:
mutable ossimFont* theDefaultFont;
//static ossimFontFactoryRegistry* theInstance;
std::vector<ossimFontFactoryBase*> theFactoryList;
ossimFontFactoryRegistry();
private:
ossimFontFactoryRegistry(const ossimFontFactoryRegistry& rhs);
void operator =(const ossimFontFactoryRegistry& rhs);
};
#endif
|