5 #ifndef __I_GUI_FONT_H_INCLUDED__ 6 #define __I_GUI_FONT_H_INCLUDED__ 87 virtual s32 getKerningWidth(
const wchar_t* thisLetter=0,
const wchar_t* previousLetter=0)
const = 0;
virtual s32 getKerningHeight() const =0
Returns the distance between letters.
An external font type provided by the user.
EGUI_FONT_TYPE
An enum for the different types of GUI font.
virtual s32 getKerningWidth(const wchar_t *thisLetter=0, const wchar_t *previousLetter=0) const =0
Gets kerning values (distance between letters) for the font. If no parameters are provided,...
virtual EGUI_FONT_TYPE getType() const
Returns the type of this font.
Everything in the Irrlicht Engine can be found in this namespace.
Very simple string class with some useful features.
signed int s32
32 bit signed variable.
Bitmap fonts loaded from an XML file or a texture.
virtual core::dimension2d< u32 > getDimension(const wchar_t *text) const =0
Calculates the width and height of a given string of text.
virtual s32 getCharacterFromPos(const wchar_t *text, s32 pixel_x) const =0
Calculates the index of the character in the text which is on a specific position.
virtual void draw(const core::stringw &text, const core::rect< s32 > &position, video::SColor color, bool hcenter=false, bool vcenter=false, const core::rect< s32 > *clip=0)=0
Draws some text and clips it to the specified rectangle if wanted.
virtual void setInvisibleCharacters(const wchar_t *s)=0
Define which characters should not be drawn by the font.
virtual void setKerningWidth(s32 kerning)=0
Sets global kerning width for the font.
Class representing a 32 bit ARGB color.
Scalable vector fonts loaded from an XML file.
A font which uses a the native API provided by the operating system.
Base class of most objects of the Irrlicht Engine.
virtual void setKerningHeight(s32 kerning)=0
Sets global kerning height for the font.