Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
fonts_new.cpp File Reference
#include "fonts.h"
#include <OGRE/Hlms/Unlit/OgreHlmsUnlit.h>
#include <OGRE/Hlms/Unlit/OgreHlmsUnlitDatablock.h>
#include <OGRE/OgreHlmsManager.h>
#include <OGRE/Overlay/OgreFontManager.h>
#include <sail/sail.h>
#include <sail-manip/sail-manip.h>
#include <Strings/components/3rdparty/rapidxml/rapidxml.hpp>
#include <Strings/components/utils/io/io.h>
#include <Strings/components/utils/converters/converters.h>
#include <Strings/components/utils/image/image.h>
#include "components/rendering/rendering.h"
#include "components/diagnostics/logger/logger.h"
#include "components/settings/config/config.h"
+ Include dependency graph for fonts_new.cpp:

Functions

bool resolve_glyph_character (std::string xml_glyph, char *character)
 Identify the character of the font glyph from the XML attribute. More...
 
int glyph_attribute_test_int (bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute)
 
float glyph_attribute_test_float (bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute)
 

Variables

BlamMap< std::string, BlamFontPackage * > font_map = BlamMap<std::string, BlamFontPackage*>()
 

Function Documentation

◆ glyph_attribute_test_float()

float glyph_attribute_test_float ( bool *  out_result,
std::string  glyph_name,
std::string  font_name,
std::string  attribute_name,
rapidxml::xml_attribute<> *  attribute 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ glyph_attribute_test_int()

int glyph_attribute_test_int ( bool *  out_result,
std::string  glyph_name,
std::string  font_name,
std::string  attribute_name,
rapidxml::xml_attribute<> *  attribute 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_glyph_character()

bool resolve_glyph_character ( std::string  xml_glyph,
char *  character 
)

Identify the character of the font glyph from the XML attribute.

Parameters
xml_glyph- The original string containing the glyph value from fontinfo.xml
character- Pointer to a character to set to the resolved character
Returns
true if the character was resolved, false if the character could not be resolved
+ Here is the caller graph for this function:

Variable Documentation

◆ font_map

BlamMap<std::string, BlamFontPackage*> font_map = BlamMap<std::string, BlamFontPackage*>()