TOpenFontFaceAttribBase Class Reference

#include <openfont.h>

class TOpenFontFaceAttribBase

Detailed Description

Font attribute base class.

This class is not intended for user derivation.

See also: TOpenFontFaceAttrib TOpenFontSpec

Member Attribute Documentation

iCoverage

TUint iCoverage[protected]

iName

TBufC< ENameLength >iName[protected]

iReserved

TInt32 iReserved[protected]

iStyle

TInt iStyle[protected]

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
ELatinSet0x1
EGreekSet0x80
ECyrillicSet0x200
EArmenianSet0x400
EHebrewSet0x800
EArabicSet0x2000
EDevanagariSet0x8000
EBengaliSet0x10000
EGurmukhiSet0x20000
EGujuratiSet0x40000
EOriyaSet0x80000
ETamilSet0x100000
ETeluguSet0x200000
EKannadaSet0x400000
EMalayalamSet0x800000
EThaiSet0x1000000
ELaoSet0x2000000
EGeorgianSet0x8000000
EHangulJamoSet0x10000000

Enum anonymous

EnumeratorValueDescription
ESymbolSets0xFFFE
EKanaSets0x60000
EHangulSet0x100000
ECJKSet0x8000000

Enum anonymous

EnumeratorValueDescription
EBold0x1
EItalic0x2
ESerif0x4
EMonoWidth0x8

Enum anonymous

EnumeratorValueDescription
ENameLength32

Constructor & Destructor Documentation

TOpenFontFaceAttribBase ( )

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.

Member Function Documentation

Coverage ( )

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.

See also: SetCoverage()

Returns: A pointer to the flags that indicate the font's Unicode coverage. The flags are stored in an array of four 32-bit integers. When no information is available, all four integers are zero.

HasCJK ( )

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.

Returns: ETrue if Chinese ideographs are supported.

HasCyrillic ( )

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.

Returns: ETrue if Cyrillic characters are supported.

HasGreek ( )

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.

Returns: ETrue if Greek characters are supported.

HasHangul ( )

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.

See also: HasCJK()

Returns: ETrue if Korean characters are supported

HasKana ( )

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.

See also: HasCJK()

Returns: ETrue if Japanese characters are supported

HasLatin ( )

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.

Returns: ETrue if Latin characters are supported

IsBold ( )

TBool IsBold()const [inline]

Tests if the typeface is inherently bold.

Returns: ETrue if the typeface is inherently bold.

IsItalic ( )

TBool IsItalic()const [inline]

Tests if the typeface is inherently italic.

Returns: ETrue if the typeface is inherently italic.

IsMonoWidth ( )

TBool IsMonoWidth()const [inline]

Tests if all the characters have the same width.

Returns: ETrue if all the characters have the same width.

IsSerif ( )

TBool IsSerif()const [inline]

Tests if the typeface has serifs.

Returns: ETrue if the typeface has serifs.

IsSymbol ( )

TBool IsSymbol()const [inline]

Tests if the typeface contains symbols only.

Returns: ETrue if the typeface contains symbols only.

Name ( )

TPtrC Name()const [inline]

Gets the typeface's name.

Returns: Descriptor containing typeface name.

SetBold ( TBool )

voidSetBold(TBoolaBold)[inline]

Sets the bold attribute.

ParameterDescription
aBoldThe bold attribute takes this value: ETrue or EFalse.

SetCoverage ( TUint, TUint, TUint, TUint )

voidSetCoverage(TUintaCoverage0,
TUintaCoverage1 = 0,
TUintaCoverage2 = 0,
TUintaCoverage3 = 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.

ParameterDescription
aCoverage0The first set of coverage flags (bits 0-31).
aCoverage1The second set of coverage flags (bits 32-63).
aCoverage2The third set of coverage flags (bits 64-95).
aCoverage3The fourth set of coverage flags (bits 96-127).

SetItalic ( TBool )

voidSetItalic(TBoolaItalic)[inline]

Sets the italic attribute.

ParameterDescription
aItalicThe italic attribute takes this value ETrue or EFalse.

SetMonoWidth ( TBool )

voidSetMonoWidth(TBoolaMonoWidth)[inline]

Sets the mono-width attribute.

ParameterDescription
aMonoWidthThe mono-width attribute takes this value: ETrue or EFalse.

SetName ( const TDesC & )

voidSetName(const TDesC &aName)[inline]

Sets the name attribute.

ParameterDescription
aNameDescriptor containing typeface name.

SetSerif ( TBool )

voidSetSerif(TBoolaSerif)[inline]

Sets the serif attribute.

ParameterDescription
aSerifThe serif attribute takes this value ETrue or EFalse.

operator== ( const TOpenFontFaceAttribBase & )

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.

ParameterDescription
aAttribThe font attributes to compare. This is an object of TOpenFontFaceAttribBase or of a derived class.

Returns: ETrue if the values are equal.