Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By jim829

Thread: Slick - Text with border

  1. #1
    HoverCatz is offline Member
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Default Slick - Text with border

    Im posting here mainly because the slickforum is dead. 2+ week responsetime on average. Most posts dont get replies.

    How do I do this?
    Slick - Text with border-bbf066fbfe9fdd1ac56c9a6a1eb32e8a.png

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,033
    Rep Power
    6

    Default Re: Slick - Text with border

    Looks like it's nothing more than an Image or Icon with text on it. Check out the tutorials in my signature. Click on the index and look for working with images.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    HoverCatz is offline Member
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Default Re: Slick - Text with border

    Haha thanks for your reply :P
    But I already know that, what I dont know is how to get the border around the text.
    Do I simply use a font with border applied?

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,033
    Rep Power
    6

    Default Re: Slick - Text with border

    I have never done it before so I don't know. Some fonts may be simply designed to display the characters that way. I have use clip regions to control which part of the background is displayed inside the letters. Check this out --> Clipping the Drawing Region (The Java™ Tutorials > 2D Graphics > Advanced Topics in Java2D)

    Regards,
    Jim
    HoverCatz likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    HoverCatz is offline Member
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Default Re: Slick - Text with border

    Oh awesome! I would never have gotten this far without your help! Thanks :) :)

Similar Threads

  1. Slick: what does this line of code do?
    By krazyk in forum New To Java
    Replies: 1
    Last Post: 12-02-2012, 02:58 PM
  2. [Slick] Animating a GIF?
    By SX16 in forum Java 2D
    Replies: 0
    Last Post: 11-27-2011, 03:52 AM
  3. Replies: 6
    Last Post: 07-25-2011, 01:51 PM
  4. Replies: 0
    Last Post: 01-31-2011, 10:08 AM
  5. Set border
    By anilkumar_vist in forum New To Java
    Replies: 1
    Last Post: 02-06-2010, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •