Re: Text in Graphic Display
- From: Frank Buss <fb@xxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 20:00:46 +0200
Robert Miller wrote:
Great! I'll see if I can get that to run on the MSP430. I don't have
hardware yet so I'll
have to fudge the output to the PC's screen. I'll keep you posted.
I've added the plot.f file for Win32Forth for graphical output:
http://www.frank-buss.de/forth/plot.f.txt
but it is even possible with ANS Forth in ASCII :-)
: plot at-xy [char] * emit ;
6 to scale 0 15 move-to s" Forth" hershey-draw-string
********** * *
* * *
* * *
* * *
* * *
* **** * **** ****** * ***
* * * * * * * * **
* * * ** * *** *
******* * * ** * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * ** * * * *
* ** * * * * *
* **** * *** * *
By the way, what sort of font ( IE. Arial, Times, Courier etc.) is
represented by your list of glyphs?
It is a sans serif font, but I don't know the other properties of the font.
You can find more information and other fonts with the same format with
Google:
http://www.google.com/search?q=hershey+font
The character set in my implementation:
http://www.frank-buss.de/tmp/hershey.png
--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.
- References:
- Re: Text in Graphic Display
- From: Jean-François Michaud
- Re: Text in Graphic Display
- From: Frank Buss
- Re: Text in Graphic Display
- From: Robert Miller
- Re: Text in Graphic Display
- Prev by Date: Re: R> DROP in GForth
- Next by Date: Re: colorForth ISO now available
- Previous by thread: Re: Text in Graphic Display
- Next by thread: Re: Text in Graphic Display
- Index(es):
Relevant Pages
|