.NET fonts

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
teromt
Posts: 18
Joined: Sat Apr 08, 2006 8:39 am

.NET fonts

Post by teromt »

Hello,

Is there any way to get fonts look good in irrlicht .NET?

I have seen that there is the TrueType font "extension" but it isn't for .NET version.

Any help is appreciated....
Counterfeit
Posts: 9
Joined: Tue Jun 06, 2006 2:37 am
Location: Germany

Post by Counterfeit »

Hi,
"To make the font a little bit nicer, we load an external font and set it as new font in the skin. An at last, we create a nice Irrlicht Engine logo in the top left corner."

Code: Select all

IGUISkin skin = env.Skin;
IGUIFont font = env.GetFont(path + "fonthaettenschweiler.bmp");
if (font != null) {
   skin.Font = font;
}
Take a look at Tutorial 5 :)
teromt
Posts: 18
Joined: Sat Apr 08, 2006 8:39 am

Post by teromt »

Well, I have tried to load my own fonts (generated with the font creation tool) but they all look like crap :cry: . So that is somewhat out of the question.
teromt
Posts: 18
Joined: Sat Apr 08, 2006 8:39 am

Post by teromt »

Any ideas?
Counterfeit
Posts: 9
Joined: Tue Jun 06, 2006 2:37 am
Location: Germany

Post by Counterfeit »

Can you post a image from your "crap" font?
teromt
Posts: 18
Joined: Sat Apr 08, 2006 8:39 am

Post by teromt »

Here it is, maybe "crap" is wrong word for it but anyways...

http://img476.imageshack.us/my.php?image=font2de.jpg
Counterfeit
Posts: 9
Joined: Tue Jun 06, 2006 2:37 am
Location: Germany

Post by Counterfeit »

Hi,
mhh sorry but I dont know why it looks so curious. :(
house
Posts: 5
Joined: Wed May 17, 2006 1:04 am

Post by house »

Yeah, I experience the same font-crapperizing; I think we have to understand Irrlicht isn't going to antialias the fonts like windows does. I can't explain why the aspect ratios of individual characters come up funny, though.
Locked