COpenFontLinkedTypefaceSpecification Class Reference
class COpenFontLinkedTypefaceSpecification : public CBase
|
This class contains the specification of a linked typeface passed from font store to a rasterizer. It is made up of groups and typefaces. A group (
CLinkedTypefaceGroup
) contains a number of attributes that can apply to similar typefaces within the linked typeface. One or more typeface may belong to a group. Typefaces (
COpenFontLinkedTypefaceElementSpec
) specifiy which typefaces are used within this linked font.
After creation, the linked typeface can be used as if it were any other typeface. This assumes that there is a rasteriser that supports this feature available. When looking up characters the first typeface containing the required character is used.
KMaxLinkedTypefaces and KMaxLinkedTypefaceGroups define the maximum number of typefaces and groups that can be added to the specification.
COpenFontLinkedTypefaceElementSpec
CLinkedTypefaceGroup
CLinkedTypefaceSpecification
CLinkedTypefaceElementSpec
Inherits from
-
COpenFontLinkedTypefaceSpecification
Constructor & Destructor Documentation
COpenFontLinkedTypefaceSpecification()
COpenFontLinkedTypefaceSpecification
|
(
|
)
|
[private]
|
~COpenFontLinkedTypefaceSpecification()
IMPORT_C
|
~COpenFontLinkedTypefaceSpecification
|
(
|
)
|
|
Member Functions Documentation
AddLinkedTypefaceGroupL(CLinkedTypefaceGroup &)
Adds the group specified to this specification The specification takes ownership of the group if addition is successful.
AddTypefaceAtBackL(COpenFontLinkedTypefaceElementSpec &)
Adds the supplied
CLinkedTypefaceElementSpec
to the Linked Typeface specification. The element is placed at the back of the specification. Adding a canonical element will only be successful if one has not already been added. The specification takes ownership of the element specification.
AddTypefaceAtIndexL(COpenFontLinkedTypefaceElementSpec &, TInt)
Adds the supplied
CLinkedTypefaceElementSpec
to the Linked Typeface specification. The element is placed at the specified index. Adding a canonical element will only be successful if one has not already been added. The specification takes ownership of the element specification.
CanonicalIndex()
IMPORT_C
TInt
|
CanonicalIndex
|
(
|
)
|
const
|
ConstructL(const TDesC &)
void
|
ConstructL
|
(
|
const
TDesC
&
|
aName
|
)
|
[private]
|
ConstructL(const TLinkedTypefaceSpecificationArgs &)
DoAddTypefaceL(COpenFontLinkedTypefaceElementSpec &, TInt)
Group(TInt)
Returns the linked typeface group at the specified index within the specification. The Index ranges from 0 to the value returned by NumberOfGroups()-1.
GroupById(TInt)
Returns the linked typeface group with the specified group ID.
Parameters
TInt
aGroupId
|
The linked typeface group ID
|
GroupCount()
IMPORT_C
TInt
|
GroupCount
|
(
|
)
|
const
|
Name()
IMPORT_C
TPtrC
|
Name
|
(
|
)
|
const
|
Returns the name of this linked typeface
NewLC(const TDesC &)
This function constructs the linked typeface specification and places it on the
CleanupStack
.
Parameters
const
TDesC
& aName
|
The name of the linked typeface. This name should not be the same as an existing typeface.
|
NewLC(const TLinkedTypefaceSpecificationArgs &)
This function constructs the linked typeface specification from the passed
TLinkedTypefaceSpecificationArgs
and places it on the
CleanupStack
.
WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.
RemoveLinkedTypefaceGroup(TInt)
IMPORT_C
TInt
|
RemoveLinkedTypefaceGroup
|
(
|
TInt
|
aGroupId
|
)
|
|
This will remove the group and all the elements associated with it.
Parameters
TInt
aGroupId
|
The Id of the group to be removed
|
RemoveTypeface(TInt)
IMPORT_C
TInt
|
RemoveTypeface
|
(
|
TInt
|
aIndex
|
)
|
|
Removes the element spec at the specified index from this specification. This function deletes the element spec. If the element is the only one within its group the group is also removed and deleted from the specification.
Parameters
TInt
aIndex
|
the index of the element spec to be removed
|
Typeface(TInt)
Returns the linked typeface at the specified index.
COpenFontLinkedTypefaceSpecification::NumberOfTypefaces()
TypefaceCount()
IMPORT_C
TInt
|
TypefaceCount
|
(
|
)
|
const
|
Returns the number of typefaces that have been added to this specification
Member Data Documentation
RPointerArray< CLinkedTypefaceGroup > iGroups
HBufC * iLinkedTypefaceFileName
HBufC
*
|
iLinkedTypefaceFileName
|
[private]
|
HBufC * iLinkedTypefaceName
HBufC
*
|
iLinkedTypefaceName
|
[private]
|
RPointerArray< COpenFontLinkedTypefaceElementSpec > iTypefaces
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.