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.

DarkBASIC Discussion / what font does dbc use in the editor

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 9th Apr 2004 01:48 Edited at: 9th Apr 2004 01:49
when you are writing the code, what font does the editor use? or what font lines up perfectly so that i and W take up the same space?

EDIT: heck, even like the font taht appears in the post forum message box when you type in it.


Programs for programmers.
Brandon Smith
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Urbana, Illinois (USA)
Posted: 9th Apr 2004 08:12
It's called a fixed pitch font. It's not as pretty as the proportional fonts that you usually see, but it's easier for a program to work with because each character has a constant width.

Hope that helps!
Brandon
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 9th Apr 2004 14:28
if you look in the font folder then any of those font names with a red A icon are fixed (IIRC), there should also be one called "system" (can`t see it in the font folder tho...just looked) that the bios uses for startup messages etc, thats a fixed size font too.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 9th Apr 2004 17:48 Edited at: 9th Apr 2004 17:49
ok, that helps, but do you know what extention those files use?

EDIT: nevermind, i found it. .fon right?


Programs for programmers.
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 9th Apr 2004 17:57
but now it's not fixed in my program, even though the font is fixed.

am i doing anything wrong?


Programs for programmers.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 9th Apr 2004 18:44 Edited at: 9th Apr 2004 18:47
try courier.fon, that should work ok afaik, there is also an error in that code, it should read

set text font "app932.fon"

and to save you hopping to the window fonts folder and then having to come back from there when you want to save the game or anything, you could have done

set text font "c:\windows\fonts\app932.fon"

and make sure you have a size 20 listed amongst the sizes available, they can`t rescale on the fly like TT or proportional fonts, if that size isn`t listed than you can`t have it (unless you use an app to make that set of bitmaps and add them to the font)

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.

Login to post a reply

Server time is: 2025-05-23 11:24:15
Your offset time is: 2025-05-23 11:24:15