# Borders of fbox

How can we write words on a border of \fbox in LaTeX like this

Hope image is clear.

• Welcome to TeX-SE! This can be done e.g. with the decorations.text library of TikZ.
– user121799
Apr 2, 2019 at 2:25

This is to give you a start. There are many ways in which you can adjust things, as explained in section 50.6 Text Decorations of the pgfmanual.

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\node[text width=1.9cm,inner sep=3pt] (T) {3/3/30};
\path[decorate,decoration={text along path,
koalas and groundhogs}}] (T.south west) rectangle (T.north east);
\end{tikzpicture}
\end{document}

Here is another example.

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\node[text width=1.75cm,inner sep=3pt] (T) {3/3/30};
\path[decorate,decoration={text along path,