equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef AKNFONTID_H |
|
21 #define AKNFONTID_H |
|
22 |
|
23 #include <e32def.h> |
|
24 #include <gdi.h> |
|
25 #include "AknFontCategory.hrh" |
|
26 |
|
27 /** |
|
28 * Encapsulation of a Series 60 font id |
|
29 * In Series 60 2.8, this only has static methods |
|
30 * |
|
31 * @since Series 60 2.8 |
|
32 */ |
|
33 |
|
34 class TAknFontId |
|
35 { |
|
36 public: |
|
37 // Static methods |
|
38 /** |
|
39 * Returns whether the font id contains metrics encoded within it |
|
40 */ |
|
41 IMPORT_C static TBool IsEncodedFont(TInt aFontId); |
|
42 static TAknFontCategory ExtractCategoryFromFontId(TInt aFontId); |
|
43 static TFontStrokeWeight ExtractWeightFromFontId(TInt aFontId); |
|
44 static TFontPosture ExtractPostureFromFontId(TInt aFontId); |
|
45 static TBool ExtractOutlineFromFontId(TInt aFontId); |
|
46 static TInt ExtractHeightFromFontId(TInt aFontId); |
|
47 /** |
|
48 * Returns an encoded font id that can be used to requests a font at very early points during startup, when there is no layout data available. |
|
49 * The CAknLayoutFont that is constructed should be updated after layout is present in order to release this dummy font |
|
50 * It is not to be used for font that will actually be rendered |
|
51 * |
|
52 * @return Encoded Avkon font id |
|
53 */ |
|
54 IMPORT_C static TInt TAknFontId::FontIdForStartupNormalFont(); |
|
55 }; |
|
56 |
|
57 #endif // AKNFONTID_H |
|
58 // End of File |