Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Cool fonts in Graphics Posted by Seri on 18 Mar 2003 at 8:43 AM
Normally the standard BGI supports us about 10 fonts but they are ... (you know). Have you ever made another font ? If yes, please share me. Thanks.
Report
Re: Cool fonts in Graphics Posted by Phat Nat on 18 Mar 2003 at 8:51 AM
: Normally the standard BGI supports us about 10 fonts but they are ... (you know). Have you ever made another font ? If yes, please share me. Thanks.
:

Hey there. I have designed a couple. Not that great really, but different. I don't know how easy it will be with BGI (haven't used it in years), but all you need to do is create an array[0.255,0..7,0..7] Of Byte; for 8x8 fonts or larger if you want, say, 16x8. I made a font editor a long time ago and I think I still have it. When I get home I'll see if I can find it and send it off to you. From what I remember it will only edit an 8x8 font, but you can change the code to make it suit your needs if you want.

Also, to display them on the screen, you are going to need to be able to draw individual pixels on the screen (I think BGI lets you do this, right?) then it's just a matter of writing a procedure that will take the data from a particular character and draw it in pixel form on the screen. This may sound complicated, but it is easier than it sounds here.

Phat Nat
Report
Re: Cool fonts in Graphics Posted by Seri on 18 Mar 2003 at 4:32 PM
: : Normally the standard BGI supports us about 10 fonts but they are ... (you know). Have you ever made another font ? If yes, please share me. Thanks.
: :
:
: Hey there. I have designed a couple. Not that great really, but different. I don't know how easy it will be with BGI (haven't used it in years), but all you need to do is create an array[0.255,0..7,0..7] Of Byte; for 8x8 fonts or larger if you want, say, 16x8. I made a font editor a long time ago and I think I still have it. When I get home I'll see if I can find it and send it off to you. From what I remember it will only edit an 8x8 font, but you can change the code to make it suit your needs if you want.
:
: Also, to display them on the screen, you are going to need to be able to draw individual pixels on the screen (I think BGI lets you do this, right?) then it's just a matter of writing a procedure that will take the data from a particular character and draw it in pixel form on the screen. This may sound complicated, but it is easier than it sounds here.
:
: Phat Nat
: ^_^ I know how to create a new font fore sure. But what I've asked is like "CAN I TAKE YOUR WORK ? " :)




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.