协助妥善处理 TikZ 路径上的文本

协助妥善处理 TikZ 路径上的文本

我正在使用 TikZ 制作一个华丽的徽标。当前的徽标如下:

example of ornate logo using TikZ

我请求帮助处理最下方的外部文本(上面写着“格拉斯哥大学”)。为了便于阅读,我希望将文本与现在的文本颠倒过来。我对 TikZ 还比较陌生,不知道该如何解决这个问题。

我们也欢迎对改进代码的评论。代码如下:

\documentclass[11pt]{scrartcl}
% TikZ
    \usepackage{tikz, pgfornament, tikzrput}
    \usetikzlibrary{decorations, decorations.text} 
% font size
    \usepackage{fix-cm}
% cryillic font
    \usepackage[OT2, OT1]{fontenc}
    \newcommand\cyr{%
        \renewcommand\rmdefault{wncyr}%
        \renewcommand\sfdefault{wncyss}%
        \renewcommand\encodingdefault{OT2}%
        \normalfont
        \selectfont
    }
    \DeclareTextFontCommand{\textcyr}{\cyr}
    \def\Eoborotnoye{\char3}
    \def\eoborotnoye{\char11}
    \def\cprime{\char126}
    \def\cdprime{\char127}
\begin{document}
    \begin{tikzpicture}
        % outer circle
            \draw[line width=2 mm] circle[radius=7.4 cm];
        % inner circles
            \draw[ultra thick] circle[radius=6 cm] circle[radius=7 cm]  ;
        % outer text
            \path[
                rotate=-15.2,
                postaction={
                    decoration={
                        text along path,
                        text format delimiters={|}{|},
                        text={
                            |\Huge|
                            {\pgfornament[scale=.4, ydelta=-9 pt]{15}}
                            UNIVERSITY OF GLASGOW
                            {\pgfornament[scale=.4, ydelta=-9 pt]{15}}
                            OFFICIAL DRINK PARTICLE PHYSICS EXPERIMENT
                        },
                        text align=fit to path,
                        reverse path
                    },
                    decorate
                }
            ]
            circle[radius=6.2 cm];
        % top ornamentation
            \rput{-30}(2.5, 4.2){\pgfornament[scale=.4]{87}}
            \rput{30}(-2.5, 4.2){\pgfornament[scale=.4]{87}} 
        % bottom ornamentation
            \rput(0, -2.5){\pgfornament[scale=.7]{75}}
        % right ornamentation
            \rput{-90}(5, 0){\pgfornament[scale=.6]{72}}
        % left ornamentation      
            \rput{90}(-5, 0){\pgfornament[scale=.6, symmetry=v]{72}}  
        % central text
            \node[font=\fontsize{35}{60}\selectfont] at (0, 2.5){P.P.E.};
            \node[font=\fontsize{60}{60}\selectfont] at (0, 0.5){{\cyr k v a s}};    
            \node[font=\huge] at (0, -5){MMXII};
    \end{tikzpicture}
\end{document}

非常感谢你的协助

答案1

正如 percusse 所评论的,最简单的方法是使用两个arcs,其中一个是不反转文本。

\documentclass[11pt]{scrartcl}
% TikZ
    \usepackage{tikz, pgfornament, tikzrput}
    \usetikzlibrary{decorations, decorations.text}
% font size
    \usepackage{fix-cm}
% cryillic font
    \usepackage[OT2, OT1]{fontenc}
    \newcommand\cyr{%
        \renewcommand\rmdefault{wncyr}%
        \renewcommand\sfdefault{wncyss}%
        \renewcommand\encodingdefault{OT2}%
        \normalfont
        \selectfont
    }
    \DeclareTextFontCommand{\textcyr}{\cyr}
    \def\Eoborotnoye{\char3}
    \def\eoborotnoye{\char11}
    \def\cprime{\char126}
    \def\cdprime{\char127}
\begin{document}
    \begin{tikzpicture}
        % outer circle
            \draw[line width=2 mm] circle[radius=7.4 cm];
        % inner circles
            \draw[ultra thick] circle[radius=6 cm] circle[radius=7 cm]  ;
        % outer text
            \path[
                %rotate=-15.2,
                postaction={
                    decoration={
                        text along path,
                        text format delimiters={|}{|},
                        text={%
                            |\Huge|                            
                            {\pgfornament[scale=.4, ydelta=-9 pt]{15}}
                            OFFICIAL DRINK PARTICLE PHYSICS EXPERIMENT
                            {\pgfornament[scale=.4, ydelta=-9 pt]{15}}
                        },
                        text align=center,
                        reverse path
                    },
                    decorate
                }
            ]
             (-27:6.2cm) arc (-27:210:6.2cm);   
\path [postaction={decorate,decoration={text along path, text align=fit to path,text={|\Huge|UNIVERSITY OF GLASGOW}}}] (209:6.8cm) arc (209:330:6.8cm);
        % top ornamentation
            \rput{-30}(2.5, 4.2){\pgfornament[scale=.4]{87}}
            \rput{30}(-2.5, 4.2){\pgfornament[scale=.4]{87}}
        % bottom ornamentation
            \rput(0, -2.5){\pgfornament[scale=.7]{75}}
        % right ornamentation
            \rput{-90}(5, 0){\pgfornament[scale=.6]{72}}
        % left ornamentation
            \rput{90}(-5, 0){\pgfornament[scale=.6, symmetry=v]{72}}
        % central text
            \node[font=\fontsize{35}{60}\selectfont] at (0, 2.5){P.P.E.};
            \node[font=\fontsize{60}{60}\selectfont] at (0, 0.5){{\cyr k v a s}};
            \node[font=\huge] at (0, -5){MMXII};
    \end{tikzpicture}
\end{document}

enter image description here

为了获得定制的外观,可以调整定义中的角度arc。更多详细信息请参见这些答案

相关内容