Update contrib.
2 * Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __FNTBODY_OLD_H__
20 #define __FNTBODY_OLD_H__
26 class TBitmapCodeSectionOld : public TCodeSection
29 TBitmapCodeSectionOld(RHeap* aHeap);
30 void InternalizeL(RReadStream& aStream);
31 void RestoreComponentsL(const CStreamStore& aStreamStore);
32 void FixUpComponents(TInt aFileAddress);
33 void DeleteComponents();
34 void operator delete(TAny*);
35 void operator delete(TAny*,TAny*) {} // To prevent compiler warning
36 TBitmapFontCharacterOffset* CharacterOffsetsList() const;
37 TUint8* Bitmap() const;
40 void InternalizeOffsetsL(RReadStream& aStream);
41 void InternalizeBitmapL(RReadStream& aStream);
45 TInt iCharacterOffsetsListOffset;
50 class CFontBitmapOld : public CBase
53 CFontBitmapOld(RHeap* aHeap,CFontStoreFile* aFontStoreFile);
54 void InternalizeL(RReadStream &aStream);
57 TBitmapFontCharacterMetrics CharacterMetrics(TInt aCode,const TUint8*& aBytes) const;
58 void operator delete(TAny*);
59 void operator delete(TAny*,TAny*) {} // To prevent compiler warning
60 void SetPosture(TFontPosture aPosture);
61 TFontPosture Posture();
62 void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
63 TFontStrokeWeight StrokeWeight();
64 void SetIsProportional(TBool aIsProportional);
65 TBool IsProportional();
66 CFontStoreFile* FontStoreFile() const;
69 void RestoreComponentsL(); // Has reference to FontStoreFile
70 void DeleteComponents();
71 TBitmapCodeSectionOld* CodeSectionList() const;
72 TCharacterMetricsTable* MetricsTable() const;
75 TInt iFontStoreFileOffset;
80 TInt8 iIsProportional;
84 TInt8 iCellHeightInPixels;
85 TInt8 iAscentInPixels;
86 TInt8 iMaxCharWidthInPixels;
87 TInt8 iMaxNormalCharWidthInPixels;
89 TInt iNumCodeSections;
90 TInt iCodeSectionListOffset;
92 TCharacterMetricsTable iCharacterMetricsTable;
95 #endif // __FNTBODY_OLD_H__