Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Best Method To Outline With A Color TTF Text?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 1st May 2017 02:06
Hi,

Getting into AppGameKit now.
What would be the best method to outline with a color TTF text?
I am new to AppGameKit and don't know the best method.
Thanks!

Jesse
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 1st May 2017 02:41 Edited at: 1st May 2017 05:30
Got it working, thanks - code is below:



JeZxLee
16BitSoft Inc.
Video Game Design Studio
http://www.16BitSoft.com
Xaron
10
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 2nd Jun 2017 09:43
This is very cool, thanks for that!
AjiMundi
9
Years of Service
User Offline
Joined: 28th Sep 2015
Location:
Posted: 3rd Jun 2017 02:29
So, basically, you create 9 extra text objects for every 1 outlined text object? Seems inefficient to me, but it does get the job done and can be used for any TTF fonts. If you know the fonts you want to use, it would be more efficient to just craft a special outline fonts, I guess.
It would be interesting to see if anyone could come up with better solution, but I'll keep this method in mind.
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 3rd Jun 2017 23:50
^this.

When I've needed this before, I just premake the 2 fonts (inner and outer) externally - done.

If you want to do it "that" way, just render a new font image with your 9 positions during initialization and recapture a new font from that - hey presto, an outline font in one text object?

Login to post a reply

Server time is: 2024-11-25 09:15:12
Your offset time is: 2024-11-25 09:15:12