sl@0: // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef FBSGLYPHMETRICSARRAY_H sl@0: #define FBSGLYPHMETRICSARRAY_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: NONSHARABLE_CLASS(RFbsGlyphMetricsArray) sl@0: { sl@0: public: sl@0: IMPORT_C RFbsGlyphMetricsArray(); sl@0: IMPORT_C TInt Get(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount); sl@0: IMPORT_C void Close(); sl@0: IMPORT_C TInt Count() const; sl@0: IMPORT_C const TOpenFontCharMetrics& operator[](TInt aIndex) const; sl@0: sl@0: private: sl@0: RFbsGlyphMetricsArray(const RFbsGlyphMetricsArray&); sl@0: const RFbsGlyphMetricsArray& operator =(const RFbsGlyphMetricsArray&); sl@0: TInt SendRecvGlyphMetrics(CFbsFont& aFont, TUint* aArrayIndices, TInt aArrayIndicesCount, RArray* aMetrics) const; sl@0: sl@0: private: sl@0: RArray iMetrics; sl@0: const TUint* iGlyphCodes; sl@0: TInt iCount; sl@0: }; sl@0: sl@0: #endif /* FBSGLYPHMETRICSARRAY_H */