diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-01-02 17:50:55 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-01-02 17:50:55 +0100 |
| commit | 81721b8aa87b1df3c3a9c9eadafcc271178c102a (patch) | |
| tree | 89ea55211a3c88ee7e74e470d412547ea285b647 /src/render/OpenGL.cpp | |
| parent | 365caa49ff4e4f87da687adfa237b8f855aee42b (diff) | |
groupbar: unify title rendering
moves the text renderer to the unified opengl impl
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<CTexture> CHyprOpenGLImpl::loadAsset(const std::string& filename) { return tex; } -SP<CTexture> CHyprOpenGLImpl::renderText(const std::string& text, CHyprColor col, int pt, bool italic) { +SP<CTexture> CHyprOpenGLImpl::renderText(const std::string& text, CHyprColor col, int pt, bool italic, const std::string& fontFamily) { SP<CTexture> tex = makeShared<CTexture>(); static auto FONT = CConfigValue<std::string>("misc:font_family"); - const auto FONTFAMILY = *FONT; + const auto FONTFAMILY = fontFamily.empty() ? *FONT : fontFamily; const auto FONTSIZE = pt; const auto COLOR = col; |
