get_glyph_extents_for_origin


Description:

[ Version ( since = "0.9.2" ) ]
public Bool get_glyph_extents_for_origin (Codepoint glyph, Direction direction, out GlyphExtents extents)

Fetches the GlyphExtents data for a glyph ID in the specified font, with respect to the origin in a text segment in the specified direction.

Calls the appropriate direction-specific variant (horizontal or vertical) depending on the value of direction.

Parameters:

glyph

The glyph ID to query

direction

The direction of the text segment

extents

The GlyphExtents retrieved

font

Font to work upon

Returns:

`true` if data found, `false` otherwise