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