|
|
@@ -124,10 +124,12 @@ function calendar(cr, x, y) |
|
|
|
for substr in string.gmatch(line, "[^]+") do |
|
|
|
if substr:match("%[7m") then |
|
|
|
color = {.45, .65, .9, 1} |
|
|
|
xt = xt + 3 |
|
|
|
else |
|
|
|
color = nil |
|
|
|
end |
|
|
|
substr = substr:gsub("%[.?7m", "") |
|
|
|
substr = substr:gsub("%[.?0m", "") |
|
|
|
emboss(cr, x + xt, y + yt, substr, 0, size, nil, color, "Fira Code") |
|
|
|
xt = xt + .6*size * utf8.len(substr) |
|
|
|
end |
|
|
|