You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: