X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fadc722655b2ba4ebe98eece3498da3c88f8b6fc..1d2f4a102ed4fe4c536a76d03b91c19001f48ec6:/util/markup.lua?pf=etc
diff --git a/util/markup.lua b/util/markup.lua
index 346cfe1..0eb9bfa 100644
--- a/util/markup.lua
+++ b/util/markup.lua
@@ -1,11 +1,10 @@
-
--[[
-
- Licensed under MIT License
- * (c) 2013, Luke Bonham
- * (c) 2009, Uli Schlachter
- * (c) 2009, Majic
-
+
+ Licensed under MIT License
+ * (c) 2013, Luke Bonham
+ * (c) 2009, Uli Schlachter
+ * (c) 2009, Majic
+
--]]
local string = { format = string.format }
@@ -44,6 +43,16 @@ function markup.color(fg, bg, text)
return string.format('%s', fg, bg, text)
end
+-- Set font and foreground.
+function markup.fontfg(font, fg, text)
+ return string.format('%s', font, fg, text)
+end
+
+-- Set font and background.
+function markup.fontbg(font, bg, text)
+ return string.format('%s', font, bg, text)
+end
+
-- Set font, foreground and background.
function markup.fontcolor(font, fg, bg, text)
return string.format('%s', font, fg, bg, text)