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. *
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "freetype/freetype.h"
|
|
|
|
|
2003-03-03 23:07:01 +00:00
|
|
|
#include "layout/LEFontInstance.h"
|
2001-11-07 23:48:17 +00:00
|
|
|
#include "GnomeFontInstance.h"
|
|
|
|
|
|
|
|
#include "GUISupport.h"
|
|
|
|
#include "FontMap.h"
|
|
|
|
#include "GnomeFontMap.h"
|
|
|
|
|
2003-03-03 23:07:01 +00:00
|
|
|
GnomeFontMap::GnomeFontMap(TT_Engine engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status)
|
2001-11-07 23:48:17 +00:00
|
|
|
: FontMap(fileName, pointSize, guiSupport, status), fEngine(engine)
|
|
|
|
{
|
|
|
|
// nothing to do?
|
|
|
|
}
|
|
|
|
|
|
|
|
GnomeFontMap::~GnomeFontMap()
|
|
|
|
{
|
|
|
|
// anything?
|
|
|
|
}
|
|
|
|
|
2003-03-03 23:07:01 +00:00
|
|
|
const LEFontInstance *GnomeFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status)
|
2001-11-07 23:48:17 +00:00
|
|
|
{
|
|
|
|
return new GnomeFontInstance(fEngine, fontName, pointSize, status);
|
|
|
|
}
|