Page 7 of 19
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 27 Feb 2010, 09:50
by Cuban-Pete
Cuban-Pete wrote:Thanks for the images. However they look a bit boring, ugly and old.

So I'm thinking about not putting them in, sorry.
I'm thinking about putting under the current menu font, 2 new fonts. One with logo font (is current menu font), one with the real menu font and one with those circles (posted by razor).
Did I miss any GTA2 font?
It looks like all the smaller menu fonts in GTA2 are just from the big one. So I guess I just have to use the big one and resize it correctly.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 27 Feb 2010, 15:08
by Gustavob
Cuban-Pete wrote:
I'm thinking about putting under the current menu font, 2 new fonts. One with logo font (is current menu font)
Logo font can be made downloading logo font Microgramma D Bold, then theres no much need to put it into your program unless you really want to. The free font download is
here.
Also, it would be cool to have a resizing option (like typing
text would change size of font inside the tags).
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 27 Feb 2010, 16:00
by Cuban-Pete
Sorry, I said it wrong. I meant that there will be:
large menu font (the one in the red bar) (or is that also Microgramma D Bold,?? )
normal menu font (used as menu text, which is just a smaller version of large menu font)
level circles (the ones with '1', '2' and '3' for levels and 'A', 'B' etc for bonus levels.)
but... it is a long way because I'm having trouble with getting the .net image editing working. it's a pain in the butt....
I'm trying to write my own bitmap copy function. That is copies from one big image only specific part to a new image, but it is hard. loop that, x this, y that, color this....
Maybe there is already a function like that? Saves time.... Or something in OpenGL because video-card is faster at image stuff. Perhaps TradeMark knows how to do that?
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 28 Feb 2010, 15:29
by Cuban-Pete
Save options are starting to shape up nicely (it will for example remember your save folder after quitting), but I'm having trouble with public/static/local/global or sumthing. The compiler can't find my static variables from .net form in the other header file. I need to dive back into some tutorials to understand it correctly.
The .net image editing has just made it's first victory. It displayed a custom string. Only font numbering was off, but that should be able to fix. Next is to clean code up and add multi-line support.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 28 Feb 2010, 17:01
by Cuban-Pete
Bollocks, memory usage with new system is huge. Around 50 MB with just 250 characters. There must be something going wrong. Also, with 250 characters the preview is starting to get noticeable slow with updating/refresh.
An image of my desktop (1680x1050) is only 6 MB with .bmp.... and I get with a smaller preview image already 50MB.....
edit: it is something with that function just keeps adding and adding, it needs to garbage clean somewhere...
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 28 Feb 2010, 20:03
by Gustavob
Cuban-Pete wrote:
large menu font (the one in the red bar) (or is that also Microgramma D Bold,?? )
yep, its microgramma d bold also. Here is an example image of same text with Microgramma D Bold on notepad proving it:

- player quit!.png (1.24 KiB) Viewed 34285 times
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 01 Mar 2010, 11:47
by Cuban-Pete
Ah, so it is the same, thanks.
I just also checked the font in notepad and when the font is small, it gives bad layout. Like the horizontal lines of the "E" are not spaced equally (test 20pt). So I was thinking about keeping the font in my program, but on the other hand, I might also just remove it, since you could use the 'original font'.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 15 Mar 2010, 10:47
by Cuban-Pete
I'm way to busy now, so version 4 will
not be released for a long long time. Here an impression of what it would have been:

- version4_idea.png (86.53 KiB) Viewed 34259 times
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 07 May 2010, 14:24
by Razor
get your ass to work
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 07 May 2010, 16:56
by Cuban-Pete
Razor wrote:get your ass to work
I don't have enough time. I need to learn lots of new things to make the next version work proper.
Besides, version 3 (current) works good enough, the next version is more eye candy (ok, multi-line support would be nice).

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 10 Aug 2010, 18:32
by Cuban-Pete
This silly image is a major milestone in the development. Enjoy...

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 11:26
by Cuban-Pete
I have a test version. Only normal font, no color support and no real save options. Just for testing opengl, how it works.
Give it a try, I hope there are no errors. The opengl I used is pretty basic, so most videocards should support it. However opengl 1.1 cards don't support the long texture (2048 wide) so that could be a problem. Anybody know how much opengl 1.1 cards there are? Not much I guess... perhaps only for virtual pc.
//edit: check that file size, freaking sweet I don't need to use imagemagick anymore. oh yeah!

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 12:01
by elypter
very nice.
It would be cool if it supports command line too. And an integrate into larger image function would be great too. This way TXT2GTA2 could be used to write map name and author on preview images automatically.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 14:01
by Cuban-Pete
Thanks. Perhaps I will add support for command line. I don't know how that works, so will take some time. I put it on dream list for now.
To use the program to write on map (preview) images is something that Trademark can better do (in his program), he codes way faster (and probably better) than me.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 16:03
by elypter
About the preview images: I asked him before. Maybe he makes it, but its a bit useless to include a image processing unit only for this feature when there is a program that is specialized to this. I just thought it wouldn't be too much effort to place the generated text(s) with specified coordinates on a given image instead of a new one. But never mind. Just wanted to state that i think this would be nice.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 16:44
by Cuban-Pete
elypter wrote:I just thought it wouldn't be too much effort to place the generated text(s) with specified coordinates on a given image instead of a new one.
Imagemagick can do that also with 'command line arguments'.
About the command line arguments, just thinking about it, I'm afraid that won't work for my program, because I use opengl (videocard) to draw something and then use what is on screen to make a text image of it. I don't see that working with command line.... not sure...
---
But the opengl test 1.0 version works for you properly? That's good news, so I can move on to multi-line, coloring, saving options and other fonts support.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 16:55
by Sektor
It took a while to load but it worked. Good having it stand alone with instant text display.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 17:09
by elypter
command line support is usually very simple in every programming language. it doesn't matter what the program is doing.
in c++ :
http://gd.tuwien.ac.at/languages/c/prog ... /c_105.htm
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 18:03
by Cuban-Pete
Sektor wrote:It took a while to load but it worked. Good having it stand alone with instant text display.
Yeah, the "loading" cursor shows up when the mouse is on opengl part just after the program started, but it's nonsense, it's already done with loading. I have no idea why it does that. You can type right away when the program shows up.
Perhaps I should just place the cursor somewhere else (which is a bit annoying I think) or force a different cursor icon if that is possible.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 17 Aug 2010, 18:29
by Cuban-Pete
Thanks for the link, but that does not work for windows form application.