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

SC1

SC2

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

and there is also this approach:
textstuff

textstuff.v4p (19.7 KB)

2 Likes

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.