diff -r 000000000000 -r bde4ae8d615e os/textandloc/fontservices/referencefonts/utils/bdfharn.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/textandloc/fontservices/referencefonts/utils/bdfharn.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef BDFHARN_H +#define BDFHARN_H + +#include +#include +#include +#include + +class CBDFHarness : public CBase +/** +@internalComponent +*/ + { + public: + static CBDFHarness* NewL(const TDesC &aTitle, const TDesC &aHeading); + ~CBDFHarness(); + void MakeBDFFontL(); + + void DecodeBitmap(TInt aWidth, TInt aPaddedWidth, TInt aHeight, const TUint8* aCodedBitmap, TUint8* aBitmap); + TInt ReadBit(); + TInt ReadBitBack(); + void OutHex(TInt aOneHexDigit); + + private: + CBDFHarness(const TDesC &aTitle, const TDesC &aHeading); + void ConstructL(); + + RTest iTest; + RFbsSession* iFbs; + CFbsBitGc* iGc; + CFbsScreenDevice* iDev; + CFbsFont* iStandardFont; + TInt iPPEM; + static TPtrC iFacename; + static TInt iPixelSize; + static TPtrC iFilename; + static TPtrC iUid; + static TFontPosture iPosture; + static TFontStrokeWeight iStrokeWeight; + static TFontPrintPosition iPrintPosition; + + public: + const TUint8* iBitMap; + TInt iBitNum; + }; + +#endif // !BDFHARN_H