Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'load_font_table' returns None for BASE table #182

Open
kevinyang372 opened this issue Apr 30, 2021 · 0 comments
Open

'load_font_table' returns None for BASE table #182

kevinyang372 opened this issue Apr 30, 2021 · 0 comments

Comments

@kevinyang372
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant