fontservices/referencefonts/utils/bdfharn.h
author Monotype Imaging Inc. <geoff.greve@monotypeimaging.com
Tue, 09 Mar 2010 14:23:10 +0000
branchRCL_3
changeset 8 030b3432fbe0
parent 0 1fb32624e06b
child 41 ea44a32a96bc
permissions -rw-r--r--
MYuppy TrueType GB2312 font from Monotype Imaging Inc. (Bug 1899) MYuppyGB-Medium Format - TTF TrueType Character set - GB2312 Encoding - Unicode This font was designed to appeal to young urban professionals, Monotype Yuppy is a newly designed typeface with a unique, modern feel. The design combines elements of handwriting with classic letterform characteristics, such as open shapes and proper proportions that help the typeface retain legibility.

/*
* Copyright (c) 2003-2009 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 <e32std.h>
#include <e32test.h>
#include <bitstd.h>
#include <bitdev.h>

class CBDFHarness : public CBase
/**
@internalComponent
*/
	{
	public:
	static CBDFHarness* NewL(const TDesC &aTitle, const TDesC &aHeading);
	~CBDFHarness();
	void MakeBDFFont();

	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