Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: coefontprovider.h
Link against: cone.lib

Class CCoeFontProvider

class CCoeFontProvider : public CBase;

Description

A helper object designed to make obtaining a font easier, taking into account zoom factors.

Derivation

Members

Defined in CCoeFontProvider:
Font(), NewL(), NewL(), SetTypeface(), Typeface(), UseSystemTypeface()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CCoeFontProvider *NewL();

Description

Standard Symbian factory method. Uses a default typeface

Return value

CCoeFontProvider *


NewL()

static IMPORT_C CCoeFontProvider *NewL(const TDesC &aTypefaceName);

Description

Standard Symbian factory method. Typeface to use is provided by caller.

Parameters

const TDesC &aTypefaceName

Typeface to use.

Return value

CCoeFontProvider *

[Top]


Member functions


Font()

IMPORT_C const CFont &Font(const TCoeFont &aFont, const TZoomFactor &aZoomFactor) const;

Description

return a CFont based on the default typeface, the supplied sample font and the supplied zoom factor

Parameters

const TCoeFont &aFont

A TCoeFont object providing sample information

const TZoomFactor &aZoomFactor

Zoom factor used when deriving the font height

Return value

const CFont &


SetTypeface()

IMPORT_C void SetTypeface(const TTypeface aTypeface);

Description

Change the typeface

Parameters

const TTypeface aTypeface

The typeface to use


UseSystemTypeface()

IMPORT_C void UseSystemTypeface();

Description

Use the system typeface


Typeface()

IMPORT_C TTypeface Typeface() const;

Description

Return the current typeface

Return value

TTypeface