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
Question for @trimental since I'm not familiar with the new text system (and was only vaguely familiar with the last one)
It seems like the proper way to handle anchor links now that we support footnotes is to have the anchor attached to the text within a textbox instead of the textbox itself. This way we can have multiple anchors in the same textbox e.g.
This textbox[^1] has two footnotes[^2]
and we can have positioning right in terms of anchors within a textbox e.g. if the above text ran over multiple lines then we want the anchor to be attached to the correct line within the textbox. If this wasn't the case then we could just have a vec of anchors for a textbox and call it a day
I'm opening this issue because I'm not really sure what the appropriate way to figure out the position of text within a textbox. After getting that figured out it should be simple enough to implement the above
The text was updated successfully, but these errors were encountered:
We could move the anchor hashmap out of positioner perhaps to src renderer and have the anchor update everytime the text is layedout. That would presumably be done inside here
Downside would be having to pass around the anchor map everywhere text is sized, layedout, etc. But perhaps we can just stick in the TextSystem struct.
Question for @trimental since I'm not familiar with the new text system (and was only vaguely familiar with the last one)
It seems like the proper way to handle anchor links now that we support footnotes is to have the anchor attached to the text within a textbox instead of the textbox itself. This way we can have multiple anchors in the same textbox e.g.
and we can have positioning right in terms of anchors within a textbox e.g. if the above text ran over multiple lines then we want the anchor to be attached to the correct line within the textbox. If this wasn't the case then we could just have a vec of anchors for a textbox and call it a day
I'm opening this issue because I'm not really sure what the appropriate way to figure out the position of text within a textbox. After getting that figured out it should be simple enough to implement the above
The text was updated successfully, but these errors were encountered: