os/textandloc/fontservices/referencefonts/utils/bdfharn.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 #ifndef BDFHARN_H
    20 #define BDFHARN_H
    21 
    22 #include <e32std.h>
    23 #include <e32test.h>
    24 #include <bitstd.h>
    25 #include <bitdev.h>
    26 
    27 class CBDFHarness : public CBase
    28 /**
    29 @internalComponent
    30 */
    31 	{
    32 	public:
    33 	static CBDFHarness* NewL(const TDesC &aTitle, const TDesC &aHeading);
    34 	~CBDFHarness();
    35 	void MakeBDFFontL();
    36 
    37 	void DecodeBitmap(TInt aWidth, TInt aPaddedWidth, TInt aHeight, const TUint8* aCodedBitmap, TUint8* aBitmap);
    38 	TInt ReadBit();
    39 	TInt ReadBitBack();
    40 	void OutHex(TInt aOneHexDigit);
    41 
    42 	private:
    43 	CBDFHarness(const TDesC &aTitle, const TDesC &aHeading);
    44 	void ConstructL();
    45 
    46 	RTest iTest;
    47 	RFbsSession* iFbs;
    48 	CFbsBitGc* iGc;
    49 	CFbsScreenDevice* iDev;
    50 	CFbsFont* iStandardFont;
    51 	TInt iPPEM;
    52 	static TPtrC iFacename;
    53 	static TInt  iPixelSize;
    54 	static TPtrC iFilename;
    55 	static TPtrC iUid;
    56 	static TFontPosture iPosture;
    57 	static TFontStrokeWeight iStrokeWeight;
    58 	static TFontPrintPosition iPrintPosition;
    59 
    60 	public:
    61 	const TUint8* iBitMap;
    62 	TInt iBitNum;
    63 	};
    64 
    65 #endif // !BDFHARN_H