os/textandloc/fontservices/fontstore/tfs/T_FontMetrics.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/fontstore/tfs/T_FontMetrics.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,72 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +/**
    1.23 + @file
    1.24 + @test
    1.25 + @internalComponent Internal Symbian test code
    1.26 +*/
    1.27 +
    1.28 +#ifndef __T_FONTMETRICS_H__
    1.29 +#define __T_FONTMETRICS_H__
    1.30 +
    1.31 +#include <fntstore.h>
    1.32 +#include "TGraphicsHarness.h"
    1.33 +
    1.34 +_LIT(KTFontMetricsStep, "TFontMetrics");
    1.35 +
    1.36 +class CTFontMetricsStep : public CTGraphicsStep
    1.37 +	{
    1.38 +public:
    1.39 +	CTFontMetricsStep();
    1.40 +protected:	
    1.41 +	// from CTGraphicsStep
    1.42 +	virtual CTGraphicsBase* CreateTestL();
    1.43 +	};
    1.44 +
    1.45 +class CTFontMetrics : public CTGraphicsBase
    1.46 +	{
    1.47 +public:
    1.48 +	CTFontMetrics(CTestStep* aStep);
    1.49 +	~CTFontMetrics();
    1.50 +protected:
    1.51 +	// from CTGraphicsBase
    1.52 +	virtual void RunTestCaseL(TInt aCurTestCase);
    1.53 +	virtual void ConstructL(void);
    1.54 +private:
    1.55 +	void InstallRasterizerL(void);
    1.56 +	void AddFileL(void);
    1.57 +	TOpenFontSpec GetTOpenFontSpec(void);
    1.58 +	void TLanguage2GlyphSample(void);
    1.59 +	void GetNearestFontToDesignHeightInPixels(void);
    1.60 +	void Verify_GetNearestFontToDesignHeightInPixels(const CFont& aFont, TInt aScript);
    1.61 +	void GetNearestFontToMaxHeightInPixels(void);
    1.62 +	void Verify_GetNearestFontToMaxHeightInPixels(const CFont& aFont, TInt aScript);
    1.63 +	void VerifyTypefaceNameAndID(const CFont& aFont);
    1.64 +	void FontAccessInCTypefaceStore(void);
    1.65 +	void TestINC086513();
    1.66 +	void TestPDEF099034();
    1.67 +	void TestGetNearestFontToMaxHeightInPixels();
    1.68 +private:
    1.69 +	static const TInt KRequiredHeight;
    1.70 +private:
    1.71 +	CFontStore*	iFontStore;
    1.72 +	RHeap*		iHeap;
    1.73 +	};
    1.74 +
    1.75 +#endif // __T_FONTMETRICS_H__