I am trying to use the 'BASE' table in OpenType font and the following code returns None for some reason:
let BASE_TABLE_TAG = 0x62736c6e; // The hex code for BASE
println!("{:?}", font.load_font_table(BASE_TABLE_TAG)); // prints None
I am also curious if font_kit supports a better way to determine the baseline for multiple fonts on the same line. Currently I am using the ascent value in font metrics as the shift from the top to the baseline but different fonts have different ascents and I couldn't figure out a way to align these fonts uniformly.
I am trying to use the 'BASE' table in OpenType font and the following code returns None for some reason:
I am also curious if font_kit supports a better way to determine the baseline for multiple fonts on the same line. Currently I am using the
ascent
value in font metrics as the shift from the top to the baseline but different fonts have different ascents and I couldn't figure out a way to align these fonts uniformly.