1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/referencefonts/utils/bdfharn.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,65 @@
1.4 +/*
1.5 +* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef BDFHARN_H
1.23 +#define BDFHARN_H
1.24 +
1.25 +#include <e32std.h>
1.26 +#include <e32test.h>
1.27 +#include <bitstd.h>
1.28 +#include <bitdev.h>
1.29 +
1.30 +class CBDFHarness : public CBase
1.31 +/**
1.32 +@internalComponent
1.33 +*/
1.34 + {
1.35 + public:
1.36 + static CBDFHarness* NewL(const TDesC &aTitle, const TDesC &aHeading);
1.37 + ~CBDFHarness();
1.38 + void MakeBDFFontL();
1.39 +
1.40 + void DecodeBitmap(TInt aWidth, TInt aPaddedWidth, TInt aHeight, const TUint8* aCodedBitmap, TUint8* aBitmap);
1.41 + TInt ReadBit();
1.42 + TInt ReadBitBack();
1.43 + void OutHex(TInt aOneHexDigit);
1.44 +
1.45 + private:
1.46 + CBDFHarness(const TDesC &aTitle, const TDesC &aHeading);
1.47 + void ConstructL();
1.48 +
1.49 + RTest iTest;
1.50 + RFbsSession* iFbs;
1.51 + CFbsBitGc* iGc;
1.52 + CFbsScreenDevice* iDev;
1.53 + CFbsFont* iStandardFont;
1.54 + TInt iPPEM;
1.55 + static TPtrC iFacename;
1.56 + static TInt iPixelSize;
1.57 + static TPtrC iFilename;
1.58 + static TPtrC iUid;
1.59 + static TFontPosture iPosture;
1.60 + static TFontStrokeWeight iStrokeWeight;
1.61 + static TFontPrintPosition iPrintPosition;
1.62 +
1.63 + public:
1.64 + const TUint8* iBitMap;
1.65 + TInt iBitNum;
1.66 + };
1.67 +
1.68 +#endif // !BDFHARN_H