Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: OPENFONT.H

Class TOpenFontFaceAttribBase

class TOpenFontFaceAttribBase;

Description

Font attribute base class.

This class is not intended for user derivation.

Members

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==()

See also:


Construction and destruction


TOpenFontFaceAttribBase()

inline TOpenFontFaceAttribBase();

Description

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.

[Top]


Member functions


HasLatin()

inline TBool HasLatin() const;

Description

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.

Return value

TBool

ETrue if Latin characters are supported


HasGreek()

inline TBool HasGreek() const;

Description

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.

Return value

TBool

ETrue if Greek characters are supported.


HasCyrillic()

inline TBool HasCyrillic() const;

Description

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.

Return value

TBool

ETrue if Cyrillic characters are supported.


HasKana()

inline TBool HasKana() const;

Description

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.

Return value

TBool

ETrue if Japanese characters are supported

See also:


HasHangul()

inline TBool HasHangul() const;

Description

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.

Return value

TBool

ETrue if Korean characters are supported

See also:


HasCJK()

inline TBool HasCJK() const;

Description

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.

Return value

TBool

ETrue if Chinese ideographs are supported.


IsSymbol()

inline TBool IsSymbol() const;

Description

Tests if the typeface contains symbols only.

Return value

TBool

ETrue if the typeface contains symbols only.


IsBold()

inline TBool IsBold() const;

Description

Tests if the typeface is inherently bold.

Return value

TBool

ETrue if the typeface is inherently bold.


IsItalic()

inline TBool IsItalic() const;

Description

Tests if the typeface is inherently italic.

Return value

TBool

ETrue if the typeface is inherently italic.


IsSerif()

inline TBool IsSerif() const;

Description

Tests if the typeface has serifs.

Return value

TBool

ETrue if the typeface has serifs.


IsMonoWidth()

inline TBool IsMonoWidth() const;

Description

Tests if all the characters have the same width.

Return value

TBool

ETrue if all the characters have the same width.


Name()

inline TPtrC Name() const;

Description

Gets the typeface's name.

Return value

TPtrC

Descriptor containing typeface name.


Coverage()

inline const TUint *Coverage() const;

Description

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.

Return value

const TUint *

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.

See also:


SetName()

inline void SetName(const TDesC &aName);

Description

Sets the name attribute.

Parameters

const TDesC &aName

Descriptor containing typeface name.


SetCoverage()

inline void SetCoverage(TUint aCoverage0, TUint aCoverage1=0, TUint aCoverage2=0, TUint aCoverage3=0);

Description

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.

Parameters

TUint aCoverage0

The first set of coverage flags (bits 0-31).

TUint aCoverage1

The second set of coverage flags (bits 32-63).

TUint aCoverage2

The third set of coverage flags (bits 64-95).

TUint aCoverage3

The fourth set of coverage flags (bits 96-127).


SetBold()

inline void SetBold(TBool aBold);

Description

Sets the bold attribute.

Parameters

TBool aBold

The bold attribute takes this value: ETrue or EFalse.


SetItalic()

inline void SetItalic(TBool aItalic);

Description

Sets the italic attribute.

Parameters

TBool aItalic

The italic attribute takes this value ETrue or EFalse.


SetSerif()

inline void SetSerif(TBool aSerif);

Description

Sets the serif attribute.

Parameters

TBool aSerif

The serif attribute takes this value ETrue or EFalse.


SetMonoWidth()

inline void SetMonoWidth(TBool aMonoWidth);

Description

Sets the mono-width attribute.

Parameters

TBool aMonoWidth

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


operator==()

inline TBool operator==(const TOpenFontFaceAttribBase &aAttrib) const;

Description

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.

Parameters

const TOpenFontFaceAttribBase &aAttrib

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

Return value

TBool

ETrue if the values are equal.

[Top]


Member enumerations


Enum anonymous

n/a

Description

ELatinSet

EGreekSet

ECyrillicSet

EArmenianSet

EHebrewSet

EArabicSet

EDevanagariSet

EBengaliSet

EGurmukhiSet

EGujuratiSet

EOriyaSet

ETamilSet

ETeluguSet

EKannadaSet

EMalayalamSet

EThaiSet

ELaoSet

EGeorgianSet

EHangulJamoSet


Enum anonymous

n/a

Description

ESymbolSets

EKanaSets

EHangulSet

ECJKSet


Enum anonymous

n/a

Description

EBold

EItalic

ESerif

EMonoWidth


Enum anonymous

n/a

Description

ENameLength

[Top]


Member data


iName

protected: TBufC< ENameLength > iName;

Description


iCoverage

protected: TUint iCoverage;

Description


iStyle

protected: TInt iStyle;

Description


iReserved

protected: TInt32 iReserved;

Description