Using multiple fonts from C
Posted on 1997-04-30
I am about half way through the book “Learn C on the Macintosh” and I was trying to do a project that involved making a random draw of four bridge hands and printing them out. I wanted to print the “Symbol” font characters for spades, hearts, diamonds, and clubs but I cannot figure out how to use more than one font in a program. I had seen the SIOUXSettings and customization documentation in the MW C Library Ref. but it says the you need to make any changes to SIOUXSettings before any call to standard I/O functions are made. It also says that you cannot then change the SIOUXSettings. For my project I wanted to print something like:
(Symb. for Spade) A K J 10 8
(Symb. for Heart) 8 3 2
This requires a mixture of at least two fonts (e.g., symbol and monaco) in a single SIOUX window.