1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/fbs/fontandbitmapserver/tfbs/tfbsglyphdataoutlineshadow.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef TFBSGLYPHDATAOUTLINESHADOW_H
1.20 +#define TFBSGLYPHDATAOUTLINESHADOW_H
1.21 +
1.22 +#include "test/TGraphicsHarness.h"
1.23 +
1.24 +
1.25 +/**
1.26 +Enumeration for the attributes to be set in fontspec and gc.
1.27 +See CTFbsGlyphDataOutlineAndShadow::ConstructL()
1.28 +*/
1.29 +enum TFontEffectsFlags
1.30 + {
1.31 + EDropShadowOn = 0x1,
1.32 + EOutlineOn = 0x2,
1.33 + };
1.34 +
1.35 +/**
1.36 +Test class which checks that glyph data extensions
1.37 +RFbsGlyphDataIterator processes and returns correct error if outline-and-shadow
1.38 +font is supplied.
1.39 +
1.40 +This test must be run with a rasterizer which supports EFourColourBlendGlyphBitmap (e.g. iType)
1.41 +otherwise the test will fail.
1.42 +
1.43 +Negative test
1.44 +*/
1.45 +class CTFbsGlyphDataOutlineAndShadow : public CTGraphicsBase
1.46 + {
1.47 +public:
1.48 + CTFbsGlyphDataOutlineAndShadow(CTestStep* aStep);
1.49 + ~CTFbsGlyphDataOutlineAndShadow();
1.50 +protected:
1.51 +//from CTGraphicsBase
1.52 + virtual void RunTestCaseL(TInt aCurTestCase);
1.53 + void ConstructL();
1.54 +
1.55 +private:
1.56 + CFbsTypefaceStore* iTs;
1.57 + CFbsFont* iFont;
1.58 + };
1.59 +
1.60 +class CTFbsGlyphDataOutlineAndShadowStep : public CTGraphicsStep
1.61 + {
1.62 +public:
1.63 + CTFbsGlyphDataOutlineAndShadowStep();
1.64 +protected:
1.65 + //from CTGraphicsStep
1.66 + virtual CTGraphicsBase* CreateTestL();
1.67 + };
1.68 +
1.69 +_LIT(KTFbsGlyphDataOutlineAndShadowStep,"TFbsGlyphDataOutlineAndShadow");
1.70 +
1.71 +
1.72 +#endif /* TFBSGLYPHDATAOUTLINESHADOW_H */