If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
pin3
Posts: 108 Joined: Fri Oct 06, 2006 8:50 pm
Contact:
Post
by pin3 » Tue Jan 30, 2007 12:53 pm
1. How can I change the size of the BuiltInFont
2. What does the clip parameter do in font->Draw() function.
API quote:
Optional pointer to a rectangle against which the text will be clipped. If the pointer is null, no clipping will be done.
I know what "clip" means, however I don't understant how clipping works in this particular case.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Jan 30, 2007 12:58 pm
pin3 wrote: 1. How can I change the size of the BuiltInFont
2. What does the clip parameter do in font->Draw() function.
I know what "clip" means, however I don't understant how clipping works in this particular case.
1. Choose a different font
2. It simply clips the drawing region. If you know what clipping means you should get a sense from it. Think of drawing the font and clipping the image.
pin3
Posts: 108 Joined: Fri Oct 06, 2006 8:50 pm
Contact:
Post
by pin3 » Tue Jan 30, 2007 1:41 pm
1. Choose a different font
I'm using fontcourier from the Media folder, the font does appear larger but I still can't see a method to change it's size at runtime.
greenya
Posts: 1012 Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:
Post
by greenya » Tue Jan 30, 2007 2:19 pm
i don't think that you can change size of font at runtime -- that is because the font is a bitmap file ( but not like TrueType -- vector fonts );
the antidote is to generate all font that you need before runtime. and then use them at runtime. like: courier10px.bmp, courier20px.bmp and so on.
pin3
Posts: 108 Joined: Fri Oct 06, 2006 8:50 pm
Contact:
Post
by pin3 » Fri Feb 02, 2007 3:32 pm
Thanks
gao182
Posts: 2 Joined: Wed Feb 07, 2007 9:15 pm
Post
by gao182 » Tue Feb 13, 2007 10:57 pm
I would like to take an "ENTER" to my static text... how can i make it?
the \n don't works....
I use Irrlicht.NET with C#