You must be logged in to do that.

PrintString

PrintString
void PrintString(int x, int y, int destimage, int font, string text)

Documentation

This function, which has a stupid order of arguments, prints text to the screen. All the arguments should be self-explanatory, even if they are in retarded order. If you pass 0 for the font handle, a built-in font will be used.

If the font file has subsets -- additional full font sets under the main one -- you can switch to them in the middle of a printed string using \f#, where # is the number of the subset. The main (top) font is subset 0.

For instance, let's say you have your main font at the top of the image, and then underneath that you have the same font in yellow for emphasis. If you wanted to emphasize words this way, you could go:

PrintString(x, y, screen, some_font_with_subsets,
      "Don't forget to go to \f1the mayor's house\f0 before leaving town!")

Example Usage

PrintString(0, 0, screen, MainFont, "Hello World!  Also Grue is sexy!");
Talkback

Post a new comment?

Talkback #1 written by zeromus on 2006-11-12.

We put a lot of thought into those arg orderings, I'll have you know.

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.