![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
Applications that use this class will not work correctly on a version of EPOC earlier than ER5.
TOpenFontFaceAttribBase |
Contains general typeface information: e.g., supported characters, support for bold and italic. |
TOpenFontFaceAttrib |
Typeface attributes. |
openfont.h
N/A
The class defines typeface attributes. These attributes include the name and family name.
Initialises data member representing the minimum typeface size - to zero.
Typeface attributes can be accessed through a number of public functions:
TPtrC FullName() const;
Returns descriptor for full name of typeface. The full name includes style attributes like Italic, Bold, and Cursive.
TPtrC |
the full name. |
TPtrC FamilyName() const;
Returns descriptor for family name of typeface. The family name does not include style attributes like Italic.
TPtrC |
the family name |
TPtrC LocalFullName() const;
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.
TPtrC |
local full name |
TPtrC LocalFamilyName() const;
Returns descriptor for local family name of typeface.
TPtrC |
local family name |
TPtrC ShortFullName() const;
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.
TPtrC |
short full name |
TPtrC ShortFamilyName() const;
Returns the descriptor for the short family name of the typeface (the family name, truncated to KMaxTypefaceNameLength if necessary)
TPtrC |
short family name |
TPtrC ShortLocalFullName() const;
Returns the descriptor for the short local full name of the typeface (the local full name, truncated to KMaxTypefaceNameLength if necessary).
TPtrC |
short local full name |
TPtrC ShortLocalFamilyName() const;
Returns the descriptor for the short local family name of the typeface (the local family name, truncated to KMaxTypefaceNameLength if necessary).
TPtrC |
short local family name |
TInt MinSizeInPixels() const;
Returns the minimum typeface size (in pixels). This is the smallest size that can be drawn legibly.
TInt |
minimum typeface size (in pixels) |
Typeface attributes can be modified through a number of public functions:
void SetFullName(const TDesC& aName);
Set the typeface full name attribute.
const TDesC& aName |
descriptor for the full name. |
void SetFamilyName(const TDesC& aName);
Set the typeface family name attribute.
const TDesC& aName |
descriptor for the family name |
void SetLocalFullName(const TDesC& aName);
Set the typeface local full name attribute
const TDesC& aName |
descriptor for the local full name |
void SetLocalFamilyName(const TDesC& aName);
Set the typeface local family name attribute.
const TDesC& aName |
descriptor for the local family name. |
void SetMinSizeInPixels(TInt aSize);
Set the minimum typeface size (in pixels).
TInt aSize |
minimum typeface size (in pixels) |
All data members are private, and are accessed via the public member functions
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |