|
1 /* |
|
2 * Copyright (c) 2007 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: Provides CXhtmlFontSpecs class methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <eikenv.h> |
|
21 #include <gulfont.h> |
|
22 #include <fontids.hrh> |
|
23 |
|
24 #include "xhtmlfontspecs.h" |
|
25 |
|
26 |
|
27 |
|
28 const TUid KSmallFontUid = { KScreenFontUidAb12 }; |
|
29 const TUid KBigFontUid = { KScreenFontUidAb17 }; |
|
30 const TUid KDefaultFontUid = { KScreenFontUidAb17 }; |
|
31 const TUid KCourierFontUid = { KScreenFontUidAb13 }; |
|
32 |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CXhtmlFontSpecs::CXhtmlFontSpecs |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 CXhtmlFontSpecs::CXhtmlFontSpecs() |
|
39 { |
|
40 const CEikonEnv* env( CEikonEnv::Static() ); |
|
41 |
|
42 iSmallFont = env->Font( TLogicalFont( KSmallFontUid ) ); |
|
43 iDefaultFont = env->Font( TLogicalFont( KDefaultFontUid ) ); |
|
44 iBigFont = env->Font( TLogicalFont( KBigFontUid ) ); |
|
45 iCourierFont = env->Font( TLogicalFont( KCourierFontUid ) ); |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // CXhtmlFontSpecs::~CXhtmlFontSpecs |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 CXhtmlFontSpecs::~CXhtmlFontSpecs() |
|
53 { |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------- |
|
57 // CXhtmlFontSpecs::SetFonts |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 void CXhtmlFontSpecs::SetFonts( const CFont* aBigFont, |
|
61 const CFont* aDefaultFont, |
|
62 const CFont* aSmallFont, |
|
63 const CFont* aCourierFont ) |
|
64 { |
|
65 iBigFont = aBigFont; |
|
66 iDefaultFont = aDefaultFont; |
|
67 iSmallFont = aSmallFont; |
|
68 iCourierFont = aCourierFont; |
|
69 } |