fonts: how?
Displaying 1-20 of 22 total.
12 next
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
geronimo

Could someone explain to me how to use VERGE3's font stuff? Like, how one should be layed out and what options are open? Everything, I guess? Maybe there's somewhere this info is already available?

Posted on 2004-04-29 07:47:36

RageCage

heres the 101:

make a global int that holds the image file of your font:
int font_sm=loadFont("font_small.gif");

in your functions you can call:
printString(0, 0, screen, font_sm, "Ragecage wrote this");

that'll print the text to the screen from the designated x/y position. the x/y position is the position of the top left pixel.

then at the exit code, make sure you free the font image:
freeFont(font_sm);

there's more stuff but its not as necessary until you know you have a better grasp on VC.

Posted on 2004-04-29 12:44:07

Zip

In case people haven't seen it, aen has made a useful ttf->v3 font utility: http://www.verge-rpg.com/aen/code/ttf2verge/ttf2verge.exe

Rar

Posted on 2004-04-29 13:12:32

RageCage

sweet... aen kicks ass

Posted on 2004-04-29 13:41:33

Zip

Odd I changed compression format last post. :D

Zip

Posted on 2004-04-29 13:55:32

geronimo

Okay, so........ it appears you just put the characters in the magenta areas and VERGE3 will detect the width and height of them automatically?

And when working with variable width, you just align the vertical rows by their left sides? Or is that necessary? What I really want to know is the format of the images.

And please don't assume I don't have a firm grasp on VC O_O

Posted on 2004-04-29 16:31:58 (last edited on 2004-04-29 17:46:53)

geronimo

I made one of the fonts I'll need for numeric characters:
http://excellent.sytes.net/pikture/panepon/font02.bmp

And then wrote:

(global)
int Fonts[4];

(in images loading routine)
Fonts[2]=LoadFont("graphics\font02.bmp");

(in AutoExec)
PrintString(160,200,screen,Fonts[2],str(100));

And consequently drawn are three 8x16 black boxes full of junk.

I just tried LoadFontEx("graphics\font02.bmp",8,16); and got the same result. Does font02.bmp check out? Teach me reader

Posted on 2004-04-29 17:53:28 (last edited on 2004-04-29 20:52:16)

geronimo

Nevermind the emergency! i added another row to the font and it works great.

Posted on 2004-04-30 01:26:52

geronimo

Well, almost great. Is there a way to eliminate the pixel of spacing between characters?

Posted on 2004-04-30 02:24:29

blues_zodiakos

It's odd, but when I use that TTF2Verge font utility, any font I convert just turns into white squares on a light pink (not magenta) background. Is there something I'm missing? Converting them by hand was getting to be such a drag. :(

Posted on 2004-05-03 16:03:36

Zip

I'd noticed a similar thing myself, but it's a simple photoshop job to change this:


Into this (nice little drop shadow added myself):


However, if aen if reading this it would be nice to:
-Pick foreground and background colours
-Set position of characters in box
-Have bold and italic versions
-Dropshadows to? :D

Zip

Posted on 2004-05-03 19:43:41

rpgking

Paintshop Pro has a great color replacing utility that can quickly change those colors. I have yet to find a similar utility in Photoshop...

Posted on 2004-05-03 22:04:57

RageCage

Quote:Originally posted by rpgking

Paintshop Pro has a great color replacing utility that can quickly change those colors. I have yet to find a similar utility in Photoshop...


if you go to image>adjustments>replace color you can do it in photoshop.

Posted on 2004-05-03 23:04:54

Zip

I just took advantage of the fact that aen's utility outputs the font with a transparent background layer, and created a flat magenta layer below. You're right though, rpgking - I had PSP 4 on my computer for years as my #1 graphics utility untill I lost the cd. :(

Zip

Posted on 2004-05-03 23:13:12

anonymous

This is Zodiakos from a different computer.

My problem isn't the colors. I could change that easily with photoshop. No, the problem is that the utility seems to create white opaque squares where the letters should be. It's freaky. I've tried 50 different solutions to no avail.

Posted on 2004-05-04 04:20:19

RageCage

that is weird... I know what your talking about though... I'm suer youve tried different font sets so I havent a clue what else you COULD do...

I'll tell you what, send me the font you want to make into a image and I'll make it for you and send it to you

Posted on 2004-05-04 13:22:00 (last edited on 2004-05-04 13:22:44)

anonymous

Zodi again.

Hehe, you want me to send you all 300+ meg of the fonts I want to convert? :D I love my adobe font portfolio.

Except now I hate it.

Posted on 2004-05-05 15:30:49

RageCage

why would you want to convert every font you have!?

Posted on 2004-05-05 16:19:30

mcgrue

Quote:Originally posted by RageCage

why would you want to convert every font you have!?


Hands still dirty... must wash again...

Posted on 2004-05-05 17:13:56

rpgking

Quote:Originally posted by RageCage

why would you want to convert every font you have!?


Maybe he's trying to release some kind of font pack that's got every TTF converted to a Verge3 font? I doubt he'd be using all those for his game because that would be insane :P

Posted on 2004-05-05 17:48:15


Displaying 1-20 of 22 total.
12 next
 
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.