fontGetGlyphExtentsForOrigin

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 harfbuzz.font.Font

#hb_font_t to work upon

glyph harfbuzz.types.Codepoint

The glyph ID to query

direction harfbuzz.types.Direction

The direction of the text segment

extents harfbuzz.types.GlyphExtents

The #hb_glyph_extents_t retrieved

Return Value

Type: harfbuzz.types.Bool

true if data found, false otherwise