EPOC   SDK Home Glossary Indexes Previous   Up

TOpenFontFaceAttrib class


Contents


TOpenFontFaceAttrib class — Typeface attributes

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

TOpenFontFaceAttribBase

Contains general typeface information: e.g., supported characters, support for bold and italic.

TOpenFontFaceAttrib

Typeface attributes.

Defined in

openfont.h

Link against

N/A

Description

The class defines typeface attributes. These attributes include the name and family name.


Construction and destruction

Initialises data member representing the minimum typeface size - to zero.


Attribute query functions

Typeface attributes can be accessed through a number of public functions:


FullName() — Get full name

TPtrC FullName() const;

Description

Returns descriptor for full name of typeface. The full name includes style attributes like ‘Italic’, ‘Bold’, and ‘Cursive’.

Return value

TPtrC

the full name.


FamilyName() — Get family name

TPtrC FamilyName() const;

Description

Returns descriptor for family name of typeface. The family name does not include style attributes like ‘Italic’.

Return value

TPtrC

the family name


LocalFullName() — Get local full name

TPtrC LocalFullName() const;

Description

Returns descriptor for local full name of typeface. Local names are names in the language of the current locale, where this is provided by the font file. If the local name is not available the local name will be the same as the ordinary name.

Return value

TPtrC

local full name


LocalFamilyName() — Get local family name

TPtrC LocalFamilyName() const;

Description

Returns descriptor for local family name of typeface.

Return value

TPtrC

local family name


ShortFullName() — Get the short full name

TPtrC ShortFullName() const;

Description

Returns descriptor for the short full name of the typeface. Short names are names truncated to KMaxTypefaceNameLength (24) characters where necessary so that they can be used in the TTypeFace class. The Open Font System allows 32 characters as a maximum name length.

Return value

TPtrC

short full name


ShortFamilyName() — Get the short family name

TPtrC ShortFamilyName() const;

Description

Returns the descriptor for the short family name of the typeface (the family name, truncated to KMaxTypefaceNameLength if necessary)

Return value

TPtrC

short family name


ShortLocalFullName() — Get the short local full name

TPtrC ShortLocalFullName() const;

Description

Returns the descriptor for the short local full name of the typeface (the local full name, truncated to KMaxTypefaceNameLength if necessary).

Return value

TPtrC

short local full name


ShortLocalFamilyName() — Get the short local family name

TPtrC ShortLocalFamilyName() const;

Description

Returns the descriptor for the short local family name of the typeface (the local family name, truncated to KMaxTypefaceNameLength if necessary).

Return value

TPtrC

short local family name


MinSizeInPixels() — Get the minimum typeface size

TInt MinSizeInPixels() const;

Description

Returns the minimum typeface size (in pixels). This is the smallest size that can be drawn legibly.

Return value

TInt

minimum typeface size (in pixels)


Attribute modifier functions

Typeface attributes can be modified through a number of public functions:


SetFullName() — Set full name

void SetFullName(const TDesC& aName);

Description

Set the typeface full name attribute.

Arguments

const TDesC& aName

descriptor for the “full name”.


SetFamilyName() — Set family name

void SetFamilyName(const TDesC& aName);

Description

Set the typeface family name attribute.

Arguments

const TDesC& aName

descriptor for the “family name”


SetLocalFullName() — Set local full name

void SetLocalFullName(const TDesC& aName);

Description

Set the typeface local full name attribute

Arguments

const TDesC& aName

descriptor for the “local full name”


SetLocalFamilyName() — Set local family name

void SetLocalFamilyName(const TDesC& aName);

Description

Set the typeface local family name attribute.

Arguments

const TDesC& aName

descriptor for the “local family name”.


SetMinSizeInPixels() — Set the minimum typeface size

void SetMinSizeInPixels(TInt aSize);

Description

Set the minimum typeface size (in pixels).

Arguments

TInt aSize

minimum typeface size (in pixels)


Data members

All data members are private, and are accessed via the public member functions

EPOC       SDK Home Glossary Indexes Previous   Up