My font is wack!
Displaying 1-10 of 10 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Arkhan

I made a font...er...I changed a font I downloaded from here to be yellow instead of white.

Either way, when i use it in a textbox, the magic purple around the letters isnt removed....resulting in some mighty ugly conversations!

any ideas?

Im not at the computer with the code on it right now, but all I did was follow that tutorial on here for creating a textbox function actually....

Posted on 2007-02-20 16:28:31

Overkill

Try... er... making the purple the proper shade of purple? It needs to be #FF00FF, RGB(255, 0, 255), you can find the exact shade of purple required in MS-Paint's color palette, and also basically any program that uses the identical custom color dialog, along the left side where predefined colors are listed. Make sure you're not saving as an indexed image like a GIF if you're using MS-Paint, because it'll always turn out bad. Instead save as png or bmp, png is preferred.

Posted on 2007-02-20 16:44:58

Arkhan

I did use magic purple, but for some reason its not working right... :-/

I tried the sully font that works fine in the demo, and it doesnt work right for me if i copy it into my directory!

Posted on 2007-02-20 17:23:00

Overkill

Whaaa? That's strange! Try copying the verge.exe that the Sully demo has into your directory?

Posted on 2007-02-20 17:28:43

Arkhan

ill have to do it when i get home. At class right now... reading up on verge functions ;)

which function should i use to put the message window on screen?

Posted on 2007-02-20 17:33:14

Overkill

To put a message window on-screen, usually TBlit() does the job. Or make your own window drawing function with lines and rectangles and gradients! That's a tad more work though.

Posted on 2007-02-20 19:35:11

Omni

An important question is what code is actually used to display the font. Perhaps you're doing something a little strange.

It's along the lines of "did you plug the printer in?", but you know. I have to ask just in case.

EDIT: Tutorial, yes. It is possible in using that code that either the author in writing (or you in copying) neglected a necessary 'T' in front of one of the blitting functions. I'm afraid that's extremely lazy and not much comfort to give you, but the thought just occured to me. Back to chemistry homework :(

Posted on 2007-02-20 23:39:34 (last edited on 2007-02-20 23:41:32)

Arkhan


void TextBox(string text, string text2, string text3, string text4)
{
int TextBg = LoadImage("MessageBox.bmp");
int MyFont = LoadFont("font.bmp");
while(!b1)
{
Render();
TBlit(0,0,TextBg,screen);
PrintString(10,10,screen,MyFont,text);
PrintString(10,25,screen,MyFont,text2);
PrintString(10,40,screen,MyFont,text3);
PrintString(10,55,screen,MyFont,text4);
ShowPage();
}
Unpress(1);
FreeImage(TextBg);
FreeFont(MyFont);
}


what did I break!

Posted on 2007-02-21 01:44:54

Overkill

Er... okay, your code looks fine. So, I'm assuming it HAS to be the font image. Uhm, erm... try this one: http://www.verge-rpg.com/files/detail.php?id=320

Posted on 2007-02-21 14:18:35

Arkhan

ill try when i get home. Looking, the .bmp claims its 255 0 255 but it doesnt quite look right. I think the image was a .gif when i got it so maybe it wonked out the coloration....

Thanks! :)

Posted on 2007-02-21 14:28:06


Displaying 1-10 of 10 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.