Text size #619
-
Hi guys, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The vsg::StandardLayout class is the normal to set the position, orientation and size of the text. The orientation and size are setting is combined into the StandardLayout.horizontal and StandardLayout.vertical members that defines the two axis and scale of each glyph. The length of the horizontal and vertical effectively set the size. The vsgtext example illustrates setup using StandardLayout:
You can also decorate a vsg::Text/TextGroup with a MatrixTransform to scale them, if you want to vary the size dynamically then that's the way I'd do it. |
Beta Was this translation helpful? Give feedback.
The vsg::StandardLayout class is the normal to set the position, orientation and size of the text. The orientation and size are setting is combined into the StandardLayout.horizontal and StandardLayout.vertical members that defines the two axis and scale of each glyph. The length of the horizontal and vertical effectively set the size.
The vsgtext example illustrates setup using StandardLayout: