Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: openfont.h
Link against: N/A

Class TOpenFontFaceAttrib

TOpenFontFaceAttrib

Support

Supported from 5.0

Description

Typeface attributes.

These attributes include the name, family name, and supported scripts.

Derivation

TOpenFontFaceAttribTypeface attributes
TOpenFontFaceAttribBaseFont attribute base class

Defined in TOpenFontFaceAttrib:
FamilyName(), FullName(), LocalFamilyName(), LocalFullName(), MinSizeInPixels(), SetFamilyName(), SetFullName(), SetLocalFamilyName(), SetLocalFullName(), SetMinSizeInPixels(), ShortFamilyName(), ShortFullName(), ShortLocalFamilyName(), ShortLocalFullName(), TOpenFontFaceAttrib()

Inherited from TOpenFontFaceAttribBase:
Anonymous, Coverage(), EArabicSet, EArmenianSet, EBengaliSet, EBold, ECJKSet, ECyrillicSet, EDevanagariSet, EGeorgianSet, EGreekSet, EGujuratiSet, EGurmukhiSet, EHangulJamoSet, EHangulSet, EHebrewSet, EItalic, EKanaSets, EKannadaSet, ELaoSet, ELatinSet, EMalayalamSet, EMonoWidth, ENameLength, EOriyaSet, ESerif, ESymbolSets, ETamilSet, ETeluguSet, EThaiSet, HasCJK(), HasCyrillic(), HasGreek(), HasHangul(), HasKana(), HasLatin(), IsBold(), IsItalic(), IsMonoWidth(), IsSerif(), IsSymbol(), Name(), SetBold(), SetCoverage(), SetItalic(), SetMonoWidth(), SetName(), SetSerif(), operator==()

See also:


Construction and destruction


TOpenFontFaceAttrib()

TOpenFontFaceAttrib();

Description

Default C++ constructor.

The function initialises the minimum typeface size to zero, the names to NULL, and the coverage and style flags to zero.

[Top]


Get attributes


FamilyName()

TPtrC FamilyName() const;

Description

Gets the family name.

Note:

Return value

TPtrC

The family name of the typeface.

See also:


FullName()

TPtrC FullName() const;

Description

Gets the full name.

The full name of the typeface includes style attributes like Italic, Bold, and Cursive.

Return value

TPtrC

The full name of the typeface.

See also:


LocalFamilyName()

TPtrC LocalFamilyName() const;

Description

Gets the local family name.

The local name of the typeface is the name in the language of the current locale, where this is provided by the font file. If the local name is not available then the local name will be the same as the ordinary name.

Note:

Return value

TPtrC

The local family name of the typeface.


LocalFullName()

TPtrC LocalFullName() const;

Description

Gets the local full name.

The local full name of the typeface includes style attributes like Italic, Bold, and Cursive.

The local name of the typeface is the name in the language of the current locale, where this is provided by the font file. If the local name is not available then the local name will be the same as the ordinary name.

Return value

TPtrC

The local full name of the typeface.


MinSizeInPixels()

TInt MinSizeInPixels() const;

Description

Gets the minimum typeface size.

This is the smallest size that can be drawn legibly.

Return value

TInt

The minimum typeface size (in pixels).


ShortFamilyName()

TPtrC ShortFamilyName() const;

Description

Gets the short family name.

This is the family name, truncated to KMaxTypefaceNameLength, if necessary.

Note:

Return value

TPtrC

The short family name of the typeface.

See also:


ShortFullName()

TPtrC ShortFullName() const;

Description

Gets the short full name.

This is the full name of the typeface, truncated to KMaxTypefaceNameLength, if necessary.

Note:

Return value

TPtrC

The short full name of the typeface.

See also:


ShortLocalFamilyName()

TPtrC ShortLocalFamilyName() const;

Description

Gets the short local family name.

This is the local family name of the typeface, truncated to KMaxTypefaceNameLength, if necessary.

Note:

Return value

TPtrC

The short local family name of the typeface.

See also:


ShortLocalFullName()

TPtrC ShortLocalFullName() const;

Description

Gets the short local full name.

This is the local full name of the typeface, truncated to KMaxTypefaceNameLength, if necessary.

Note:

Return value

TPtrC

The short local full name of the typeface.

See also:

[Top]


Set attributes


SetFamilyName()

void SetFamilyName(const TDesC& aName);

Description

Sets the family name.

Parameters

const TDesC& aName

The family name of the typeface.

See also:


SetFullName()

void SetFullName(const TDesC& aName);

Description

Sets the full name.

Parameters

const TDesC& aName

The full name of the typeface.

See also:


SetLocalFamilyName()

void SetLocalFamilyName(const TDesC& aName);

Description

Sets the local family name.

Parameters

const TDesC& aName

The local family name of the typeface.

See also:


SetLocalFullName()

void SetLocalFullName(const TDesC& aName);

Description

Sets the local full name.

Parameters

const TDesC& aName

The local full name of the typeface.

See also:


SetMinSizeInPixels()

void SetMinSizeInPixels(TInt aSize);

Description

Set the minimum typeface size.

This is the smallest size that can be drawn legibly.

Parameters

TInt aSize

Sets the minimum typeface size (in pixels).

See also: