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