Match quad (dx11.layer) size to text (dx11.layer) size?

Hey Gang!

I’m trying to create a dynamic quad to serve as the background for text. I’d like it to adjust it’s width and height according to the size of the string displayed by the text node.

But I’m getting inconsistent amounts of border space with my current method :P

Any better way to get the size of the text? Any help appreciated :D



The node called GlyphInfo, bit more nodes, but seems quite solid

and there is also this approach:

textstuff.v4p (19.7 KB)


Amazing, @antokhio!

I don’t think I would have ever stumbled across GlyphInfo :P

Many thanks :D

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.