// EIKFNTUT.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__EIKFNTUT_H__)
#define __EIKFNTUT_H__

#if !defined(__E32STD_H__)
#include <e32std.h>
#endif

#if !defined(__EIKFTFLG_HRH__)
#include <eikftflg.hrh>
#endif

#if !defined(__BADESCA_H__)
#include <badesca.h>
#endif

class CGraphicsDevice;
template <class T> class CArrayFix;

class EikFontUtils
	{
public:
	IMPORT_C static void GetAvailableFontsL(CGraphicsDevice& aDevice,CDesCArray& aFontNameList,
											TInt aFonts=EEikNoSymbolFonts);
	IMPORT_C static TInt TypefaceAttributes(CGraphicsDevice& aDevice,const TDesC& aTypefaceName);
	IMPORT_C static TInt GetAvailableHeightsInTwipsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
													CArrayFix<TInt>& aHeightList);
	IMPORT_C static TInt GetAvailableHeightsInTwipsAndPointsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
															CArrayFix<TInt>& aTwipsList,CDesCArray& aPointsList);
	IMPORT_C static TInt PointsFromTwips(TInt aTwips);
	IMPORT_C static TInt TwipsFromPoints(TInt aPoints);
	IMPORT_C static TInt TwipsFromPoints(const TDesC& aPoints);
	IMPORT_C static TInt IndexOfNearestHeight(CArrayFix<TInt>& aTwipsList,TInt aHeight);
	};

#endif
