sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef T_LINKEDFONTSCOMPARISON_H_
|
sl@0
|
20 |
#define T_LINKEDFONTSCOMPARISON_H_
|
sl@0
|
21 |
|
sl@0
|
22 |
#include "TGraphicsHarness.h"
|
sl@0
|
23 |
#include "thashreferenceimages.h"
|
sl@0
|
24 |
|
sl@0
|
25 |
class CTLinkedFontsComparisonStep : public CTGraphicsStep
|
sl@0
|
26 |
{
|
sl@0
|
27 |
public:
|
sl@0
|
28 |
CTLinkedFontsComparisonStep();
|
sl@0
|
29 |
protected:
|
sl@0
|
30 |
// From CTGraphicsStep
|
sl@0
|
31 |
virtual CTGraphicsBase* CreateTestL();
|
sl@0
|
32 |
};
|
sl@0
|
33 |
|
sl@0
|
34 |
_LIT(KTLinkedFontsComparisonStep, "TLinkedFontsComparison");
|
sl@0
|
35 |
|
sl@0
|
36 |
class CTLinkedFontsComparison : public CTGraphicsBase
|
sl@0
|
37 |
{
|
sl@0
|
38 |
public:
|
sl@0
|
39 |
CTLinkedFontsComparison(CTestStep* aStep);
|
sl@0
|
40 |
~CTLinkedFontsComparison();
|
sl@0
|
41 |
|
sl@0
|
42 |
protected:
|
sl@0
|
43 |
virtual void RunTestCaseL(TInt aCurTestCase);
|
sl@0
|
44 |
virtual void ConstructL();
|
sl@0
|
45 |
private:
|
sl@0
|
46 |
TBool CheckMonoTypeInstalledL();
|
sl@0
|
47 |
void CreateBitmapDeviceL(TDisplayMode aMode);
|
sl@0
|
48 |
void RegisterLinkedTypefacesL();
|
sl@0
|
49 |
void TestDrawTextUsingLinkedFontsL();
|
sl@0
|
50 |
void FreeScreenDevice();
|
sl@0
|
51 |
void DoTestDrawingOutputL(const TDesC& aHashId, const TPtrC& aFont, const TDesC& aOutputString,
|
sl@0
|
52 |
TPoint aPosition, TInt size, TUint32 attributes);
|
sl@0
|
53 |
void PrepareTestEnvironment(TFontSpec &aFontSpec, const TPtrC& aFont, TInt aSize, TUint32 aAttributes,
|
sl@0
|
54 |
TBool aSetEffects = ETrue, TBool aSetColors = EFalse);
|
sl@0
|
55 |
HBufC* GenerateTestDescriptionLC(TInt aSize,TUint32 aAttributes, const TPtrC &aTypefaceName, const TDesC &aTestDescription);
|
sl@0
|
56 |
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
CFbsBitGc* iGc;
|
sl@0
|
59 |
CFbsBitmapDevice* iBitmapDevice;
|
sl@0
|
60 |
RFbsSession* iFbs;
|
sl@0
|
61 |
CFbsBitmap* iBitmap;
|
sl@0
|
62 |
CTestStep* iStep;
|
sl@0
|
63 |
CTHashReferenceImages *iHashUtil;
|
sl@0
|
64 |
};
|
sl@0
|
65 |
|
sl@0
|
66 |
#endif /*T_LINKEDFONTS2_H_*/
|