2001-11-07 23:48:17 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
* Copyright (C) 1998-2001, International Business Machines Corporation and *
|
|
|
|
* others. All Rights Reserved. *
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GNOMEFONTMAP_H
|
|
|
|
#define __GNOMEFONTMAP_H
|
|
|
|
|
|
|
|
#include "freetype/freetype.h"
|
|
|
|
|
|
|
|
#include "unicode/uscript.h"
|
|
|
|
|
|
|
|
#include "layout/LETypes.h"
|
2003-03-03 23:07:01 +00:00
|
|
|
#include "layout/LEFontInstance.h"
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
#include "GUISupport.h"
|
|
|
|
#include "FontMap.h"
|
|
|
|
|
|
|
|
#define BUFFER_SIZE 128
|
|
|
|
|
|
|
|
class GnomeFontMap : public FontMap
|
|
|
|
{
|
|
|
|
public:
|
2003-03-03 23:07:01 +00:00
|
|
|
GnomeFontMap(TT_Engine engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
virtual ~GnomeFontMap();
|
|
|
|
|
|
|
|
protected:
|
2003-03-03 23:07:01 +00:00
|
|
|
virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
TT_Engine fEngine;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|