2001-11-07 23:48:17 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
2006-12-28 19:15:22 +00:00
|
|
|
* Copyright (C) 1998-2006, International Business Machines Corporation and *
|
2001-11-07 23:48:17 +00:00
|
|
|
* others. All Rights Reserved. *
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GNOMEFONTMAP_H
|
|
|
|
#define __GNOMEFONTMAP_H
|
|
|
|
|
2006-12-28 19:15:22 +00:00
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_FREETYPE_H
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
#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:
|
2006-12-28 19:15:22 +00:00
|
|
|
GnomeFontMap(FT_Library 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:
|
2006-12-28 19:15:22 +00:00
|
|
|
FT_Library fEngine;
|
2001-11-07 23:48:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|