class FontUtils |
Provides static functions for getting information about the fonts supported by a graphics device.
Public Member Functions | |
---|---|
IMPORT_C void | GetAvailableFontsL (const CGraphicsDevice &, CDesCArray &, TInt ) |
IMPORT_C TInt | GetAvailableHeightsInTwipsAndPointsL (const CGraphicsDevice &, const TDesC &, CArrayFix < TInt > &, CDesCArray &) |
IMPORT_C TInt | GetAvailableHeightsInTwipsL (const CGraphicsDevice &, const TDesC &, CArrayFix < TInt > &) |
IMPORT_C TInt | IndexOfNearestHeight ( CArrayFix < TInt > &, TInt ) |
IMPORT_C TInt | PointsFromTwips ( TInt ) |
IMPORT_C TInt | TwipsFromPoints ( TInt ) |
IMPORT_C TInt | TwipsFromPoints (const TDesC &) |
IMPORT_C TInt | TypefaceAttributes (const CGraphicsDevice &, const TDesC &) |
IMPORT_C void | GetAvailableFontsL | ( | const CGraphicsDevice & | aDevice, |
CDesCArray & | aFontNameList, | |||
TInt | aFonts = EGulNoSymbolFonts | |||
) | [static] |
Gets the list of typeface names available for the graphics device.
const CGraphicsDevice & aDevice | The graphics device. |
CDesCArray & aFontNameList | On return, contains the list of typeface names. |
TInt aFonts = EGulNoSymbolFonts | Can be used to specify which sorts of typefaces are required. For possible values, see the flags defined in gulftflg.hrh beginning with EGulAllFonts. |
IMPORT_C TInt | GetAvailableHeightsInTwipsAndPointsL | ( | const CGraphicsDevice & | aDevice, |
const TDesC & | aTypefaceName, | |||
CArrayFix < TInt > & | aTwipsList, | |||
CDesCArray & | aPointsList | |||
) | [static] |
Gets a list of all heights in twips, available for the named typeface and the graphics device specified.
Also gets a list of heights in points, represented as character strings.
const CGraphicsDevice & aDevice | The graphics device. |
const TDesC & aTypefaceName | The name of the typeface. |
CArrayFix < TInt > & aTwipsList | On return, contains all available heights for the typeface, in twips. |
CDesCArray & aPointsList | On return, the heights in points, represented as character strings. |
IMPORT_C TInt | GetAvailableHeightsInTwipsL | ( | const CGraphicsDevice & | aDevice, |
const TDesC & | aTypefaceName, | |||
CArrayFix < TInt > & | aHeightList | |||
) | [static] |
Gets a list of all heights in twips, available for the named typeface and the graphics device specified.
const CGraphicsDevice & aDevice | The graphics device. |
const TDesC & aTypefaceName | The name of the typeface. |
CArrayFix < TInt > & aHeightList | On return, contains all available heights for the typeface, in twips. |
IMPORT_C TInt | IndexOfNearestHeight | ( | CArrayFix < TInt > & | aTwipsList, |
TInt | aHeight | |||
) | [static] |
Gets the index into the supplied list of font heights of the closest match to the font height specified.
IMPORT_C TInt | PointsFromTwips | ( | TInt | aTwips | ) | [static] |
Converts a number of twips to points.
TInt aTwips | A number of twips. |
IMPORT_C TInt | TwipsFromPoints | ( | TInt | aPoints | ) | [static] |
Converts a number of points into twips.
TInt aPoints | A number of points. |
IMPORT_C TInt | TwipsFromPoints | ( | const TDesC & | aPoints | ) | [static] |
Converts a number of points held as text to twips.
const TDesC & aPoints | A number of points as text. |
IMPORT_C TInt | TypefaceAttributes | ( | const CGraphicsDevice & | aDevice, |
const TDesC & | aTypefaceName | |||
) | [static] |
Gets the attributes of a named typeface, if supported by the graphics device.
const CGraphicsDevice & aDevice | The graphics device. |
const TDesC & aTypefaceName | The name of the typeface. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.