X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fadc722655b2ba4ebe98eece3498da3c88f8b6fc..53ebca2867c5d9c9ab7c5d3f37ccc91784322cd7:/util/markup.lua diff --git a/util/markup.lua b/util/markup.lua index 346cfe1..9801331 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, Luca CPZ + * (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)