flat assembler
Message board for the users of flat assembler.

Index > DOS > personal font

Author
Thread Post new topic Reply to topic
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 05 Jul 2009, 05:12
is it possible to use different fonts in textmode? if so how can i?




can i load personal font, how can i make that personal font and load it?
i ask this because i have heard of the use of diffent fonts being used in text mode, so i want to try it

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 05 Jul 2009, 05:12
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8135
Location: Kraków, Poland
Tomasz Grysztar 05 Jul 2009, 06:42
I recommend looking at some of my very early programs - unfortunately, I've lost their sources.
Post 05 Jul 2009, 06:42
View user's profile Send private message Visit poster's website Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 05 Jul 2009, 07:17
hey, thanks i will look that over Smile

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 05 Jul 2009, 07:17
View user's profile Send private message Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 05 Jul 2009, 09:13
great to see you made some good programs, now how can i do that lol?

what i want to know is (right here if you know a link you can point me to on doing my own fonts and printing them on to the screen in text mode, stop reading the rest of this and put a link down please Very Happy )
how can i make my own font and how i could print that on the screen in text mode?

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 05 Jul 2009, 09:13
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8135
Location: Kraków, Poland
Tomasz Grysztar 05 Jul 2009, 09:20
Well, first you can make your own font using my program. Wink The file it creates is the array of 256 character patterns, and each of them consists of 8 bytes. Each byte corresponds to one row of character, and the bits of this byte correspond to individual pixels. So the format is pretty straightforward.

Then, if you want to use this font in text mode, you can simply use function 1100h of Video BIOS interrupt. Note, that "Life" example program, that comes with fasm for DOS package, uses this function to define single character pattern for code 0DCh.
Post 05 Jul 2009, 09:20
View user's profile Send private message Visit poster's website Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 05 Jul 2009, 18:59
thanks, coul you show me how to use the inturrupts, i know how this all works a couple weeks ago i made a program where you input a variable witha sequence of 1's and 0'1 1 for lit byte 0 un lit byte. like this


10001
10001
10001
11111
00001
00001
00001
00001
then you take and do this
number4 db '100011000110001111110000100010000100001'
i stopped because i am bad with gui and i didnt know what i could do witht his program

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 05 Jul 2009, 18:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.