TOpenFontFaceAttrib Class Reference

class TOpenFontFaceAttrib : public TOpenFontFaceAttribBase

Typeface attributes.

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

CFbsFont::GetFaceAttrib()

Inherits from

Public Member Functions
TOpenFontFaceAttrib ()
TPtrC FamilyName ()
TPtrC FullName ()
TPtrC LocalFamilyName ()
TPtrC LocalFullName ()
TInt MinSizeInPixels ()
void SetFamilyName (const TDesC &)
void SetFullName (const TDesC &)
void SetLocalFamilyName (const TDesC &)
void SetLocalFullName (const TDesC &)
void SetMinSizeInPixels ( TInt )
TPtrC ShortFamilyName ()
TPtrC ShortFullName ()
TPtrC ShortLocalFamilyName ()
TPtrC ShortLocalFullName ()
TBool operator== (const TOpenFontFaceAttrib &)
Inherited Functions
TOpenFontFaceAttribBase::Coverage()const
TOpenFontFaceAttribBase::HasCJK()const
TOpenFontFaceAttribBase::HasCyrillic()const
TOpenFontFaceAttribBase::HasGreek()const
TOpenFontFaceAttribBase::HasHangul()const
TOpenFontFaceAttribBase::HasKana()const
TOpenFontFaceAttribBase::HasLatin()const
TOpenFontFaceAttribBase::IsBold()const
TOpenFontFaceAttribBase::IsItalic()const
TOpenFontFaceAttribBase::IsMonoWidth()const
TOpenFontFaceAttribBase::IsSerif()const
TOpenFontFaceAttribBase::IsSymbol()const
TOpenFontFaceAttribBase::Name()const
TOpenFontFaceAttribBase::SetBold(TBool)
TOpenFontFaceAttribBase::SetCoverage(TUint,TUint,TUint,TUint)
TOpenFontFaceAttribBase::SetItalic(TBool)
TOpenFontFaceAttribBase::SetMonoWidth(TBool)
TOpenFontFaceAttribBase::SetName(const TDesC &)
TOpenFontFaceAttribBase::SetSerif(TBool)
TOpenFontFaceAttribBase::TOpenFontFaceAttribBase()
TOpenFontFaceAttribBase::operator==(const TOpenFontFaceAttribBase &)const
Inherited Enumerations
TOpenFontFaceAttribBase:@49
TOpenFontFaceAttribBase:@50
TOpenFontFaceAttribBase:@51
TOpenFontFaceAttribBase:@52
Private Attributes
TBufC < ENameLength > iFamilyName
TBufC < ENameLength > iLocalFamilyName
TBufC < ENameLength > iLocalFullName
TInt iMinSizeInPixels
TInt32 iReserved2
Inherited Attributes
TOpenFontFaceAttribBase::iCoverage
TOpenFontFaceAttribBase::iName
TOpenFontFaceAttribBase::iReserved
TOpenFontFaceAttribBase::iStyle

Constructor & Destructor Documentation

TOpenFontFaceAttrib()

TOpenFontFaceAttrib ( ) [inline]

Default C++ constructor.

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

Member Functions Documentation

FamilyName()

TPtrC FamilyName ( ) const [inline]

Gets the family name.

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

FullName()

FullName()

TPtrC FullName ( ) const [inline]

Gets the full name.

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

FamilyName()

LocalFamilyName()

TPtrC LocalFamilyName ( ) const [inline]

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

LocalFullName()

TPtrC LocalFullName ( ) const [inline]

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.

MinSizeInPixels()

TInt MinSizeInPixels ( ) const [inline]

Gets the minimum typeface size.

This is the smallest size that can be drawn legibly.

SetFamilyName(const TDesC &)

void SetFamilyName ( const TDesC & aName ) [inline]

Sets the family name.

FamilyName()

Parameters

const TDesC & aName The family name of the typeface.

SetFullName(const TDesC &)

void SetFullName ( const TDesC & aName ) [inline]

Sets the full name.

FullName()

Parameters

const TDesC & aName The full name of the typeface.

SetLocalFamilyName(const TDesC &)

void SetLocalFamilyName ( const TDesC & aName ) [inline]

Sets the local family name.

LocalFamilyName()

Parameters

const TDesC & aName The local family name of the typeface.

SetLocalFullName(const TDesC &)

void SetLocalFullName ( const TDesC & aName ) [inline]

Sets the local full name.

LocalFullName()

Parameters

const TDesC & aName The local full name of the typeface.

SetMinSizeInPixels(TInt)

void SetMinSizeInPixels ( TInt aSize ) [inline]

Set the minimum typeface size.

This is the smallest size that can be drawn legibly.

MinSizeInPixels()

Parameters

TInt aSize Sets the minimum typeface size (in pixels).

ShortFamilyName()

TPtrC ShortFamilyName ( ) const [inline]

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.

FamilyName()

ShortFullName()

TPtrC ShortFullName ( ) const [inline]

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.

FullName()

ShortLocalFamilyName()

TPtrC ShortLocalFamilyName ( ) const [inline]

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.

LocalFamilyName()

ShortLocalFullName()

TPtrC ShortLocalFullName ( ) const [inline]

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.

LocalFullName()

operator==(const TOpenFontFaceAttrib &)

TBool operator== ( const TOpenFontFaceAttrib & aAttrib ) const [inline]

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.

Member Data Documentation

TBufC< ENameLength > iFamilyName

TBufC < ENameLength > iFamilyName [private]

TBufC< ENameLength > iLocalFamilyName

TBufC < ENameLength > iLocalFamilyName [private]

TBufC< ENameLength > iLocalFullName

TBufC < ENameLength > iLocalFullName [private]

TInt iMinSizeInPixels

TInt iMinSizeInPixels [private]

TInt32 iReserved2

TInt32 iReserved2 [private]