class MOpenFontTrueTypeExtension |
TrueType extension for Open Fonts.
If an open font is able to load TrueType or OpenType tables it should derive from this class.
This class will be used by
This interface should be returned by the overridden COpenFont::ExtendedInterface function when KUidOpenFontTrueTypeExtension is supplied as the UID. KUidOpenFontTrueTypeExtension
Public Member Functions | |
---|---|
TAny * | GetTrueTypeTable(TInt &, TUint32, TInt *) |
TBool | HasTrueTypeTable(TUint32) |
TInt | ReleaseTrueTypeTable(TAny *) |
TAny * | GetTrueTypeTable | ( | TInt & | aError, |
TUint32 | aTag, | |||
TInt * | aLength | |||
) | [pure virtual] |
Returns the specified table. The table need not be released by the caller, so the deriver is responsible for ensuring that any memory allocated is ultimately cleaned up. The caller must not delete or modify the data returned. ReleaseTrueTypeTable
TInt & aError | Returns KErrNone if successful or one of the system-wide error codes if unsuccessful. Returns KErrNotSupported if the table does not exist in the font file. |
TUint32 aTag | The tag of the table, with the first character in the most significant byte. For example, the "vhea" table is obtained by passing in 'v'<<24 | 'h'<<16 | 'e'<<8 | 'a'. |
TInt * aLength | The length of the table in bytes that has been returned or 0 if unsuccessful. |
TBool | HasTrueTypeTable | ( | TUint32 | aTag | ) | [pure virtual] |
Determines if the font file has a particular table. GetTrueTypeTable
TUint32 aTag | The tag of the table as for GetTrueTypeTable. |
TInt | ReleaseTrueTypeTable | ( | TAny * | aTable | ) | [pure virtual] |
Releases a table obtained by GetTrueTypeTable. The caller must not use the table after this call. GetTrueTypeTable
TAny * aTable | The table to be released. |
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.