03-13-2023, 10:47 AM
(03-13-2023, 06:43 AM)NasaCow Wrote:(03-13-2023, 04:33 AM)SMcNeill Wrote: https://qb64phoenix.com/forum/showthread.php?tid=313 -- Try it with QPrint.
I ran the program, and it brought something else up that I asked a long time ago. I saw it print Japanese! Could qprint also work to print Chinese characters? This would be a huge boon for me as well.
I am playing with it as I type Assuming I just need to include falcon.h for qprint or do I need to use the example code to make, for example, "qprint.bas" and include that?
Thanks, looks like great stuff!
It does unicode, so as long as your font contains those characters, it'll print them. If you want to turn the example code into a library, what you'd need for you *.BM file would be the $IF section at the top of the code to declare the c code which we're linking to and using, and then all the subs/functions after the END statement. After that, just tack a Q onto the front of most of the common QB64 print commands that you're used to and use them instead of our standard commands. (QPrint, QPrintWidth, QFontHeight, QPrintString) The library is meant to be a simple header/replacement for our basic print commands to fix the clipping and offer expanded unicode support. It honestly shouldn't be hard to sort out, but if you have any questions or problems, feel free to post them and I'll answer as best as possible.
*falcon.h needs to go into your qb64 root directory, from I remember. I don't think it'll find itself or work properly from a subfolder.