OOOO a topic about xLIBC!
Unfortunately, there is no built-in easy method to change text-size in xLIBC. You could make your own spreadsheet, and reference the sprites through their indices, but that's annoying. Another option would be to use the Output() command to get larger text, and you can also play with the screen res to get smaller fonts. Of course, if you decide to try doing things in full-res, you might have some trouble with real(6,..) because those were meant to be used in half-res. For that reason, if you have text that you would like to span across both halves of the screen, you will need to switch buffers. Basically, if you are in full-res, using the commands meant to be used in half-res, you have to keep using both sides of the screen as if you were in half-res. Here is an example of both real(6,0) and Output() used in full-res. you can see that the text is different sizes.
Output() is on the top, and real(6,0) is on the bottom. I didn't bother setting the background of the other side of the buffer, but of course, you could. And if the screenshot was taken in half-res, then the entire screen would be black and the two hellos would be fatter, but still proportional.
So in total, you can get 4 different font sizes if you try hard, which are:
regular text 2x wider (output in half-res)
regular real(6,0) font size (real(6,0) in half-res)
regular text (output in full-res)
real(6,0) 2x thinner (real(6,0) in full-res)
Also, you should note that by default, the foreground and background colors for the output() command are black and white respectively, which means if you don't do anything, that's how it will appear when you use it. However, you can use det(12...) to change the foreground and background colors, for example, in the image above, I ran det(12,255,255,0,0) before the output() command, which change my foreground color to white and my background color to black. Documentation on how the det(12) command works can be found in the sdk, but it's basically just
det(12, low foregroud byte, high foreground byte, low background byte, high background byte).
Hope this clears up any confusion
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum