markup: added fontfg and fontbg

This commit is contained in:
copycat-killer 2017-01-28 23:35:27 +01:00
parent 08b9a76662
commit 19a7003b34
2 changed files with 11 additions and 1 deletions

View File

@ -44,6 +44,16 @@ function markup.color(fg, bg, text)
return string.format('<span foreground="%s" background="%s">%s</span>', fg, bg, text)
end
-- Set font and foreground.
function markup.fontfg(font, fg, text)
return string.format('<span font="%s" foreground="%s">%s</span>', font, fg, text)
end
-- Set font and background.
function markup.fontbg(font, bg, text)
return string.format('<span font="%s" background="%s">%s</span>', font, bg, text)
end
-- Set font, foreground and background.
function markup.fontcolor(font, fg, bg, text)
return string.format('<span font="%s" foreground="%s" background="%s">%s</span>', font, fg, bg, text)

2
wiki

@ -1 +1 @@
Subproject commit 3216fb787a4cb3fbefd8549b2e1323f9412e788e
Subproject commit 52bb0c1757addd08ca4de6b7c02444b32a9497ef