sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-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 |
/**
|
sl@0
|
20 |
@file
|
sl@0
|
21 |
@test
|
sl@0
|
22 |
@internalComponent Internal Symbian test code
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
|
sl@0
|
25 |
#ifndef __T_FONTMETRICS_H__
|
sl@0
|
26 |
#define __T_FONTMETRICS_H__
|
sl@0
|
27 |
|
sl@0
|
28 |
#include <fntstore.h>
|
sl@0
|
29 |
#include "TGraphicsHarness.h"
|
sl@0
|
30 |
|
sl@0
|
31 |
_LIT(KTFontMetricsStep, "TFontMetrics");
|
sl@0
|
32 |
|
sl@0
|
33 |
class CTFontMetricsStep : public CTGraphicsStep
|
sl@0
|
34 |
{
|
sl@0
|
35 |
public:
|
sl@0
|
36 |
CTFontMetricsStep();
|
sl@0
|
37 |
protected:
|
sl@0
|
38 |
// from CTGraphicsStep
|
sl@0
|
39 |
virtual CTGraphicsBase* CreateTestL();
|
sl@0
|
40 |
};
|
sl@0
|
41 |
|
sl@0
|
42 |
class CTFontMetrics : public CTGraphicsBase
|
sl@0
|
43 |
{
|
sl@0
|
44 |
public:
|
sl@0
|
45 |
CTFontMetrics(CTestStep* aStep);
|
sl@0
|
46 |
~CTFontMetrics();
|
sl@0
|
47 |
protected:
|
sl@0
|
48 |
// from CTGraphicsBase
|
sl@0
|
49 |
virtual void RunTestCaseL(TInt aCurTestCase);
|
sl@0
|
50 |
virtual void ConstructL(void);
|
sl@0
|
51 |
private:
|
sl@0
|
52 |
void InstallRasterizerL(void);
|
sl@0
|
53 |
void AddFileL(void);
|
sl@0
|
54 |
TOpenFontSpec GetTOpenFontSpec(void);
|
sl@0
|
55 |
void TLanguage2GlyphSample(void);
|
sl@0
|
56 |
void GetNearestFontToDesignHeightInPixels(void);
|
sl@0
|
57 |
void Verify_GetNearestFontToDesignHeightInPixels(const CFont& aFont, TInt aScript);
|
sl@0
|
58 |
void GetNearestFontToMaxHeightInPixels(void);
|
sl@0
|
59 |
void Verify_GetNearestFontToMaxHeightInPixels(const CFont& aFont, TInt aScript);
|
sl@0
|
60 |
void VerifyTypefaceNameAndID(const CFont& aFont);
|
sl@0
|
61 |
void FontAccessInCTypefaceStore(void);
|
sl@0
|
62 |
void TestINC086513();
|
sl@0
|
63 |
void TestPDEF099034();
|
sl@0
|
64 |
void TestGetNearestFontToMaxHeightInPixels();
|
sl@0
|
65 |
private:
|
sl@0
|
66 |
static const TInt KRequiredHeight;
|
sl@0
|
67 |
private:
|
sl@0
|
68 |
CFontStore* iFontStore;
|
sl@0
|
69 |
RHeap* iHeap;
|
sl@0
|
70 |
};
|
sl@0
|
71 |
|
sl@0
|
72 |
#endif // __T_FONTMETRICS_H__
|