fontGetGlyphExtentsForOrigin

fnharfbuzz.types.Bool fontGetGlyphExtentsForOrigin(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.Direction direction, out harfbuzz.types.GlyphExtents extents) nothrow

Fetches the #hb_glyph_extents_t 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

font#hb_font_t to work upon
glyphThe glyph ID to query
directionThe direction of the text segment
extentsThe #hb_glyph_extents_t retrieved

Returns

true if data found, false otherwise