mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
groupbar: unify title rendering
moves the text renderer to the unified opengl impl
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user