Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Construction and destruction


NewL()

IMPORT_C static CCoeFontProvider* NewL();

Description

Standard Symbian factory method. Uses a default typeface

Return value

CCoeFontProvider *


NewL(const TDesC &)

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

Description

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

Parameters

const TDesC16 &aTypefaceName

Typeface to use.

Return value

CCoeFontProvider *

[Top]


Member functions


Font(const TCoeFont &,const TZoomFactor &)const

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(const TTypeface)

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()const

IMPORT_C TTypeface Typeface() const;

Description

Return the current typeface

Return value

TTypeface