Location:
OPENFONT.H
class TOpenFontFaceAttribBase;
Font attribute base class.
This class is not intended for user derivation.
Defined in 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()
, TOpenFontFaceAttribBase()
, anonymous
, anonymous
, anonymous
, anonymous
, iCoverage
, iName
, iReserved
, iStyle
, operator==()
inline TOpenFontFaceAttribBase();
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.
inline TBool HasLatin() const;
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.
|
inline TBool HasGreek() const;
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.
|
inline TBool HasCyrillic() const;
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.
|
inline TBool HasKana() const;
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.
|
inline TBool HasHangul() const;
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.
|
inline TBool HasCJK() const;
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.
|
inline TBool IsSymbol() const;
Tests if the typeface contains symbols only.
|
inline TBool IsBold() const;
Tests if the typeface is inherently bold.
|
inline TBool IsItalic() const;
Tests if the typeface is inherently italic.
|
inline TBool IsSerif() const;
Tests if the typeface has serifs.
|
inline TBool IsMonoWidth() const;
Tests if all the characters have the same width.
|
inline TPtrC Name() const;
Gets the typeface's name.
|
inline const TUint *Coverage() const;
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.
|
inline void SetName(const TDesC &aName);
Sets the name attribute.
|
inline void SetCoverage(TUint aCoverage0, TUint aCoverage1=0, TUint aCoverage2=0, TUint aCoverage3=0);
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.
|
inline void SetBold(TBool aBold);
Sets the bold attribute.
|
inline void SetItalic(TBool aItalic);
Sets the italic attribute.
|
inline void SetSerif(TBool aSerif);
Sets the serif attribute.
|
inline void SetMonoWidth(TBool aMonoWidth);
Sets the mono-width attribute.
|
inline TBool operator==(const TOpenFontFaceAttribBase &aAttrib) const;
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.
|
|
n/a
protected: TInt32 iReserved;