Hello there!
I’m trying to develop a text editor (similar to Google Docs or Word).
I’m now working on the zooming part, to allow the user to zoom in & out of the page.
This requires sizing the entire page without manipulating the font size (to have consistent text orientation and words per page consistency), therefore I’m using a Scale Box to execute this zoom function.
I’ve tried using Render Transform Scale - but that’s of course not a good way because it will cause pixelation and unsharp text when zooming in.
So as for now I’m trying to size everything with a Scale Box, I’m using the User Specified Scale value to achieve the zooming effect while maintaining the same font size, etc.
My setup is placing an Editable Text within a Size Box (to preserve a constant page size) and wrapping that Size Box with a Scale Box (to scale the entire page while preserving the Aspect Ratio and everything inside correctly)
Sadly, it seems like the text is just not consistent with the Scale Box scaling function.
In User Specified Scale value of 1 the text will position itself in X,Y (in relation to the Size Box) and in User Specified Scale value of 2 it will be X+something, Y+something (in relation to the Size Box).
And really the text just jumps around with no presumable pattern. So I can’t even compensate for that inconsistent behavior.
I’ve added a video showcasing the weirdness:
Also a small project with the issue:
Text_ScaleBox_Glitch.rar (22.5 MB)
I’ve tried really isolating everything I can think of:
DPI Scaling, Auto Wrap, different anchors, really many many things with no success yet
This issue seems to be exclusive for text (buttons, images, etc, seems to scale correctly with a Scale Box and this method, but when adding a text with a few Shift + Enter’s and some lines, etc. → this glitch pops)
I read somewhere in the forums something about text not supporting linear scale.
Maybe that’s the issue?
Basically I want to achieve a consistent text orientation while zoom similar to what Docs or Word have.
Thanks for reading!
I hope someone has a clue regarding this