Location: openfont.h
Link against: N/A
TOpenFontFaceAttribBase
Supported from 5.0
Font attribute base class.
This class is not intended for user derivation.
Defined in TOpenFontFaceAttribBase
:
Anonymous
, 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()
, operator==()
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.
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 useable set of characters. It does not imply exhaustive coverage.
|
TBool HasCyrillic() const;
Tests for support of Cyrillic characters.
Note:
A return value of ETrue
implies that the font has a useable set of characters. It does not imply exhaustive coverage.
|
TBool HasGreek() const;
Tests for support of Greek characters.
Note:
A return value of ETrue
implies that the font has a useable set of characters. It does not imply exhaustive coverage.
|
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 useable set of characters. It does not imply exhaustive coverage.
|
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 useable set of characters. It does not imply exhaustive coverage.
|
TBool HasLatin() const;
Tests for support of Latin characters.
Note:
A return value of ETrue
implies that the font has a useable set of characters. It does not imply exhaustive coverage.
|
const TUint* Coverage() const;
Gets a pointer to the 128-bit coverage bitmap.
Each bit in the bitmap represents a subset of Unicode that is supported. 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 IsBold() const;
Tests if the typeface is inherently bold.
|
TBool IsItalic() const;
Tests if the typeface is inherently italic.
|
TBool IsMonoWidth() const;
Tests if all the characters have the same width.
|
TBool IsSerif() const;
Tests if the typeface has serifs.
|
TBool IsSymbol() const;
Tests if the typeface contains symbols only.
|
TPtrC Name() const;
Gets the typeface's name.
|
void SetBold(TBool aBold);
Sets the bold attribute.
|
void SetCoverage(TUint aCoverage0,TUint aCoverage1,TUint aCoverage2,TUint aCoverage3);
Sets the coverage bitmap.
This is a 128-bit bitmap in which each bit represents a subset of Unicode that is supported by the typeface. 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);
Sets the italic attribute.
|
void SetMonoWidth(TBool aMonoWidth);
Sets the mono-width attribute.
|
void SetName(const TDesC& aName);
Sets the name attribute.
|
void SetSerif(TBool aSerif);
Sets the serif attribute.
|
TInt operator==(const TOpenFontFaceAttribBase& aAttrib) const;
Equality operator.
Compares this and a specified set of font attributes for equality.
|
|
Anonymous
Coverage values.
These are the same as the field ulUnicodeRange1 in the OS/2 table in TrueType fonts. Note that this list is incomplete; see the TrueType documentation for other values.
|
Anonymous
Flags for character sets supported by the typeface.
These are the same as the field ulUnicodeRange2 in the OS/2 table in TrueType fonts. Note that this list is incomplete; see the TrueType documentation for other values.
|
Anonymous
Attribute flags.
|
Anonymous
Typeface name length.
|