From 81721b8aa87b1df3c3a9c9eadafcc271178c102a Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 2 Jan 2025 17:50:55 +0100 Subject: groupbar: unify title rendering moves the text renderer to the unified opengl impl --- src/render/OpenGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/OpenGL.cpp') diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 93bd129a..68baf48e 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -2555,12 +2555,12 @@ SP CHyprOpenGLImpl::loadAsset(const std::string& filename) { return tex; } -SP CHyprOpenGLImpl::renderText(const std::string& text, CHyprColor col, int pt, bool italic) { +SP CHyprOpenGLImpl::renderText(const std::string& text, CHyprColor col, int pt, bool italic, const std::string& fontFamily) { SP tex = makeShared(); static auto FONT = CConfigValue("misc:font_family"); - const auto FONTFAMILY = *FONT; + const auto FONTFAMILY = fontFamily.empty() ? *FONT : fontFamily; const auto FONTSIZE = pt; const auto COLOR = col; -- cgit v1.2.3