|
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef TFBSGLYPHDATAOUTLINESHADOW_H |
|
17 #define TFBSGLYPHDATAOUTLINESHADOW_H |
|
18 |
|
19 #include "test/TGraphicsHarness.h" |
|
20 |
|
21 |
|
22 /** |
|
23 Enumeration for the attributes to be set in fontspec and gc. |
|
24 See CTFbsGlyphDataOutlineAndShadow::ConstructL() |
|
25 */ |
|
26 enum TFontEffectsFlags |
|
27 { |
|
28 EDropShadowOn = 0x1, |
|
29 EOutlineOn = 0x2, |
|
30 }; |
|
31 |
|
32 /** |
|
33 Test class which checks that glyph data extensions |
|
34 RFbsGlyphDataIterator processes and returns correct error if outline-and-shadow |
|
35 font is supplied. |
|
36 |
|
37 This test must be run with a rasterizer which supports EFourColourBlendGlyphBitmap (e.g. iType) |
|
38 otherwise the test will fail. |
|
39 |
|
40 Negative test |
|
41 */ |
|
42 class CTFbsGlyphDataOutlineAndShadow : public CTGraphicsBase |
|
43 { |
|
44 public: |
|
45 CTFbsGlyphDataOutlineAndShadow(CTestStep* aStep); |
|
46 ~CTFbsGlyphDataOutlineAndShadow(); |
|
47 protected: |
|
48 //from CTGraphicsBase |
|
49 virtual void RunTestCaseL(TInt aCurTestCase); |
|
50 void ConstructL(); |
|
51 |
|
52 private: |
|
53 CFbsTypefaceStore* iTs; |
|
54 CFbsFont* iFont; |
|
55 }; |
|
56 |
|
57 class CTFbsGlyphDataOutlineAndShadowStep : public CTGraphicsStep |
|
58 { |
|
59 public: |
|
60 CTFbsGlyphDataOutlineAndShadowStep(); |
|
61 protected: |
|
62 //from CTGraphicsStep |
|
63 virtual CTGraphicsBase* CreateTestL(); |
|
64 }; |
|
65 |
|
66 _LIT(KTFbsGlyphDataOutlineAndShadowStep,"TFbsGlyphDataOutlineAndShadow"); |
|
67 |
|
68 |
|
69 #endif /* TFBSGLYPHDATAOUTLINESHADOW_H */ |