2001-11-07 23:48:17 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
2003-06-03 20:58:22 +00:00
|
|
|
* Copyright (C) 1998-2003, International Business Machines Corporation and *
|
2001-11-07 23:48:17 +00:00
|
|
|
* others. All Rights Reserved. *
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GDIFONTMAP_H
|
|
|
|
#define __GDIFONTMAP_H
|
|
|
|
|
|
|
|
#include <windows.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 "FontMap.h"
|
|
|
|
#include "GUISupport.h"
|
2002-12-05 22:50:29 +00:00
|
|
|
#include "GDIFontInstance.h"
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
#define BUFFER_SIZE 128
|
|
|
|
|
|
|
|
class GDIFontMap : public FontMap
|
|
|
|
{
|
|
|
|
public:
|
2003-03-03 23:07:01 +00:00
|
|
|
GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
virtual ~GDIFontMap();
|
|
|
|
|
|
|
|
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:
|
2002-12-05 22:50:29 +00:00
|
|
|
GDISurface *fSurface;
|
2001-11-07 23:48:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|