You do not mention your tool, so I give you a version with the tools that I use, ConTeXt and MetaFun. I think the code is more or less self-explanatory (updated with a more modern syntax).
\setupbodyfont[pagella,8pt]
\starttext
\startMPpage[offset=5pt]
path meanderpiece ;
meanderpiece := (0.25,0.75)--(0.75,0.75)--(0.75,0.25)--(0.5,0.25)--(0.5,0.5)--(0.25,0.5)--(0.25,0)--(1,0)--(1,0.75)--(1.25,0.75);
meanderpiece := meanderpiece for i=1 upto 3 : -- (meanderpiece xshifted i) endfor ;
draw lmt_followtext [
text = "\dorecurse{10}{This is some funny text running on a meander.}",
path = meanderpiece xsized 20cm,
spread = true,
% trace = true,
% reverse = true,
% autoscaleup = "yes",
% autoscaledown = "yes",
] ;
\stopMPpage
\stoptext
Compile with context. The result I get, that probably can be tuned to look better, is:
