Consider the code:
\documentclass{book} \usepackage[sfdefault]{cabin} \usepackage[english]{babel} \usepackage{tikz,scalerel,scalefnt} \usetikzlibrary{decorations.text} \definecolor{PureGold}{RGB}{255,215,0} \tikzset{ mydecor/.style={ postaction={decorate, decoration={text along path, text align=center, raise=-1.8ex, text={|\color{black}\bfseries\sffamily\huge\scalefont{1.50}\,|#1}}}, postaction={decorate, decoration={text along path, text align=center, raise=-1.5ex, text={|\color{PureGold}\bfseries\sffamily\huge\scalefont{1.50}\,|#1}}} }} \begin{document} \thispagestyle{empty} \begin{center} \begin{tikzpicture} \draw[line width=30mm, red!50!black, mydecor=HOW TO STRETCH THE LETTERS?] (180:7.05)arc(180:0:7.05); \end{tikzpicture} \end{center} \end{document} which produces:
QUESTION: How may I vertically stretch the letters a bit? I compile the code with xelatex. I have tried, for example, placing \vstretch{} command into the code at different places, but to no avail.
Thank you.




\resizeboxbut that's tedious. Alternatively, thetext effects along pathputs every character in its own node where you could apply something likeyscale=1.2for the nodes.