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

Text rendering rewrite #256

Open
BigBadaboom opened this issue Jul 31, 2022 · 3 comments
Open

Text rendering rewrite #256

BigBadaboom opened this issue Jul 31, 2022 · 3 comments
Assignees
Milestone

Comments

@BigBadaboom
Copy link
Owner

The rendering of text is being completely rewritten. Among the improvements:

Not yet confirmed:

@BigBadaboom BigBadaboom added this to the 1.5 milestone Jul 31, 2022
@BigBadaboom BigBadaboom self-assigned this Jul 31, 2022
@theojarrus
Copy link

Hey! Any updates here? First of all, thanks for the work, incredible library, it even supports parsing nested svgs, which even standalone utilities, including android studio, cannot do. I'm writing a multi-platform library for chord images runtime generation and I really need a feature with text aligment (dominant-baseline etc). Is there any plans for this in the near future?

@theojarrus
Copy link

@BigBadaboom

@BigBadaboom
Copy link
Owner Author

Proper *-baseline support is awkward, because Android doesn't provide access to that sort of font metadata.
I have been trying to keep AndroidSVG as minimal as possible. So I am reluctant to add font file parsing to the code, just to access the font's BASE table. Probably the best solution I could achieve would be to use heuristics to estimate the values, as the CSS spec suggests..

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

2 participants