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 / small font

Author
Message
TrueDB
17
Years of Service
User Offline
Joined: 13th Nov 2007
Location:
Posted: 5th Dec 2007 01:52
Anyone ever write a program to be able to write in a super small font?

MAIN PROGRAM http://www.thewargamer.com/grognard/avalompro.zip GAME MODULES http://www.thewargamer.com/grognard/avittybitty.zip http://www.thewargamer.com/grognard/avalamo.zip
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 5th Dec 2007 08:23
find the font you want to use and set its size.

SET TEXT FONT
This command will set the typeface of the font you wish to use.

Example:
SET TEXT FONT "Arial"

SET TEXT SIZE
This command will set the point size of any text you are about to output. The point size should be an integer value.

Example:
SET TEXT SIZE 8

TrueDB
17
Years of Service
User Offline
Joined: 13th Nov 2007
Location:
Posted: 5th Dec 2007 19:11
Hi Bluestar4 , I was thinking about fonts very small not like normal but small war wargame counters! tiny tiny.

MAIN PROGRAM http://www.thewargamer.com/grognard/avalompro.zip GAME MODULES http://www.thewargamer.com/grognard/avittybitty.zip http://www.thewargamer.com/grognard/avalamo.zip
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Dec 2007 19:51 Edited at: 5th Dec 2007 19:54
Hi TrueDB,

You definitely can control the fonts like BlueStar4 suggests (just add ,1 for english character set in SET TEXT FONT "Arial",1 ). If you have a well designed font that looks good at low point sizes, then this method is good and easy to implement.

You can also use images, sprites, and even 3d objects to scale or resize text. The following example just scales a sprite that is made up of a sentence. You'd have to play and tweak the font and the sprite size to get it to look the way you want, but this example just shows a method...



Enjoy your day.
TrueDB
17
Years of Service
User Offline
Joined: 13th Nov 2007
Location:
Posted: 6th Dec 2007 00:54
Hey Latch nice snippet! ill give it a go

MAIN PROGRAM http://www.thewargamer.com/grognard/avalompro.zip GAME MODULES http://www.thewargamer.com/grognard/avittybitty.zip http://www.thewargamer.com/grognard/avalamo.zip

Login to post a reply

Server time is: 2025-05-10 09:45:17
Your offset time is: 2025-05-10 09:45:17