diff -r 2717213c588a -r 9f66f99ee56f fbs/fontandbitmapserver/sfbs/fbsglyphmetricsarray.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fbs/fontandbitmapserver/sfbs/fbsglyphmetricsarray.h Fri Sep 24 16:14:28 2010 +0300 @@ -0,0 +1,47 @@ +// Copyright (c) 2009-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 FBSGLYPHMETRICSARRAY_H +#define FBSGLYPHMETRICSARRAY_H + +#include +#include +#include + +/** +@publishedPartner +@prototype +*/ +NONSHARABLE_CLASS(RFbsGlyphMetricsArray) + { +public: + IMPORT_C RFbsGlyphMetricsArray(); + IMPORT_C TInt Get(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount); + IMPORT_C void Close(); + IMPORT_C TInt Count() const; + IMPORT_C const TOpenFontCharMetrics& operator[](TInt aIndex) const; + +private: + RFbsGlyphMetricsArray(const RFbsGlyphMetricsArray&); + const RFbsGlyphMetricsArray& operator =(const RFbsGlyphMetricsArray&); + TInt SendRecvGlyphMetrics(CFbsFont& aFont, TUint* aArrayIndices, TInt aArrayIndicesCount, RArray* aMetrics) const; + +private: + RArray iMetrics; + const TUint* iGlyphCodes; + TInt iCount; + }; + +#endif /* FBSGLYPHMETRICSARRAY_H */