Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: OPENFONT.H

Class TOpenFontFaceAttrib

class TOpenFontFaceAttrib : public TOpenFontFaceAttribBase;

Description

Typeface attributes.

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

Derivation

Members

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

Inherited from TOpenFontFaceAttribBase:
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(), anonymous, iCoverage, iName, iReserved, iStyle


Construction and destruction


TOpenFontFaceAttrib()

inline 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]


Member functions


operator==()

inline TBool operator==(const TOpenFontFaceAttrib &aAttrib) const;

Description

Equality operator.

Compares this and another set of font attributes, including the coverage, the family name, the local full name, the local family name, and the minimum size in pixels.

Parameters

const TOpenFontFaceAttrib &aAttrib

Contains the font attributes and names to compare.

Return value

TBool

ETrue if all values are equal, EFalse if not.


FullName()

inline 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:


FamilyName()

inline TPtrC FamilyName() const;

Description

Gets the family name.

Note: The family name of the typeface does not include style attributes like "Italic".

Return value

TPtrC

The family name of the typeface.

See also:


LocalFullName()

inline 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.


LocalFamilyName()

inline 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: The family name of the typeface does not include style attributes like 'Italic'.

Return value

TPtrC

The local family name of the typeface.


ShortFullName()

inline TPtrC ShortFullName() const;

Description

Gets the short full name.

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

Note: Short names are names truncated to KMaxTypefaceNameLength (24) characters where necessary so that they can be used in the TTypeFace class. The Open Font Framework allows 32 characters as a maximum name length.

Return value

TPtrC

The short full name of the typeface.

See also:


ShortFamilyName()

inline TPtrC ShortFamilyName() const;

Description

Gets the short family name.

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

Note: Short names are names truncated to KMaxTypefaceNameLength (24) characters where necessary so that they can be used in the TTypeFace class. The Open Font Framework allows 32 characters as a maximum name length.

Return value

TPtrC

The short family name of the typeface.

See also:


ShortLocalFullName()

inline 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: Short names are names truncated to KMaxTypefaceNameLength (24) characters where necessary so that they can be used in the TTypeFace class. The Open Font Framework allows 32 characters as a maximum name length.

Return value

TPtrC

The short local full name of the typeface.

See also:


ShortLocalFamilyName()

inline 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: Short names are names truncated to KMaxTypefaceNameLength (24) characters where necessary so that they can be used in the TTypeFace class. The Open Font Framework allows 32 characters as a maximum name length.

Return value

TPtrC

The short local family name of the typeface.

See also:


SetFullName()

inline void SetFullName(const TDesC &aName);

Description

Sets the full name.

Parameters

const TDesC &aName

The full name of the typeface.

See also:


SetFamilyName()

inline void SetFamilyName(const TDesC &aName);

Description

Sets the family name.

Parameters

const TDesC &aName

The family name of the typeface.

See also:


SetLocalFullName()

inline void SetLocalFullName(const TDesC &aName);

Description

Sets the local full name.

Parameters

const TDesC &aName

The local full name of the typeface.

See also:


SetLocalFamilyName()

inline void SetLocalFamilyName(const TDesC &aName);

Description

Sets the local family name.

Parameters

const TDesC &aName

The local family name of the typeface.

See also:


MinSizeInPixels()

inline 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).


SetMinSizeInPixels()

inline 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: