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 / Print characters like "äöüàáñ¡" after bitmap font + subimages

Author
Message
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 18th Mar 2014 19:10
Hi!

I have used some of the bitmap-font generators found in this forum and also read that special characters (äöüàáñ¡) would be implemented in future versions of AGK. That was some time ago and still nothing new on this subject.

Does anyone know of an "easy" solution for this? Since it doesn't look nice when I introduce a word in my app and the typography changes for those "special" characters.

Any help would be much appreciated.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Mar 2014 00:19
i use one bitmap font image with all chars from 0-255 and set it to
...ExtendedFontImage
and
...FontImage
means one subimages file that have all coords.
no problem with ÄÖÜ...

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 19th Mar 2014 08:06
Thanks, Markus.

That should work. Do you create the bitmap with all characters yourself or do you use any programm for that? Creating the PNG image is no problem but creating the subimages TXT file can be tedious.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Mar 2014 13:59
long ago i had made a bitmap font tool in blitz basic.
but this runs only from ide,means it have no gui.
it used the windows ttf fonts.
do you have blitz basic too?

you can also generate a subimages file with a simple
agk app that records the x,y,w,h position for each char
from a sprite u see as background.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 19th Mar 2014 21:16
Thanks again, Markus.

I guess I should code a tool myself. I also have Darkbasic Pro. It's a pity sometimes we have to spend time coding tools for things like this. I created some tools to manage levels of a game a was coding for MSX (Z80).
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Mar 2014 13:48
that is my code for blitz3d.



AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Mar 2014 18:33
I've been looking everywhere for an app that would help with the subimages text. Prof has a tool I was using this week, but I get funny results in AGK. Some letters look crisp while others come out blurry. I was trying to locate his thread to share with you when I stumbled upon this.
http://forum.thegamecreators.com/?m=forum_view&t=189225&b=41

This app is awesome! Great interface with good clean results. I think that thread should be stickied.


I've also added his app onto my website with a link to his site to download it, but I've also mirrored the download on mine just in case. http://www.zimnox.com/resources/agk/utilities/

Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 21st Mar 2014 06:58
@Markus: Thanks, I'll have a look at your source.

@Phaelax: Thanks. I use this tool myself but you get only until character 126. There is no way you can get characters like "äöüñ".
blastar
10
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Posted: 21st Mar 2014 21:40
hello,
try this code with the font i create some days ago, it's arial with all chars 32-255.

Attachments

Login to view attachments
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 21st Mar 2014 23:29
How did you create "arial_256.png" and "Arial_256 subimages.txt"?
blastar
10
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Posted: 22nd Mar 2014 20:01 Edited at: 22nd Mar 2014 21:59
i created this files with a few clicks... in my private agk-fonteditor i wrote some time ago. if there is any need i will release a (bug fixed) beta within the next few days.

Attachments

Login to view attachments
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 23rd Mar 2014 18:36
@blastar: That would be nice.
blastar
10
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Alfonso
12
Years of Service
User Offline
Joined: 11th Jun 2011
Location:
Posted: 24th Mar 2014 21:32
Thanks. That's a really good tool. Much appreciated

Login to post a reply

Server time is: 2024-05-04 23:51:36
Your offset time is: 2024-05-04 23:51:36