Jump to content

Canvas2D - Can I draw outline for Text2D?


Knight
 Share

Recommended Posts

Hiya Knight.

   Most people use a Rectangle2D as a parent to the Text2D.  Rectangle2D's have border-making toys, including round-corners.  I would show you a playground, but most/all Canvas2D playgrounds are currently broken.  Error:  e.Tools.getClassName is not a function, or something like that.

But yeah, make yourself a little textMaker() func that returns a bordered Rectangle2D with a Text2D child... should work fine (with a few alignment tweaks).  The FILL features of the Rectangle2D background... might be handy/fun, too (when using transparent background on Text2D child).  Party on!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...