Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 @internalComponent Internal Symbian test code
25 #ifndef __T_FONTMETRICS_H__
26 #define __T_FONTMETRICS_H__
29 #include "TGraphicsHarness.h"
31 _LIT(KTFontMetricsStep, "TFontMetrics");
33 class CTFontMetricsStep : public CTGraphicsStep
38 // from CTGraphicsStep
39 virtual CTGraphicsBase* CreateTestL();
42 class CTFontMetrics : public CTGraphicsBase
45 CTFontMetrics(CTestStep* aStep);
48 // from CTGraphicsBase
49 virtual void RunTestCaseL(TInt aCurTestCase);
50 virtual void ConstructL(void);
52 void InstallRasterizerL(void);
54 TOpenFontSpec GetTOpenFontSpec(void);
55 void TLanguage2GlyphSample(void);
56 void GetNearestFontToDesignHeightInPixels(void);
57 void Verify_GetNearestFontToDesignHeightInPixels(const CFont& aFont, TInt aScript);
58 void GetNearestFontToMaxHeightInPixels(void);
59 void Verify_GetNearestFontToMaxHeightInPixels(const CFont& aFont, TInt aScript);
60 void VerifyTypefaceNameAndID(const CFont& aFont);
61 void FontAccessInCTypefaceStore(void);
63 void TestPDEF099034();
64 void TestGetNearestFontToMaxHeightInPixels();
66 static const TInt KRequiredHeight;
68 CFontStore* iFontStore;
72 #endif // __T_FONTMETRICS_H__