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 / Font spacing in edit box

Author
Message
Timshark
17
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 19th Nov 2014 05:03 Edited at: 19th Nov 2014 05:50
Is it possible to set the font spacing in an edit box?

I´m using the default font in my edit box by loading "asciiExt.png" and "ascii.png" and setting them with SetEditBoxFontImage() and SetEditBoxExtendedFontImage() but the font spacing is too large. Much larger than the same font with Text and Print.

I never want what I know.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Nov 2014 11:21
I requested this a long time ago on the bug board but I don't think anything came out of it.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Nov 2014 12:29
do you use a font subimages.txt file with it?

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Timshark
17
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 19th Nov 2014 14:06 Edited at: 19th Nov 2014 14:08
I use the built in default images "asciiExt.png" and "ascii.png". I don´t know where those files are since it´s the default agk font and I dont know if those come with a *.txt file along them

Btw: Im using Mac

I never want what I know.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Nov 2014 15:17
this should be the filename
"ascii subimages.txt"
"asciiExt subimages.txt"

contains one row each char 0-255:x:y:w:h
example means char 32 (space), left top 0,0 width height 16x16
32:0:0:16:16

myself i useing one image for all chars and give it
SetEditBoxFontImage() and SetEditBoxExtendedFontImage()


http://forum.thegamecreators.com/?m=forum_view&t=208916&b=41

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Timshark
17
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 19th Nov 2014 17:55
I just made a new font with Fontmaker and that helps.

Thanks Markus

I never want what I know.

Login to post a reply

Server time is: 2024-11-25 11:15:35
Your offset time is: 2024-11-25 11:15:35