使用 Lualatex 编译的 Pgothic 标题阴影 st-Words,其中需要圆形“s”

使用 Lualatex 编译的 Pgothic 标题阴影 st-Words,其中需要圆形“s”

考虑一下代码

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{pgothic}

\newcommand\titleshading[3]{

\newcommand\xoffset{0.3} % Horizontal positioning of the colored shading.
\newcommand\yoffset{-0.25} % Vertical positioning of the colored shading.

    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\newcommand\titleshadingA[3]{
    \newcommand\xoffset{0.18}
    \newcommand\yoffset{-0.2}
    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\begin{document}
\begin{tikzpicture}[remember picture,overlay]   
    \titleshadingA{16}{0}{Breakf\/ast with pgothfamily}
\end{tikzpicture} 
\end{document}

产生输出

在此处输入图片描述

在这个环境中,将 / 应用于第一个单词 breakfast ( breakfa\/st) 似乎并不能在单词 “breakfast” 中产生一个圆润的 s。

pgothfamily问题:当使用 、涉及颜色阴影并且文档使用 编译时,我怎样才能在单词“早餐”中生成一个圆形的“s” lualatex

谢谢。

答案1

在 lualatex 中,我插入 \/ s,例如Breakfas\/t

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{pgothic}

\newcommand\titleshading[3]{

\newcommand\xoffset{0.3} % Horizontal positioning of the colored shading.
\newcommand\yoffset{-0.25} % Vertical positioning of the colored shading.

    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\newcommand\titleshadingA[3]{
    \newcommand\xoffset{0.18}
    \newcommand\yoffset{-0.2}
    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\begin{document}
\begin{tikzpicture}[remember picture,overlay]   
    \titleshadingA{16}{0}{Breakfas\/t with pgothfamily}
\end{tikzpicture} 
\end{document}

在此处输入图片描述

在 pdflatex 中,我使用Breakfa{s}t

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{pgothic}

\newcommand\titleshading[3]{

\newcommand\xoffset{0.3} % Horizontal positioning of the colored shading.
\newcommand\yoffset{-0.25} % Vertical positioning of the colored shading.

    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\newcommand\titleshadingA[3]{
    \newcommand\xoffset{0.18}
    \newcommand\yoffset{-0.2}
    % Blur
    \foreach \x in {-0.1,0.1} {
        \foreach \y in {-0.1,0.1} {         
            \node[olive!62] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
                \scalebox{1.75}{\Huge\pgothfamily{#3}} 
            };
        }
    }

    % Main Shadow
    \node[olive!62] at (#1em+0.3em,#2em-0.2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
    \node at (#1em,#2em) {
        \scalebox{1.75}{\Huge\pgothfamily{#3}} 
    };
}

\begin{document}
\begin{tikzpicture}[remember picture,overlay]   
    \titleshadingA{16}{0}{Breakfa{s}t with pgothfamily}
\end{tikzpicture} 
\end{document}

在此处输入图片描述

相关内容