From 9a380a492f7a13ca835619f536e62ba2ee21cb3b Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 30 Oct 2021 22:44:12 -0700 Subject: [PATCH] tests: Do not hardcode the font in the shims. --- tests/examples/shims/beautiful.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/examples/shims/beautiful.lua b/tests/examples/shims/beautiful.lua index b1caef43..4798ec55 100644 --- a/tests/examples/shims/beautiful.lua +++ b/tests/examples/shims/beautiful.lua @@ -50,7 +50,11 @@ module.progressbar_fg = module.bg_highlight local f = Pango.FontDescription.from_string("sans 8") -function module.get_font() +function module.get_font(font) + if font then + return Pango.FontDescription.from_string(font) + end + return f end