From 91a164c1ef17ee1cbe52cde1d42d420df0a73167 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sun, 14 May 2023 08:34:28 +0200 Subject: [PATCH] add optional wrapWidth --- src/gpufont/font.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpufont/font.hpp b/src/gpufont/font.hpp index 0ebf419..86e6fb3 100644 --- a/src/gpufont/font.hpp +++ b/src/gpufont/font.hpp @@ -1144,7 +1144,8 @@ class Font { float & advanceY, const bool vFlip = false, const float fontSize_px = 42, - const float lineHeightMultiplier = 1){ + const float lineHeightMultiplier = 1, + const float wrapWidth = 0){ float advanceX = 0;