Minetest  5.4.0
irr::gui::CGUITTFont Class Reference

Class representing a TrueType font. More...

#include <CGUITTFont.h>

+ Inheritance diagram for irr::gui::CGUITTFont:
+ Collaboration diagram for irr::gui::CGUITTFont:

Public Member Functions

virtual ~CGUITTFont ()
 Destructor. More...
 
virtual void setBatchLoadSize (u32 batch_size)
 Sets the amount of glyphs to batch load. More...
 
virtual void setMaxPageTextureSize (const core::dimension2du &texture_size)
 Sets the maximum texture size for a page of glyphs. More...
 
virtual u32 getFontSize () const
 Get the font size. More...
 
virtual bool isTransparent () const
 Check the font's transparency. More...
 
virtual bool useAutoHinting () const
 Check if the font auto-hinting is enabled. More...
 
virtual bool useHinting () const
 Check if the font hinting is enabled. More...
 
virtual bool useMonochrome () const
 Check if the font is being loaded as a monochrome font. More...
 
virtual void setTransparency (const bool flag)
 Tells the font to allow transparency when rendering. More...
 
virtual void setMonochrome (const bool flag)
 Tells the font to use monochrome rendering. More...
 
virtual void setFontHinting (const bool enable, const bool enable_auto_hinting=true)
 Enables or disables font hinting. More...
 
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)
 Draws some text and clips it to the specified rectangle if wanted. More...
 
virtual void draw (const EnrichedString &text, const core::rect< s32 > &position, video::SColor color, bool hcenter=false, bool vcenter=false, const core::rect< s32 > *clip=0)
 
virtual core::dimension2d< u32 > getCharDimension (const wchar_t ch) const
 Returns the dimension of a character produced by this font. More...
 
virtual core::dimension2d< u32 > getDimension (const wchar_t *text) const
 Returns the dimension of a text string. More...
 
virtual core::dimension2d< u32 > getDimension (const core::ustring &text) const
 
virtual s32 getCharacterFromPos (const wchar_t *text, s32 pixel_x) const
 Calculates the index of the character in the text which is on a specific position. More...
 
virtual s32 getCharacterFromPos (const core::ustring &text, s32 pixel_x) const
 
virtual void setKerningWidth (s32 kerning)
 Sets global kerning width for the font. More...
 
virtual void setKerningHeight (s32 kerning)
 Sets global kerning height for the font. More...
 
virtual s32 getKerningWidth (const wchar_t *thisLetter=0, const wchar_t *previousLetter=0) const
 Gets kerning values (distance between letters) for the font. If no parameters are provided,. More...
 
virtual s32 getKerningWidth (const uchar32_t thisLetter=0, const uchar32_t previousLetter=0) const
 
virtual s32 getKerningHeight () const
 Returns the distance between letters. More...
 
virtual void setInvisibleCharacters (const wchar_t *s)
 Define which characters should not be drawn by the font. More...
 
virtual void setInvisibleCharacters (const core::ustring &s)
 
CGUITTGlyphPagegetLastGlyphPage () const
 Get the last glyph page if there's still available slots. More...
 
CGUITTGlyphPagecreateGlyphPage (const u8 &pixel_mode)
 Create a new glyph page texture. More...
 
u32 getLastGlyphPageIndex () const
 Get the last glyph page's index. More...
 
virtual video::IImage * createTextureFromChar (const uchar32_t &ch)
 Create corresponding character's software image copy from the font, so you can use this data just like any ordinary video::IImage. More...
 
virtual video::ITexture * getPageTextureByIndex (const u32 &page_index) const
 This function is for debugging mostly. More...
 
virtual core::array< scene::ISceneNode * > addTextSceneNode (const wchar_t *text, scene::ISceneManager *smgr, scene::ISceneNode *parent=0, const video::SColor &color=video::SColor(255, 0, 0, 0), bool center=false)
 Add a list of scene nodes generated by putting font textures on the 3D planes. More...
 
s32 getAscender () const
 

Static Public Member Functions

static CGUITTFontcreateTTFont (IGUIEnvironment *env, const io::path &filename, const u32 size, const bool antialias=true, const bool transparency=true, const u32 shadow=0, const u32 shadow_alpha=255)
 Creates a new TrueType font and returns a pointer to it. More...
 
static CGUITTFontcreateTTFont (IrrlichtDevice *device, const io::path &filename, const u32 size, const bool antialias=true, const bool transparency=true)
 
static CGUITTFontcreate (IGUIEnvironment *env, const io::path &filename, const u32 size, const bool antialias=true, const bool transparency=true)
 
static CGUITTFontcreate (IrrlichtDevice *device, const io::path &filename, const u32 size, const bool antialias=true, const bool transparency=true)
 

Protected Attributes

bool use_monochrome
 
bool use_transparency
 
bool use_hinting
 
bool use_auto_hinting
 
u32 size
 
u32 batch_load_size
 
core::dimension2du max_page_texture_size
 

Private Member Functions

 CGUITTFont (IGUIEnvironment *env)
 Constructor. More...
 
bool load (const io::path &filename, const u32 size, const bool antialias, const bool transparency)
 
void reset_images ()
 
void update_glyph_pages () const
 
void update_load_flags ()
 
u32 getWidthFromCharacter (wchar_t c) const
 
u32 getWidthFromCharacter (uchar32_t c) const
 
u32 getHeightFromCharacter (wchar_t c) const
 
u32 getHeightFromCharacter (uchar32_t c) const
 
u32 getGlyphIndexByChar (wchar_t c) const
 
u32 getGlyphIndexByChar (uchar32_t c) const
 
core::vector2di getKerning (const wchar_t thisLetter, const wchar_t previousLetter) const
 
core::vector2di getKerning (const uchar32_t thisLetter, const uchar32_t previousLetter) const
 
core::dimension2d< u32 > getDimensionUntilEndOfLine (const wchar_t *p) const
 
void createSharedPlane ()
 

Private Attributes

irr::IrrlichtDevice * Device
 
gui::IGUIEnvironment * Environment
 
video::IVideoDriver * Driver
 
io::path filename
 
FT_Face tt_face
 
FT_Size_Metrics font_metrics
 
FT_Int32 load_flags
 
core::array< CGUITTGlyphPage * > Glyph_Pages
 
core::array< SGUITTGlyphGlyphs
 
s32 GlobalKerningWidth
 
s32 GlobalKerningHeight
 
core::ustring Invisible
 
u32 shadow_offset
 
u32 shadow_alpha
 

Static Private Attributes

static FT_Library c_library
 
static core::map< io::path, SGUITTFace * > c_faces
 
static bool c_libraryLoaded = false
 
static scene::IMesh * shared_plane_ptr_ = 0
 
static scene::SMesh shared_plane_
 

Detailed Description

Class representing a TrueType font.

Constructor & Destructor Documentation

◆ ~CGUITTFont()

irr::gui::CGUITTFont::~CGUITTFont ( )
virtual

Destructor.

References c_faces, c_library, c_libraryLoaded, irr::gui::CGUITTAssistDelete::Delete(), Driver, filename, Glyphs, and reset_images().

+ Here is the call graph for this function:

◆ CGUITTFont()

irr::gui::CGUITTFont::CGUITTFont ( IGUIEnvironment *  env)
private

Constructor.

References Driver, Glyphs, and setInvisibleCharacters().

Referenced by createTTFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ addTextSceneNode()

core::array< scene::ISceneNode * > irr::gui::CGUITTFont::addTextSceneNode ( const wchar_t *  text,
scene::ISceneManager *  smgr,
scene::ISceneNode *  parent = 0,
const video::SColor &  color = video::SColor(255, 0, 0, 0),
bool  center = false 
)
virtual

Add a list of scene nodes generated by putting font textures on the 3D planes.

NOTICE: Because we are considering adding texts into 3D world, all Y axis vectors are inverted.

References createSharedPlane(), Driver, font_metrics, getDimension(), getDimensionUntilEndOfLine(), getGlyphIndexByChar(), getKerning(), getWidthFromCharacter(), irr::gui::SGUITTGlyph::glyph_page, Glyph_Pages, Glyphs, irr::gui::SGUITTGlyph::offset, shared_plane_ptr_, irr::gui::SGUITTGlyph::source_rect, tt_face, update_glyph_pages(), and use_transparency.

+ Here is the call graph for this function:

◆ create() [1/2]

CGUITTFont * irr::gui::CGUITTFont::create ( IGUIEnvironment *  env,
const io::path &  filename,
const u32  size,
const bool  antialias = true,
const bool  transparency = true 
)
static

References createTTFont(), filename, and size.

+ Here is the call graph for this function:

◆ create() [2/2]

CGUITTFont * irr::gui::CGUITTFont::create ( IrrlichtDevice *  device,
const io::path &  filename,
const u32  size,
const bool  antialias = true,
const bool  transparency = true 
)
static

References createTTFont(), filename, and size.

+ Here is the call graph for this function:

◆ createGlyphPage()

CGUITTGlyphPage * irr::gui::CGUITTFont::createGlyphPage ( const u8 &  pixel_mode)

Create a new glyph page texture.

Parameters
pixel_modethe pixel mode defined by FT_Pixel_Mode

References irr::gui::CGUITTGlyphPage::available_slots, irr::gui::CGUITTGlyphPage::createPageTexture(), Driver, Glyph_Pages, max_page_texture_size, size, and tt_face.

Referenced by irr::gui::SGUITTGlyph::preload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSharedPlane()

void irr::gui::CGUITTFont::createSharedPlane ( )
private

References shared_plane_, and shared_plane_ptr_.

Referenced by addTextSceneNode().

+ Here is the caller graph for this function:

◆ createTextureFromChar()

video::IImage * irr::gui::CGUITTFont::createTextureFromChar ( const uchar32_t ch)
virtual

Create corresponding character's software image copy from the font, so you can use this data just like any ordinary video::IImage.

Parameters
chThe character you need

References irr::gui::CGUITTGlyphPage::dirty, Driver, getGlyphIndexByChar(), irr::gui::SGUITTGlyph::glyph_page, Glyph_Pages, Glyphs, irr::gui::SGUITTGlyph::source_rect, irr::gui::CGUITTGlyphPage::texture, and irr::gui::CGUITTGlyphPage::updateTexture().

+ Here is the call graph for this function:

◆ createTTFont() [1/2]

CGUITTFont * irr::gui::CGUITTFont::createTTFont ( IGUIEnvironment *  env,
const io::path &  filename,
const u32  size,
const bool  antialias = true,
const bool  transparency = true,
const u32  shadow = 0,
const u32  shadow_alpha = 255 
)
static

Creates a new TrueType font and returns a pointer to it.

The pointer must be drop()'ed when finished.

Parameters
envThe IGUIEnvironment the font loads out of.
filenameThe filename of the font.
sizeThe size of the font glyphs in pixels. Since this is the size of the individual glyphs, the true height of the font may change depending on the characters used.
antialiasset the use_monochrome (opposite to antialias) flag
transparencyset the use_transparency flag
Returns
Returns a pointer to a CGUITTFont. Will return 0 if the font failed to load.

References CGUITTFont(), c_library, c_libraryLoaded, filename, load(), shadow_alpha, shadow_offset, and size.

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTTFont() [2/2]

CGUITTFont * irr::gui::CGUITTFont::createTTFont ( IrrlichtDevice *  device,
const io::path &  filename,
const u32  size,
const bool  antialias = true,
const bool  transparency = true 
)
static

References CGUITTFont(), c_library, c_libraryLoaded, Device, filename, load(), and size.

+ Here is the call graph for this function:

◆ draw() [1/2]

void irr::gui::CGUITTFont::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 
)
virtual

Draws some text and clips it to the specified rectangle if wanted.

Referenced by GUIChatConsole::drawText().

+ Here is the caller graph for this function:

◆ draw() [2/2]

void irr::gui::CGUITTFont::draw ( const EnrichedString text,
const core::rect< s32 > &  position,
video::SColor  color,
bool  hcenter = false,
bool  vcenter = false,
const core::rect< s32 > *  clip = 0 
)
virtual

◆ getAscender()

s32 irr::gui::CGUITTFont::getAscender ( ) const
inline

References font_metrics.

◆ getCharacterFromPos() [1/2]

s32 irr::gui::CGUITTFont::getCharacterFromPos ( const core::ustring text,
s32  pixel_x 
) const
virtual

References irr::core::ustring16< TAlloc >::begin(), getKerning(), and getWidthFromCharacter().

+ Here is the call graph for this function:

◆ getCharacterFromPos() [2/2]

s32 irr::gui::CGUITTFont::getCharacterFromPos ( const wchar_t *  text,
s32  pixel_x 
) const
virtual

Calculates the index of the character in the text which is on a specific position.

◆ getCharDimension()

core::dimension2d< u32 > irr::gui::CGUITTFont::getCharDimension ( const wchar_t  ch) const
virtual

Returns the dimension of a character produced by this font.

References getHeightFromCharacter(), and getWidthFromCharacter().

+ Here is the call graph for this function:

◆ getDimension() [1/2]

core::dimension2d< u32 > irr::gui::CGUITTFont::getDimension ( const core::ustring text) const
virtual

References irr::core::ustring16< TAlloc >::begin(), getHeightFromCharacter(), getKerning(), getWidthFromCharacter(), and p().

+ Here is the call graph for this function:

◆ getDimension() [2/2]

core::dimension2d< u32 > irr::gui::CGUITTFont::getDimension ( const wchar_t *  text) const
virtual

Returns the dimension of a text string.

Referenced by addTextSceneNode(), draw(), and getDimensionUntilEndOfLine().

+ Here is the caller graph for this function:

◆ getDimensionUntilEndOfLine()

core::dimension2d< u32 > irr::gui::CGUITTFont::getDimensionUntilEndOfLine ( const wchar_t *  p) const
private

References getDimension(), and p().

Referenced by addTextSceneNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFontSize()

virtual u32 irr::gui::CGUITTFont::getFontSize ( ) const
inlinevirtual

Get the font size.

References size.

◆ getGlyphIndexByChar() [1/2]

u32 irr::gui::CGUITTFont::getGlyphIndexByChar ( uchar32_t  c) const
private

References batch_load_size, Driver, irr::gui::SGUITTGlyph::glyph_page, Glyph_Pages, Glyphs, irr::gui::SGUITTGlyph::isLoaded, load_flags, irr::gui::SGUITTGlyph::preload(), size, tt_face, and irr::core::unicode::UTF_REPLACEMENT_CHARACTER.

+ Here is the call graph for this function:

◆ getGlyphIndexByChar() [2/2]

u32 irr::gui::CGUITTFont::getGlyphIndexByChar ( wchar_t  c) const
private

Referenced by addTextSceneNode(), createTextureFromChar(), draw(), getHeightFromCharacter(), getKerning(), getWidthFromCharacter(), and load().

+ Here is the caller graph for this function:

◆ getHeightFromCharacter() [1/2]

u32 irr::gui::CGUITTFont::getHeightFromCharacter ( uchar32_t  c) const
inlineprivate

References font_metrics, getGlyphIndexByChar(), and Glyphs.

+ Here is the call graph for this function:

◆ getHeightFromCharacter() [2/2]

u32 irr::gui::CGUITTFont::getHeightFromCharacter ( wchar_t  c) const
inlineprivate

Referenced by getCharDimension(), and getDimension().

+ Here is the caller graph for this function:

◆ getKerning() [1/2]

core::vector2di irr::gui::CGUITTFont::getKerning ( const uchar32_t  thisLetter,
const uchar32_t  previousLetter 
) const
private

References getGlyphIndexByChar(), GlobalKerningHeight, GlobalKerningWidth, size, and tt_face.

+ Here is the call graph for this function:

◆ getKerning() [2/2]

core::vector2di irr::gui::CGUITTFont::getKerning ( const wchar_t  thisLetter,
const wchar_t  previousLetter 
) const
private

Referenced by addTextSceneNode(), draw(), getCharacterFromPos(), getDimension(), and getKerningWidth().

+ Here is the caller graph for this function:

◆ getKerningHeight()

s32 irr::gui::CGUITTFont::getKerningHeight ( ) const
virtual

Returns the distance between letters.

References GlobalKerningHeight.

◆ getKerningWidth() [1/2]

s32 irr::gui::CGUITTFont::getKerningWidth ( const uchar32_t  thisLetter = 0,
const uchar32_t  previousLetter = 0 
) const
virtual

References getKerning().

+ Here is the call graph for this function:

◆ getKerningWidth() [2/2]

s32 irr::gui::CGUITTFont::getKerningWidth ( const wchar_t *  thisLetter = 0,
const wchar_t *  previousLetter = 0 
) const
virtual

Gets kerning values (distance between letters) for the font. If no parameters are provided,.

References GlobalKerningWidth, and tt_face.

◆ getLastGlyphPage()

CGUITTGlyphPage * irr::gui::CGUITTFont::getLastGlyphPage ( ) const

Get the last glyph page if there's still available slots.

If not, it will return zero.

References irr::gui::CGUITTGlyphPage::available_slots, getLastGlyphPageIndex(), and Glyph_Pages.

Referenced by irr::gui::SGUITTGlyph::preload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLastGlyphPageIndex()

u32 irr::gui::CGUITTFont::getLastGlyphPageIndex ( ) const
inline

Get the last glyph page's index.

References Glyph_Pages.

Referenced by getLastGlyphPage(), and irr::gui::SGUITTGlyph::preload().

+ Here is the caller graph for this function:

◆ getPageTextureByIndex()

video::ITexture * irr::gui::CGUITTFont::getPageTextureByIndex ( const u32 &  page_index) const
virtual

This function is for debugging mostly.

If the page doesn't exist it returns zero.

Parameters
page_indexSimply return the texture handle of a given page index.

References Glyph_Pages.

◆ getWidthFromCharacter() [1/2]

u32 irr::gui::CGUITTFont::getWidthFromCharacter ( uchar32_t  c) const
inlineprivate

References font_metrics, getGlyphIndexByChar(), and Glyphs.

+ Here is the call graph for this function:

◆ getWidthFromCharacter() [2/2]

u32 irr::gui::CGUITTFont::getWidthFromCharacter ( wchar_t  c) const
inlineprivate

Referenced by addTextSceneNode(), draw(), getCharacterFromPos(), getCharDimension(), and getDimension().

+ Here is the caller graph for this function:

◆ isTransparent()

virtual bool irr::gui::CGUITTFont::isTransparent ( ) const
inlinevirtual

Check the font's transparency.

References use_transparency.

◆ load()

bool irr::gui::CGUITTFont::load ( const io::path &  filename,
const u32  size,
const bool  antialias,
const bool  transparency 
)
private

References batch_load_size, c_faces, c_library, Device, Driver, irr::gui::SGUITTFace::face, irr::gui::SGUITTFace::face_buffer, irr::gui::SGUITTFace::face_buffer_size, filename, font_metrics, getGlyphIndexByChar(), Glyphs, size, irr::core::ustring16< TAlloc >::toUTF8_s(), tt_face, update_load_flags(), use_monochrome, and use_transparency.

Referenced by createTTFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset_images()

void irr::gui::CGUITTFont::reset_images ( )
private

References Glyph_Pages, Glyphs, and update_load_flags().

Referenced by ~CGUITTFont(), setFontHinting(), setMonochrome(), and setTransparency().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBatchLoadSize()

virtual void irr::gui::CGUITTFont::setBatchLoadSize ( u32  batch_size)
inlinevirtual

Sets the amount of glyphs to batch load.

References batch_load_size.

◆ setFontHinting()

void irr::gui::CGUITTFont::setFontHinting ( const bool  enable,
const bool  enable_auto_hinting = true 
)
virtual

Enables or disables font hinting.

Default: Hinting and auto-hinting true.

Parameters
enableIf false, font hinting is turned off. If true, font hinting is turned on.
enable_auto_hintingIf true, FreeType uses its own auto-hinting algorithm. If false, it tries to use the algorithm specified by the font.

References reset_images(), use_auto_hinting, and use_hinting.

+ Here is the call graph for this function:

◆ setInvisibleCharacters() [1/2]

void irr::gui::CGUITTFont::setInvisibleCharacters ( const core::ustring s)
virtual

References Invisible.

◆ setInvisibleCharacters() [2/2]

void irr::gui::CGUITTFont::setInvisibleCharacters ( const wchar_t *  s)
virtual

Define which characters should not be drawn by the font.

References Invisible.

Referenced by CGUITTFont().

+ Here is the caller graph for this function:

◆ setKerningHeight()

void irr::gui::CGUITTFont::setKerningHeight ( s32  kerning)
virtual

Sets global kerning height for the font.

References GlobalKerningHeight.

◆ setKerningWidth()

void irr::gui::CGUITTFont::setKerningWidth ( s32  kerning)
virtual

Sets global kerning width for the font.

References GlobalKerningWidth.

◆ setMaxPageTextureSize()

virtual void irr::gui::CGUITTFont::setMaxPageTextureSize ( const core::dimension2du &  texture_size)
inlinevirtual

Sets the maximum texture size for a page of glyphs.

References max_page_texture_size.

◆ setMonochrome()

void irr::gui::CGUITTFont::setMonochrome ( const bool  flag)
virtual

Tells the font to use monochrome rendering.

Default: false.

Parameters
flagIf true, the font draws using a monochrome image. If false, the font uses a grayscale image.

References reset_images(), and use_monochrome.

+ Here is the call graph for this function:

◆ setTransparency()

void irr::gui::CGUITTFont::setTransparency ( const bool  flag)
virtual

Tells the font to allow transparency when rendering.

Default: true.

Parameters
flagIf true, the font draws using transparency.

References reset_images(), and use_transparency.

+ Here is the call graph for this function:

◆ update_glyph_pages()

void irr::gui::CGUITTFont::update_glyph_pages ( ) const
private

References Glyph_Pages.

Referenced by addTextSceneNode(), and draw().

+ Here is the caller graph for this function:

◆ update_load_flags()

void irr::gui::CGUITTFont::update_load_flags ( )
inlineprivate

References load_flags, useAutoHinting(), useHinting(), and useMonochrome().

Referenced by load(), and reset_images().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ useAutoHinting()

virtual bool irr::gui::CGUITTFont::useAutoHinting ( ) const
inlinevirtual

Check if the font auto-hinting is enabled.

Auto-hinting is FreeType's built-in font hinting engine.

References use_auto_hinting.

Referenced by update_load_flags().

+ Here is the caller graph for this function:

◆ useHinting()

virtual bool irr::gui::CGUITTFont::useHinting ( ) const
inlinevirtual

Check if the font hinting is enabled.

References use_hinting.

Referenced by update_load_flags().

+ Here is the caller graph for this function:

◆ useMonochrome()

virtual bool irr::gui::CGUITTFont::useMonochrome ( ) const
inlinevirtual

Check if the font is being loaded as a monochrome font.

The font can either be a 256 color grayscale font, or a 2 color monochrome font.

References use_monochrome.

Referenced by update_load_flags().

+ Here is the caller graph for this function:

Member Data Documentation

◆ batch_load_size

u32 irr::gui::CGUITTFont::batch_load_size
protected

◆ c_faces

core::map< io::path, SGUITTFace * > irr::gui::CGUITTFont::c_faces
staticprivate

Referenced by ~CGUITTFont(), and load().

◆ c_library

FT_Library irr::gui::CGUITTFont::c_library
staticprivate

Referenced by ~CGUITTFont(), createTTFont(), and load().

◆ c_libraryLoaded

bool irr::gui::CGUITTFont::c_libraryLoaded = false
staticprivate

Referenced by ~CGUITTFont(), and createTTFont().

◆ Device

irr::IrrlichtDevice* irr::gui::CGUITTFont::Device
private

Referenced by createTTFont(), and load().

◆ Driver

video::IVideoDriver* irr::gui::CGUITTFont::Driver
private

◆ Environment

gui::IGUIEnvironment* irr::gui::CGUITTFont::Environment
private

◆ filename

io::path irr::gui::CGUITTFont::filename
private

◆ font_metrics

FT_Size_Metrics irr::gui::CGUITTFont::font_metrics
private

◆ GlobalKerningHeight

s32 irr::gui::CGUITTFont::GlobalKerningHeight
private

◆ GlobalKerningWidth

s32 irr::gui::CGUITTFont::GlobalKerningWidth
private

◆ Glyph_Pages

◆ Glyphs

◆ Invisible

core::ustring irr::gui::CGUITTFont::Invisible
private

Referenced by draw(), and setInvisibleCharacters().

◆ load_flags

FT_Int32 irr::gui::CGUITTFont::load_flags
private

◆ max_page_texture_size

core::dimension2du irr::gui::CGUITTFont::max_page_texture_size
protected

◆ shadow_alpha

u32 irr::gui::CGUITTFont::shadow_alpha
private

Referenced by createTTFont(), and draw().

◆ shadow_offset

u32 irr::gui::CGUITTFont::shadow_offset
private

Referenced by createTTFont(), and draw().

◆ shared_plane_

scene::SMesh irr::gui::CGUITTFont::shared_plane_
staticprivate

Referenced by createSharedPlane().

◆ shared_plane_ptr_

scene::IMesh * irr::gui::CGUITTFont::shared_plane_ptr_ = 0
staticprivate

◆ size

u32 irr::gui::CGUITTFont::size
protected

◆ tt_face

FT_Face irr::gui::CGUITTFont::tt_face
private

◆ use_auto_hinting

bool irr::gui::CGUITTFont::use_auto_hinting
protected

Referenced by setFontHinting(), and useAutoHinting().

◆ use_hinting

bool irr::gui::CGUITTFont::use_hinting
protected

Referenced by setFontHinting(), and useHinting().

◆ use_monochrome

bool irr::gui::CGUITTFont::use_monochrome
protected

Referenced by load(), setMonochrome(), and useMonochrome().

◆ use_transparency

bool irr::gui::CGUITTFont::use_transparency
protected

The documentation for this class was generated from the following files: