otLayoutGetBaselineWithFallback2

Fetches a baseline value from the face, and synthesizes it if the font does not have it.

This function is like harfbuzz.global.otLayoutGetBaselineWithFallback but takes #hb_script_t and #hb_language_t instead of OpenType #hb_tag_t.

Parameters

font harfbuzz.font.Font

a font

baselineTag harfbuzz.types.OtLayoutBaselineTag

a baseline tag

direction harfbuzz.types.Direction

text direction.

script harfbuzz.types.Script

script.

language harfbuzz.types.Language

language, currently unused.

coord harfbuzz.types.Position

baseline value if found.