Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
28 const TUid KFontGetShaping = {0x10274246};
29 const TUid KFontDeleteShaping = {0x102744D7};
31 /** Internal class describing shaping information. */
35 /** Number of glyphs output. */
37 /** Number of characters consumed from the input. */
39 /** Reserved for future expansion. */
41 /** Reserved for future expansion. */
43 /** The glyph, position and indices data.
45 The first iGlyphCount * 4 bytes contain the glyph codes
46 as 2-byte values. The next iGlyphCount * 4 + 4 bytes contain the
47 positions in which these glyphs are to be drawn, in pixels, taking
48 the original pen position as origin, with the x axis going right and
49 the y axis going down. The next iGlyphCount * 2 bytes contain the
50 indices of the characters in the input string that correspond to the
53 The final entry in the position array is the total advance of the text.
55 Therefore this buffer is actually iGlyphCount * 10 + 4 bytes long. */
59 /** For CFont::ExtendedFunctions aParam argument, with KFontGetShaping
61 class TFontShapeFunctionParameters
64 /** The text, including context. */
66 /** The start of the meat within iText. */
68 /** The end of the meat within iText. */
72 /** Language code. 0 for default. */
74 /** Output from the shaper; a TShapeHeader on the shared heap. */
75 const TShapeHeader* iShapeHeaderOutput;
78 /** For CFont::ExtendedFunctions aParam argument, with KFontDeleteShaping
80 class TFontShapeDeleteFunctionParameters
83 const TShapeHeader* iShapeHeader;