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.

AppGameKit Classic Chat / AGK's Subimage for fonts does not allow special characters?!

Author
Message
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 4th Mar 2018 18:04
Help! It appears that AGK's in-built system for image fonts plus subimage file limits the range of characters you can access via the subimages text file?!?!?!?! So, for example I have code 169 (the copyright symbol) in my subimages text file but it does not use the correct image from the atlas image (as the subimages files states it should) but instead ignores is and uses the standard text version of the copyright symbol.

Surely we should have access to all the characters 0-255???
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 4th Mar 2018 19:13 Edited at: 4th Mar 2018 22:06
The documentation for AppGameKit specifically staes that you have access to chr(32) Space through to chr(127) DEL. This is well documented.

You could place the copyright symbol within that range and use an alternate character or map.
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 4th Mar 2018 20:49
Yeah, bad assumption on my part but shame that restriction exists. I'm currently already doing as you suggest, using characters within the range for something else, but that, along with desire for European languages and you need more characters available to you. Covering the major parts of Europe for example requires an extra... 40+ characters (eg ÅÄÀÂÁÃĄÆÈÉÊËĘÎÏÌÍŒÔØÖÓÕÒÜÙÛÚÇĆŁñŃߌŹŻ).

So, being able to access the full range would be great. Can't think why it wouldn't be so?

Paul/TGC - any chance of having this changed? Pretty please - I need it for my platform game
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 4th Mar 2018 22:08
Well, you could simply try SetTextExtendedFontImage( )

This function allows you to set the image used for characters chr(128) to chr(255) with a different image. it looks like AppGameKit already has what you want built in.
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 5th Mar 2018 20:48
Wow! Yes, I'd not seen that command - yes, that appears to be the solution. Wonder why they are separated?! I'll need to see if I can point both to the same image ID...

Thanks Bengismo!
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 7th Mar 2018 00:29 Edited at: 7th Mar 2018 00:32
Quote: " Wonder why they are separated?! I'll need to see if I can point both to the same image ID..."

i used also one image for 0-255 in SetTextFontImage and SetTextExtendedFontImage, the subimages file know the position of all chars
my favourite code page here is windows 1252
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : NVIDIA (390.65) GeForce GTX 1050 Ti : Mac mini OS High Sierra (10.13)
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 8th Mar 2018 09:19
Cool. So you actually only need one subimages text file?
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 9th Mar 2018 02:41
Quote: "So you actually only need one subimages text file?"

yes
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : NVIDIA (390.65) GeForce GTX 1050 Ti : Mac mini OS High Sierra (10.13)

Login to post a reply

Server time is: 2024-09-30 15:23:01
Your offset time is: 2024-09-30 15:23:01