Font Cut Off
#5
(03-13-2023, 06:43 AM)NasaCow Wrote:
(03-13-2023, 04:33 AM)SMcNeill Wrote: https://staging.qb64phoenix.com/showthread.php?tid=313 -- Try it with QPrint.  Wink

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  Big Grin  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.  Smile

*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.
Reply


Messages In This Thread
Font Cut Off - by NasaCow - 03-13-2023, 03:54 AM
RE: Font Cut Off - by bplus - 03-13-2023, 04:19 AM
RE: Font Cut Off - by SMcNeill - 03-13-2023, 04:33 AM
RE: Font Cut Off - by NasaCow - 03-13-2023, 06:43 AM
RE: Font Cut Off - by SMcNeill - 03-13-2023, 10:47 AM
RE: Font Cut Off - by NasaCow - 03-14-2023, 05:55 AM
RE: Font Cut Off - by SMcNeill - 03-14-2023, 06:05 AM
RE: Font Cut Off - by RhoSigma - 03-14-2023, 08:34 AM



Users browsing this thread: 2 Guest(s)