05-11-2015, 01:12 AM
Hello All,
Does anyone know how to center text, even multiline, in OnScreenDisplay
eg. something like "This[]is multiline[]text[]that is[]centered" -->
I have to resize the vertical and horizontal size of the OSD dimensions depending on the size of other onscreen elements. Ideally, I would also change the size of the font depending on how much room there is and text size.
This seems very complicated if starting from scratch but I think there is something already like this in placing text onto dialog elements like buttons where there is a RIGHT or LEFT or CENTERED style.
If there was a way to figure it out in text formatting function first and then transfer it to OSD, that would be fine but don't know such a function.
Thanks for any thoughts!
S
Does anyone know how to center text, even multiline, in OnScreenDisplay
eg. something like "This[]is multiline[]text[]that is[]centered" -->
I have to resize the vertical and horizontal size of the OSD dimensions depending on the size of other onscreen elements. Ideally, I would also change the size of the font depending on how much room there is and text size.
This seems very complicated if starting from scratch but I think there is something already like this in placing text onto dialog elements like buttons where there is a RIGHT or LEFT or CENTERED style.
If there was a way to figure it out in text formatting function first and then transfer it to OSD, that would be fine but don't know such a function.
Thanks for any thoughts!
S