47 if (
auto it_second = it_first->second.find(second); it_second != it_first->second.end())
48 return it_second->second;
const math::fvec2 & get_kerning(char32_t first, char32_t second) const
Returns the kerning offset for a pair of glyphs.
void set_font_metrics(const font_metrics &metrics)
Sets the font metrics.
font()
Creates an empty font.
void kern(char32_t first, char32_t second, const math::fvec2 &offset)
Sets the kerning offset for a pair of glyphs.
virtual ~font()
Destroys a font.
T offset(T longitude)
Calculates the UTC offset at a given longitude.
std::unordered_map< char32_t, std::unordered_map< char32_t, math::fvec2 > > kerning_table
Table containing kerning offsets for pairs of glyphs.
Metrics describing properties of a font.