I am drawing an arrow with text above it
\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\draw[<-, thick, postaction={decorate, decoration={text along path,text align=center, raise=.7em, text={Process}}}]
(0, 0) to [bend left=60] (5, 0);
\end{tikzpicture}
\end{document}
The result cuts off the top of the text of the label.

How can I fix the bounding box of the tikzpicture so that it adjusts itself the text of the label? Can I get the decorations to extend the bounding box, the way arrows.meta does for arrows?
I would like the bounding box of the tikzpicture to adjust automatically to the contents of the picture, rather than have to fine tune a fixed value.
If I put the text in its own node, it doesn't get cut off, but then it doesn't follow the path of the arrow.
Of course, I can not raise the text, but then it is too close to the arrow.
The accepted answer here has nothing to do with my problem, since the arrows.meta package doesn't change the bounding box for decorations. The other answers to that question suggest adding margins, but I do not want to have to fine tune the margin parameter (and then have to change it again, if I move the arrow decoration).

\begin{document} \begin{tikzpicture} \draw[<-, thick, postaction={decorate, decoration={text along path,text align=center, raise=.7em, text={Process}}}] (0, 0) to [bend left=60] (5, 0); \end{tikzpicture} \end{document}`
– Niranjan Feb 18 '20 at 15:04\usetikzlibrary{arrows.meta}, but the label is still cut off. And withmargin=1cm, I have to change the margin value if I change the label. – usernumber Feb 18 '20 at 15:17\documentclass[tikz]{standalone} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \draw[<-, thick, postaction={decorate, decoration={text along path, text align=center, raise=.7em, text={Process}}}] (0, 0) to [bend left=60] node[above={0.7em-2pt}] (cheat) {\phantom{Process}} (5, 0); \end{tikzpicture} \end{document}. – Feb 18 '20 at 16:25standalone 2018/03/26 v1.3aand the initial code. I compile with lualatex but it's correct with pdflatex too – Alain Matthes Feb 18 '20 at 19:32text={|\Huge|Process}, then it gets cut more badly. The fact that it is is originally partly visible is IMHO an accident because the bounding box gets overestimated, a well known effect for Bezier curves that you wrote a nice answer for. ;-) – Feb 18 '20 at 19:39bboxlibrary that is described in section 46 Bounding Boxes for Bézier Curves of pgfmanual v3.1.5. I always plan to make it more stable but somehow I never have more than 20 minutes time so I keep postponing. – Feb 18 '20 at 19:590pt. This border can be enlarged. There is no other way to fix this in the manual, except to permanently change this border by modifying thestandalone.cfgfile in your local texmf so that the border added with e.g.border={0pt 1.5pt}is permanently changed.Thus, @Kate's solution is in my opinion the only valid one here. – AndréC Feb 20 '20 at 10:30