ot_math_get_glyph_assembly
Description:
[ Version ( since = "1.3.3" ) ]
public uint ot_math_get_glyph_assembly (Font font, Codepoint glyph, Direction direction, uint start_offset, out unowned OtMathGlypthPart[] parts, out Position italics_correction)
Fetches the GlyphAssembly for the specified font, glyph index, and direction.
Returned are a list of OtMathGlypthPart glyph parts that can be used to draw the glyph and an italics-correction value (if one is defined in the font).
<note>The direction parameter is only used to select between horizontal or vertical directions for the construction. Even
though all Direction values are accepted, only the result of
HB_DIRECTION_IS_HORIZONTAL is considered.</note>
Parameters:
| font |
Font to work upon |
| glyph |
The index of the glyph to stretch |
| direction |
direction of the stretching (horizontal or vertical) |
| start_offset |
offset of the first glyph part to retrieve |
| parts |
the glyph parts returned |
| italics_correction |
italics correction of the glyph assembly |
| parts_count |
Input = maximum number of glyph parts to return; Output = actual number of parts returned |
Returns:
|
the total number of parts in the glyph assembly |