![评论](https://linux22.com/image/320555/%E8%AF%84%E8%AE%BA.png)
答案1
一种选择(使用 xelatex):
代码:
\documentclass{standalone}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.pathmorphing,patterns}
\usepackage{fontspec}
\setmainfont{AlphaMack AOE}
\makeatletter
\pgfdeclaredecoration{penciline}{initial}{
\state{initial}[width=+\pgfdecoratedinputsegmentremainingdistance,auto corner on length=1mm,]{
\pgfpathcurveto%
{% From
\pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}
{\pgfdecorationsegmentamplitude}
}
{% Control 1
\pgfmathrand
\pgfpointadd{\pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}{0pt}}
{\pgfqpoint{-\pgfdecorationsegmentaspect\pgfdecoratedinputsegmentremainingdistance}%
{\pgfmathresult\pgfdecorationsegmentamplitude}
}
}
{%TO
\pgfpointadd{\pgfpointdecoratedinputsegmentlast}{\pgfpoint{1pt}{1pt}}
}
}
\state{final}{}
}
\makeatother
\begin{document}
\begin{tikzpicture}
\node[inner sep=0pt,outer sep=0pt]
(imagebg)
{\includegraphics[width=7cm]{envelope.png}};
\node[text width=5cm,font=\large]
at (imagebg.center)
{\begin{tabular}{@{}r@{\hspace{3pt}}p{4cm}@{}}TO: & A Friend \\ & over the other \\ & side of the\\ & world \end{tabular}};
\draw[white,thick,decoration=penciline,decorate]
(imagebg.west) -- (imagebg.east) coordinate[pos=0.55] (aux1)
coordinate (aux2) at ([shift={(20pt,20pt)}]aux1)
coordinate (aux3) at ([shift={(-20pt,24pt)}]aux1);
\draw[overlay,white,thick]
(aux1) to[out=60,in=180,looseness=1] (aux2)
(aux2) to[out=0,in=30,looseness=1] (aux1)
(aux1) to[out=160,in=-90,looseness=1] (aux3)
(aux3) to[out=90,in=30,looseness=1] (aux1)
(aux1) to[out=-30] ([shift={(10pt,-20pt)}]aux1)
(aux1) to[out=-50] ([shift={(0pt,-20pt)}]aux1);
\end{tikzpicture}
\end{document}
评论
- 为了使水平绳看起来更逼真,我使用
penciline
了percusse's answer
到模拟手绘线条 - 我使用的字体可以从
dafont.com
。
答案2
精益而简单。
\documentclass{article}
\usepackage{stackengine,xcolor,graphicx,aurical}
\usepackage[T1]{fontenc}
\begin{document}
\stackinset{l}{12pt}{c}{-12pt}{\Fontskrivan A gift from Thumbolt}{%
\stackinset{c}{+3.1pt}{c}{3pt}{\color{white}\Huge$\rho$}{%
\stackinset{c}{-3.1pt}{c}{3pt}{\scalebox{-1}[1]{\color{white}\Huge$\rho$}}{%
\stackinset{l}{}{c}{}{\color{white}\rule{300pt}{1pt}}{%
\fboxsep=70pt\relax\colorbox{yellow!30!orange!20}{\rule{70pt}{0pt}}%
}}}}
\end{document}
如果希望弓不完全对称甚至改变比例,可以对$rho$
符号应用一些不均匀的比例:
\documentclass{article}
\usepackage{stackengine,xcolor,graphicx,aurical}
\usepackage[T1]{fontenc}
\begin{document}
\stackinset{l}{12pt}{c}{-12pt}{\Fontskrivan A gift from Thumbolt}{%
\stackinset{c}{+4.6pt}{c}{4.5pt}{\scalebox{1.5}[1.8]{\color{white}\Huge$\rho$}}{%
\stackinset{c}{-4.6pt}{c}{4.5pt}{\scalebox{-1.5}[1.65]{\color{white}\Huge$\rho$}}{%
\stackinset{l}{}{c}{}{\color{white}\rule{300pt}{1.5pt}}{%
\fboxsep=70pt\relax\colorbox{yellow!30!orange!20}{\rule{70pt}{0pt}}%
}}}}
\end{document}