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

FEATURE REQUEST: A font "size" attribute within StandardXMLAttributesResolver would be immensely useful. #141

Open
pkclsoft opened this issue Feb 24, 2022 · 0 comments

Comments

@pkclsoft
Copy link

I've tried to implement this in my own subclass of StandardXMLAttributesResolver, however we don't seem to have enough access to the information required. Originally, I was going to implement it as a string point size (which would be normal), but given the font size of the active style, when the attribute is parsed may provide something specific to a device class, I thought it would be more useful to add an attribute called "fontScale" so that you could scale the font up or down.

For this to work, I think we also need the ability to apply an attribute to whatever the "current" or "active" style is.

e.g.

"This is normal, <activeStyle fontScale="1.5">but this text is larger by half, and < activeStyle fontScale="0.5">this is smaller by half.; returning to normal size now".

Would render something like:

image

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