class TOpenFontFaceAttrib : public TOpenFontFaceAttribBase |
Typeface attributes.
These attributes include the name, family name, and supported scripts.
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 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 |
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.
TPtrC | FamilyName | ( | ) | const [inline] |
Gets the family name.
Note: The family name of the typeface does not include style attributes like "Italic".
TPtrC | FullName | ( | ) | const [inline] |
Gets the full name.
The full name of the typeface includes style attributes like Italic, Bold, and Cursive.
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'.
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.
TInt | MinSizeInPixels | ( | ) | const [inline] |
Gets the minimum typeface size.
This is the smallest size that can be drawn legibly.
void | SetFamilyName | ( | const TDesC & | aName | ) | [inline] |
Sets the family name.
const TDesC & aName | The family name of the typeface. |
void | SetFullName | ( | const TDesC & | aName | ) | [inline] |
Sets the full name.
const TDesC & aName | The full name of the typeface. |
void | SetLocalFamilyName | ( | const TDesC & | aName | ) | [inline] |
Sets the local family name.
const TDesC & aName | The local family name of the typeface. |
void | SetLocalFullName | ( | const TDesC & | aName | ) | [inline] |
Sets the local full name.
const TDesC & aName | The local full name of the typeface. |
void | SetMinSizeInPixels | ( | TInt | aSize | ) | [inline] |
Set the minimum typeface size.
This is the smallest size that can be drawn legibly.
TInt aSize | Sets the minimum typeface size (in pixels). |
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.
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.
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.
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.
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.
const TOpenFontFaceAttrib & aAttrib | Contains the font attributes and names to compare. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.