|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __T_OPENFONTTYPES_H__ |
|
20 #define __T_OPENFONTTYPES_H__ |
|
21 |
|
22 #include "TGraphicsHarness.h" |
|
23 |
|
24 _LIT(KTOpenFontTypesStep, "TOpenFontTypes"); |
|
25 |
|
26 class CTOpenFontTypesStep : public CTGraphicsStep |
|
27 { |
|
28 public: |
|
29 CTOpenFontTypesStep(); |
|
30 protected: |
|
31 // from CTGraphicsStep |
|
32 virtual CTGraphicsBase* CreateTestL(); |
|
33 }; |
|
34 |
|
35 class CTOpenFontTypes : public CTGraphicsBase |
|
36 { |
|
37 public: |
|
38 CTOpenFontTypes(CTestStep* aStep); |
|
39 protected: |
|
40 // from CTGraphicsBase |
|
41 virtual void RunTestCaseL(TInt aCurTestCase); |
|
42 private: |
|
43 static const TInt KOneIn16Dot16FixedPointFormat = 65536; |
|
44 void TestBitmapType(TOpenFontSpec& aOpenFontSpec); |
|
45 void TestHeight(TOpenFontSpec& aOpenFontSpec); |
|
46 void TestWidthFactor(TOpenFontSpec& aOpenFontSpec); |
|
47 void TestSlantFactor(TOpenFontSpec& aOpenFontSpec); |
|
48 void TestFontEffect(TOpenFontSpec& aOpenFontSpec); |
|
49 void VerifyFontEffect(TOpenFontSpec& aOpenFontSpec); |
|
50 void TestCompatibilityWithTFontSpec(); |
|
51 void TestOperatorEqualEqual(); |
|
52 void TestCompensateForAspectRatio(); |
|
53 void VerifyCompensateForAspectRatio( |
|
54 const TOpenFontSpec& aOpenFontSpec, TInt aWidth, TInt aHeight, |
|
55 TInt32 aWidthFactorB4Compensation, TInt32 aSlantFactorB4Compensation); |
|
56 }; |
|
57 |
|
58 #endif |