Hi,
How to change font size? I was looking for it, but i don't found anything.
Font scale
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: Font scale
You can't change the size of a font. Instead you need to create a new font with the font tool and load that.
"Whoops..."
Most of the time this isn't what you want. If you really need dynamically scaling fonts you should use one of the various Opentype font plugins, or create some OS-specific IGUIFont implementation.
The reason why are:
If you scale down a bitmap font without mipmaps, you'll get missing pixels, it will look corrupted and chunky. If you scale up a bitmap font without texture filtering then it will be pixellated.
If you scale down a bitmap font and it has mipmaps, the letters will bleed into each other. The same thing will happen if you scale one up and use texture filtering to smooth it, unless you hack the font creator to have huge borders around the letters.
The reason why are:
If you scale down a bitmap font without mipmaps, you'll get missing pixels, it will look corrupted and chunky. If you scale up a bitmap font without texture filtering then it will be pixellated.
If you scale down a bitmap font and it has mipmaps, the letters will bleed into each other. The same thing will happen if you scale one up and use texture filtering to smooth it, unless you hack the font creator to have huge borders around the letters.