equal
deleted
inserted
replaced
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
138 /** One or more of the input parameters to the interface were invalid */ |
138 /** One or more of the input parameters to the interface were invalid */ |
139 EGdiPanic_InvalidInputParam = 1, |
139 EGdiPanic_InvalidInputParam = 1, |
140 /** Insufficient text for successful completion of the method */ |
140 /** Insufficient text for successful completion of the method */ |
141 EGdiPanic_OutOfText = 2, |
141 EGdiPanic_OutOfText = 2, |
142 /** Internal failure. */ |
142 /** Internal failure. */ |
143 EGdiPanic_Invariant = 3 |
143 EGdiPanic_Invariant = 3, |
|
144 /** Reserved panic codes. Not to be used. */ |
|
145 EGdiPanic_Reserved1 = 4, |
|
146 EGdiPanic_Reserved2 = 5, |
|
147 /** Setting a typeface name that is too long */ |
|
148 EGdiPanic_TypefaceNameOverflow = 6, |
144 }; |
149 }; |
145 |
150 |
146 |
151 |
147 /** 24-bit RGB colour value with 8 bits each for red, green and blue. |
152 /** 24-bit RGB colour value with 8 bits each for red, green and blue. |
148 |
153 |
558 IMPORT_C TBool IsSerif() const; |
563 IMPORT_C TBool IsSerif() const; |
559 IMPORT_C TBool IsSymbol() const; |
564 IMPORT_C TBool IsSymbol() const; |
560 IMPORT_C void SetScriptTypeForMetrics(TLanguage aLanguage); |
565 IMPORT_C void SetScriptTypeForMetrics(TLanguage aLanguage); |
561 IMPORT_C void SetScriptTypeForMetrics(TInt aScript); |
566 IMPORT_C void SetScriptTypeForMetrics(TInt aScript); |
562 IMPORT_C TInt ScriptTypeForMetrics() const; |
567 IMPORT_C TInt ScriptTypeForMetrics() const; |
|
568 IMPORT_C void SetName(const TDesC& aName); |
|
569 IMPORT_C const TDesC& Name() const; |
563 private: |
570 private: |
564 void ResetAttributes(); |
571 void ResetAttributes(); |
565 void ResetScriptType(); |
572 void ResetScriptType(); |
566 public: |
573 public: |
567 /** The typeface name. */ |
574 /** The typeface name. */ |
1220 const TUid KFontCapitalAscent = {0x1020498E}; |
1227 const TUid KFontCapitalAscent = {0x1020498E}; |
1221 const TUid KFontMaxAscent = {0x10204B10}; |
1228 const TUid KFontMaxAscent = {0x10204B10}; |
1222 const TUid KFontStandardDescent = {0x10204B11}; |
1229 const TUid KFontStandardDescent = {0x10204B11}; |
1223 const TUid KFontMaxDescent = {0x10205AFC}; |
1230 const TUid KFontMaxDescent = {0x10205AFC}; |
1224 const TUid KFontLineGap = {0x10204B12}; |
1231 const TUid KFontLineGap = {0x10204B12}; |
1225 |
1232 const TUid KFontGetFontTable = {0x102872C1}; |
|
1233 const TUid KFontGetGlyphOutline = {0x102872C2}; |
|
1234 const TUid KFontReleaseGlyphOutline = {0x2002A1FD}; |
|
1235 const TUid KFontReleaseFontTable = {0x2002AC24}; |
1226 |
1236 |
1227 |
1237 |
1228 /** Abstract font interface. |
1238 /** Abstract font interface. |
1229 |
1239 |
1230 The CFont class provides a device-independent interface to a device-dependent |
1240 The CFont class provides a device-independent interface to a device-dependent |