WorldDMT, the solution is to change the msg bit to this:
msg $active [ [ %font ] ]
And your code will work. The double [] brackets force the variable to be re-evaluated.