29#ifndef NOMLIB_GRAPHICS_GLYPH_HPP
30#define NOMLIB_GRAPHICS_GLYPH_HPP
34#include "nomlib/config.hpp"
35#include "nomlib/math/Rect.hpp"
40const std::string GLYPH_DELIMITER =
", ";
67typedef std::map<uint32, Glyph> GlyphAtlas;
70inline std::ostream& operator << ( std::ostream& os,
const Glyph& mode );
73inline bool operator == (
const Glyph& lhs,
const Glyph& rhs );
76inline bool operator < (
const Glyph& lhs,
const Glyph& rhs );
79inline bool operator > (
const Glyph& lhs,
const Glyph& rhs );
Container structure for font data.
IntRect bounds
Bounding rectangle coordinates of the glyph as per the texture source.
Point2i offset
The additional X, Y rendering offsets to apply when copying the glyph from the texture source to the ...
int advance
Offset to move horizontally to the next character (spacing).