Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4075032
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:14:47+00:00 2026-05-20T17:14:47+00:00

Right now in my game I’m drawing true type fonts like this: for(int i

  • 0

Right now in my game I’m drawing true type fonts like this:

for(int i = linesSkipped; i <= maxitems + linesSkipped; ++i)
    {
        if(i >= (int)textRows.size())
        {
            break;
        }
        paintargs.graphics()->drawText(AguiPoint(textX - 2,
            textY - 2 + (i * getFont().getLineHeight())),
            textRows[i].c_str(),AguiColor(0,0,0),getFont());

        paintargs.graphics()->drawText(AguiPoint(textX + 2,
            textY + 2 + (i * getFont().getLineHeight())),
            textRows[i].c_str(),AguiColor(0,0,0),getFont());

        paintargs.graphics()->drawText(AguiPoint(textX,
            textY + (i * getFont().getLineHeight())),
            textRows[i].c_str(),AguiColor(255,128,0),getFont());

    }

So I draw it with an offset of 2, then with an offset of -1 .

It almost does what I want, but the top right and bottom left edges are still unstroked:

enter image description here

Is there a way to draw it such that it would look like stroking in Photoshop?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:14:48+00:00Added an answer on May 20, 2026 at 5:14 pm

    You need to draw the text in all corners! What you’re doing is drawing in the top-left corner and in the bottom-right corner, which is respectively X=-2, Y=-2 and X=2, Y=2.
    What you need to do, is to draw them in the bottom-left and the top-right corner too, which would be respectively X=-2, Y=2 and X=2, Y=-2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now for a Java course I'm trying to build a Mastermind-like game. In
Right now, I'm making Dungeon Master like game. The game have to be more
I use this constructor to make objects for a game. Right now, the series
So I'm developing and iPhone game right now and everything has been working just
I'm using glut for a game right now and I'm trying to keep the
I am just messing around trying to make a game right now, but I
Right now, I'm programming the networking for my online game, and I'm not really
I'm programming a game engine right now. The hardest part for me has been
I have a game I'm making in .NET at the moment. Right now I
I am working on a memory matching game. Right now, when the user clicks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.