Is there a way to represent the unicode ⇐
(\u21D0) etc in a Luxor plot? I guess I need to specifiy an adequate typeface, but is is annoying that the repl and jupyter show what I want for the Array A, but not Luxor, not even in png raster format. Any suggestion ?
using Luxor
function drawmatrix(A::Matrix;
cellsize = (10, 10))
table = Table(size(A)..., cellsize...)
used = Set()
for i in CartesianIndices(A)
r, c = Tuple(i)
@show A[r,c]
text(A[r, c], table[r, c],
halign=:center,
valign=:middle)
sethue("white")
box(table, r, c, action = :stroke)
end
end
A = Any["1" "2" "3" "4" "5" "6"; "1⇐" "6⇒" "1⇒" "4⇐" "3⇒" "2⇐"; "15⇑" "" "15⇓" "1⇑" "14⇓" "2⇑"]
@png begin
fontface("Arial")
background("black")
fontsize(30)
setline(0.5)
sethue("white")
drawmatrix(A, cellsize = 20 .* size(A))
end