![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
Applications that use this class will not work correctly on a version of EPOC earlier than ER5.
TOpenFontFaceAttribBase |
Stores typeface attributes. |
openfont.h
N/A
The class is the base class for TOpenFontFaceAttrib and TOpenFontSpec.
This class is not intended for user derivation
Constructor zeros all fields. As for other T classes, there is no need to explicitly clean-up objects derived from TOpenFontFaceAttribBase.
Note that a return value of TRUE from functions in this section implies that the font has a usable set of characters in the selected set. It does not imply exhaustive coverage.
inline TBool HasLatin() const;
Checks for support of Latin characters in the font.
TBool |
TRUE if Latin characters are supported |
inline TBool HasGreek() const;
Checks for support of Greek characters in the font.
TBool |
TRUE if Greek characters are supported |
inline TBool HasCyrillic() const;
Checks for support of Cyrillic characters in the font.
TBool |
TRUE if Cyrillic characters are supported |
inline TBool HasKana() const;
Checks for support of Japanese syllabic characters in the font. This function checks for the presence of Hiragana and Katakana syllabic characters, collectively called kana. These characters are not sufficient for the Japanese language, which also makes use of Chinese characters: see HasCJK().
TBool |
TRUE if Japanese characters are supported |
inline TBool HasHangul() const;
Checks for support of Korean Hangul characters in the font. Korean may also make use of Chinese characters: see HasCJK().
TBool |
TRUE if Korean characters are supported |
inline TBool HasCJK() const;
Checks for support of Chinese ideographs used in Chinese, Japanese and Korean.
TBool |
TRUE if Chinese ideographs are supported |
TBool IsSymbol() const;
Checks if the typeface contains symbols only.
TBool |
TRUE if the typeface contains symbols only |
TBool IsBold() const;
Checks if the typeface is inherently bold..
TBool |
TRUE if the typeface is inherently bold |
TBool IsItalic() const;
Checks if the typeface is inherently italic.
TBool |
TRUE if the typeface is inherently italic |
TBool IsSerif() const;
Checks if the typeface has serifs.
TBool |
TRUE if the typeface has serifs |
TBool IsMonoWidth() const;
Checks if all the characters have the same width.
TBool |
TRUE if all the characters have the same width |
TPtrC Name() const;
Returns the name of the typeface.
TPtrC |
Descriptor containing typeface name |
const TUint* Coverage() const;
Returns a pointer to the 128-bit coverage bitmap (each bit represents a subset of Unicode as defined in the TrueType documentation under the OS/2 table). The coverage bitmap is an array of 4 32-bit integers. Each bit that is set represents a particular subset of Unicode that is supported. When no information is available all four integers are zero.
Note: Some useful values are defined as constants in this class.
a pointer to the 128-bit coverage bitmap. |
void SetName(const TDesC& aName);
Sets the name attribute
const TDesC& aName |
Descriptor containing typeface name |
void SetCoverage(TUint aCoverage0,TUint aCoverage1 = 0,TUint aCoverage2 = 0,TUint aCoverage3 = 0);
Sets the coverage attribute.
TUint aCoverage0 |
bits 0-31 |
TUint aCoverage1 = 0 |
bits 32-63 |
TUint aCoverage2 = 0 |
bits 64-95 |
TUint aCoverage3 = 0 |
bits 96-127 |
void SetBold(TBool aBold);
Set the bold attribute to the value of the argument aBold.
TBool aBold |
The bold attribute takes the value of aBold. |
void SetItalic(TBool aItalic);
Set the italic attribute to the value of the argument aItalic.
TBool aItalic |
The italic attribute takes the value of aItalic. |
void SetSerif(TBool aSerif);
Set the serif attribute to the value of the argument aSerif.
TBool aSerif |
The serif attribute takes the value of aSerif. |
void SetMonoWidth(TBool aMonoWidth);
Set the mono-width attribute to the value of the argument aMonoWidth.
TBool aMonoWidth |
The mono-width attribute takes the value of aMonoWidth. |
TInt operator==(const TOpenFontFaceAttribBase& aAttrib) const;
Compares for equality
const TOpenFontFaceAttribBase& aAttrib |
object of TOpenFontFaceAttribBase or derived class. |
TInt |
Returns 0 if the values are equal |
Enumeration for Languages |
Range of unicode values for characters in set |
0000-007F |
|
0370-03FF |
|
0400-04FF |
|
0530-058F |
|
0590-05FF |
|
0600-06FF |
|
0900-097F |
|
0980-09FF |
|
0A00-0A7F |
|
0A80-0AFF |
|
0B00-0B7F |
|
0B80-0BFF |
|
0C00-0C7F |
|
0C80-0CFF |
|
0D00-0D7F |
|
0E00-0E7F |
|
0E80-0EFF |
|
10A0-10FF |
|
1100-11FF |
Note: This list is incomplete; see the TrueType documentation for other values.
|
|
|
|
|
|
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |