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

Functionality for getting bounding box of text from satori #586

Open
digitaltembo opened this issue Jan 29, 2024 · 0 comments
Open

Functionality for getting bounding box of text from satori #586

digitaltembo opened this issue Jan 29, 2024 · 0 comments

Comments

@digitaltembo
Copy link

digitaltembo commented Jan 29, 2024

Feature Request

Description

I would like to render a dynamic SVG in two different ways, depending on whether or not the text fits within a single line. It looks like this functionality is part of the underlying opentypes.js library, but it would be nice if there was an exported function that exposes Font.getAdvancedWidth or Path.getBoundingBox from the font objects that Satori is already loading.

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