diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 8481144e5..c14fef1f0 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -220,8 +220,8 @@ std::tuple MagnumFontLayouter::renderGlyph(Unsign const Rectangle texturePosition = Rectangle::fromSize(Vector2(position)/fontSize, Vector2(rectangle.size())/fontSize); - const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/cache.textureSize(), - Vector2(rectangle.topRight())/cache.textureSize()); + const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/Vector2(cache.textureSize()), + Vector2(rectangle.topRight())/Vector2(cache.textureSize())); /* Absolute quad position, composed from cursor position, glyph offset and texture position, denormalized to requested text size */