class TOpenFontFaceAttribBase |
Font attribute base class.
This class is not intended for user derivation.
Public Member Functions | |
---|---|
TOpenFontFaceAttribBase() | |
const TUint * | Coverage() |
TBool | HasCJK() |
TBool | HasCyrillic() |
TBool | HasGreek() |
TBool | HasHangul() |
TBool | HasKana() |
TBool | HasLatin() |
TBool | IsBold() |
TBool | IsItalic() |
TBool | IsMonoWidth() |
TBool | IsSerif() |
TBool | IsSymbol() |
TPtrC | Name() |
void | SetBold(TBool) |
void | SetCoverage(TUint, TUint, TUint, TUint) |
void | SetItalic(TBool) |
void | SetMonoWidth(TBool) |
void | SetName(const TDesC &) |
void | SetSerif(TBool) |
TBool | operator==(const TOpenFontFaceAttribBase &) |
Public Member Enumerations | |
---|---|
enum | anonymous { ELatinSet = 0x1, EGreekSet = 0x80, ECyrillicSet = 0x200, EArmenianSet = 0x400, EHebrewSet = 0x800, EArabicSet = 0x2000, EDevanagariSet = 0x8000, EBengaliSet = 0x10000, EGurmukhiSet = 0x20000, EGujuratiSet = 0x40000, EOriyaSet = 0x80000, ETamilSet = 0x100000, ETeluguSet = 0x200000, EKannadaSet = 0x400000, EMalayalamSet = 0x800000, EThaiSet = 0x1000000, ELaoSet = 0x2000000, EGeorgianSet = 0x8000000, EHangulJamoSet = 0x10000000 } |
enum | anonymous { ESymbolSets = 0xFFFE, EKanaSets = 0x60000, EHangulSet = 0x100000, ECJKSet = 0x8000000 } |
enum | anonymous { EBold = 0x1, EItalic = 0x2, ESerif = 0x4, EMonoWidth = 0x8 } |
enum | anonymous { ENameLength = 32 } |
Protected Attributes | |
---|---|
TUint | iCoverage |
TBufC< ENameLength > | iName |
TInt32 | iReserved |
TInt | iStyle |
TOpenFontFaceAttribBase | ( | ) | [inline] |
Default C++ constructor.
This sets all attribute fields to zero. As for other T classes, there is no need to explicitly clean-up objects derived from this class.
const TUint * | Coverage | ( | ) | const [inline] |
Gets a pointer to the sets of flags that indicate the font's Unicode coverage.
Each flag that is set represents a supported Unicode range. The mapping is defined in the TrueType documentation under the OS/2 table.
Note: Some useful subsets are defined as anonymous enumerated constants at the end of this class, see ELatinSet etc.
TBool | HasCJK | ( | ) | const [inline] |
Tests for support of Chinese ideographic characters.
These are used in Chinese, Japanese and Korean.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
TBool | HasCyrillic | ( | ) | const [inline] |
Tests for support of Cyrillic characters.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
TBool | HasGreek | ( | ) | const [inline] |
Tests for support of Greek characters.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
TBool | HasHangul | ( | ) | const [inline] |
Tests for support of Korean Hangul characters.
Korean may also make use of Chinese characters.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
TBool | HasKana | ( | ) | const [inline] |
Tests for support of Japanese syllabic characters.
This function tests for the presence of Hiragana and Katakana syllabic characters in the font, collectively called kana. These characters are not sufficient for the Japanese language, which also makes use of Chinese characters.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
TBool | HasLatin | ( | ) | const [inline] |
Tests for support of Latin characters.
Note: A return value of ETrue implies that the font has a usable set of characters. It does not imply exhaustive coverage.
void | SetBold | ( | TBool | aBold | ) | [inline] |
Sets the bold attribute.
TBool aBold | The bold attribute takes this value: ETrue or EFalse. |
void | SetCoverage | ( | TUint | aCoverage0, |
TUint | aCoverage1 = 0, | |||
TUint | aCoverage2 = 0, | |||
TUint | aCoverage3 = 0 | |||
) | [inline] |
Sets the coverage flags.
The flags are held in four 32 bit integers. Each flag that is set represents a range of Unicode characters that is supported by the typeface: Latin, Greek, Cyrillic etc. The mapping is defined in the TrueType documentation under the OS/2 table.
Note: Some useful subsets are defined as anonymous enumerated constants at the end of this class, see ELatinSet etc.
void | SetItalic | ( | TBool | aItalic | ) | [inline] |
Sets the italic attribute.
TBool aItalic | The italic attribute takes this value ETrue or EFalse. |
void | SetMonoWidth | ( | TBool | aMonoWidth | ) | [inline] |
Sets the mono-width attribute.
TBool aMonoWidth | The mono-width attribute takes this value: ETrue or EFalse. |
void | SetName | ( | const TDesC & | aName | ) | [inline] |
Sets the name attribute.
const TDesC & aName | Descriptor containing typeface name. |
void | SetSerif | ( | TBool | aSerif | ) | [inline] |
Sets the serif attribute.
TBool aSerif | The serif attribute takes this value ETrue or EFalse. |
TBool | operator== | ( | const TOpenFontFaceAttribBase & | aAttrib | ) | const [inline] |
Equality operator.
Compares this and a specified set of font attributes, including the coverage and the typeface name.
In version 6.1, and earlier, the return value was TInt.
const TOpenFontFaceAttribBase & aAttrib | The font attributes to compare. This is an object of TOpenFontFaceAttribBase or of a derived class. |
ELatinSet = 0x1 | |
EGreekSet = 0x80 | |
ECyrillicSet = 0x200 | |
EArmenianSet = 0x400 | |
EHebrewSet = 0x800 | |
EArabicSet = 0x2000 | |
EDevanagariSet = 0x8000 | |
EBengaliSet = 0x10000 | |
EGurmukhiSet = 0x20000 | |
EGujuratiSet = 0x40000 | |
EOriyaSet = 0x80000 | |
ETamilSet = 0x100000 | |
ETeluguSet = 0x200000 | |
EKannadaSet = 0x400000 | |
EMalayalamSet = 0x800000 | |
EThaiSet = 0x1000000 | |
ELaoSet = 0x2000000 | |
EGeorgianSet = 0x8000000 | |
EHangulJamoSet = 0x10000000 |
ESymbolSets = 0xFFFE | |
EKanaSets = 0x60000 | |
EHangulSet = 0x100000 | |
ECJKSet = 0x8000000 |
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.