programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: changing fonts and sizes II

From: Mike Ghan <mikeghan_at_logix-controls.com>
Date: Wed, 4 Jun 2003 13:05:32 -0700

Allen,

Glad you are able to make use of this. Sounds as if your ready to dig
in to the Windows API. You'll need to become familiar (very) with
either Microsoft's Windows SDK (huge download) or the Borland API help
referenced in the SwiftForth DOC directory. I strongly suggest you
obtain a copy of Charles Petzold's Programming Windows, 5th Edition.
Even though it deals with C programs, most of it is very useful and
informative.

Good Luck,
Mike

-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
Behalf
Of Allen Anway
Sent: Wednesday, June 04, 2003 11:03 AM
To: sftalk_at_forth.com
Subject: [sftalk] Re: changing fonts and sizes II

My printer font problem/solution was as follows. Considering the
teaching
files FONTTOOLS.F, FORMATTEXT.F, and PRINTEXAMPLE.F, compiled in
order, I
called up my own font by copying Mike's GET-....-FONT

FONTTOOLS.F: : GET-TIMES-FONT ...
                                      S" Times Roman" FONT ... ;

I called my own sizes with entering number(s) into the appropriate
spots.
FORMATTEXT.F : CREATE-FONTS ... GET-TIMES-FONT ... ;

I executed the program
PRINTEXAMPLE.F : PRINT-TEST ... ;
and it worked.

My original failure, due to haste, lay with thinking the -TEST of
PRINT-TEST
was the TEST of FORMATTEXT.F. Instead, PRINT-TEST is independent of
TEST,
so the changes I made on TEST were not received into the printer. Oh
well.
I changed TEST with larger fonts and more characters on the 'preamble'
words
but couldn't get the main text to move over to accomodate changed
spacing.

By the way, I programmed in PRINT-TEST to block out the text string
output
word YADA and replace it with TEST of the previous file, and execution
gave
me an error "Error ending printed page".

My windows knowledge is pretty meager, so could you expand on
SetBkMode in
Windows API? Does it also contain itallics and bold?

Many thanks for these programming examples. This is very helpful.
Best
wishes --- Allen

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jun 04 2003 - 13:16:50 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:32 PST