From 809744c300d6bc3a4f5cb71a8a67dbad811fe2de Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 3 Jul 2023 19:46:56 +1000 Subject: Fix horizontal alignment with font, add new fonts --- source/rendering/StarFontTextureGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/rendering/StarFontTextureGroup.cpp') diff --git a/source/rendering/StarFontTextureGroup.cpp b/source/rendering/StarFontTextureGroup.cpp index e59d15c..6a33d32 100644 --- a/source/rendering/StarFontTextureGroup.cpp +++ b/source/rendering/StarFontTextureGroup.cpp @@ -67,7 +67,7 @@ const FontTextureGroup::GlyphTexture& FontTextureGroup::glyphTexture(String::Cha else res.first->second.offset = Vec2F(); - res.first->second.offset[1] += pair.second; + res.first->second.offset += Vec2F(pair.second); res.first->second.texture = m_textureGroup->create(image); } -- cgit v1.2.3