1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 /** A class to simplify font usage
56 IMPORT_C TCoeFont(TLogicalSize aSize, TInt aStyle, TInt aFlags = ENoFlags);
57 IMPORT_C TCoeFont(TInt aHeightInPixels, TInt aStyle, TInt aFlags = ENoFlags);
58 IMPORT_C TCoeFont(const TCoeFont& aFont);
60 IMPORT_C static TCoeFont NormalFont(TInt aFlags = ENoFlags); // Medium, Plain
61 IMPORT_C static TCoeFont LegendFont(TInt aFlags = ENoFlags); // Medium, Bold
62 IMPORT_C static TCoeFont AnnotationFont(TInt aFlags = ENoFlags);// Small, Plain
63 IMPORT_C static TCoeFont TitleFont(TInt aFlags = ENoFlags); // Large, Bold
65 IMPORT_C TLogicalSize LogicalSize() const;
66 IMPORT_C TInt HeightInPixels() const;
67 IMPORT_C TFontStyle Style() const;
68 IMPORT_C TBool IsNonZooming() const;
70 static TInt Compare(const TCoeFont& aFirst, const TCoeFont& aSecond);
72 TLogicalSize iLogicalSize;
73 TInt8 iHeightInPixels;
76 TTypeface iTypeface; // Member unused at the moment but included for possible future extension
81 #endif // __COEFONT_H__