Update contrib.
2 * Copyright (c) 2008-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.
19 #ifndef T_LINKEDFONTSCOMPARISON_H_
20 #define T_LINKEDFONTSCOMPARISON_H_
22 #include "TGraphicsHarness.h"
23 #include "thashreferenceimages.h"
25 class CTLinkedFontsComparisonStep : public CTGraphicsStep
28 CTLinkedFontsComparisonStep();
30 // From CTGraphicsStep
31 virtual CTGraphicsBase* CreateTestL();
34 _LIT(KTLinkedFontsComparisonStep, "TLinkedFontsComparison");
36 class CTLinkedFontsComparison : public CTGraphicsBase
39 CTLinkedFontsComparison(CTestStep* aStep);
40 ~CTLinkedFontsComparison();
43 virtual void RunTestCaseL(TInt aCurTestCase);
44 virtual void ConstructL();
46 TBool CheckMonoTypeInstalledL();
47 void CreateBitmapDeviceL(TDisplayMode aMode);
48 void RegisterLinkedTypefacesL();
49 void TestDrawTextUsingLinkedFontsL();
50 void FreeScreenDevice();
51 void DoTestDrawingOutputL(const TDesC& aHashId, const TPtrC& aFont, const TDesC& aOutputString,
52 TPoint aPosition, TInt size, TUint32 attributes);
53 void PrepareTestEnvironment(TFontSpec &aFontSpec, const TPtrC& aFont, TInt aSize, TUint32 aAttributes,
54 TBool aSetEffects = ETrue, TBool aSetColors = EFalse);
55 HBufC* GenerateTestDescriptionLC(TInt aSize,TUint32 aAttributes, const TPtrC &aTypefaceName, const TDesC &aTestDescription);
59 CFbsBitmapDevice* iBitmapDevice;
63 CTHashReferenceImages *iHashUtil;
66 #endif /*T_LINKEDFONTS2_H_*/