字母沒有完全正確對齊

字母沒有完全正確對齊

字母沒有完全正確對齊

我正在嘗試創建一個徽標,其中字母既靠左又靠右,但有些字母沒有正確右對齊。我一直在使用這裡建議的解決方案在頁面上水平完全拉伸文本但“G”和“T”顯然沒有右對齊。如何補救?來自我的MWE

幾乎

在此輸入影像描述

更接近,但不再填滿線寬

在此輸入影像描述

微量元素

在下面,我在右側有一些文本,\vspace{0em}因此兩者頂部對齊。

\documentclass{article}
\renewcommand*\sfdefault{ugq}
\usepackage{soul}
\sodef\spaceout{}{0pt plus 1fil}{.4em plus 1fil}{0pt}
\sodef\ugg{}{.4em plus 1fill}{1em plus 2 fill}{2em plus 2fill minus.1em}
\makeatletter
\def\spreadeven#1{%
\@tfor\next:=#1\do{%
\next\hfill
}%
}
\begin{document}
\fbox{
\begin{minipage}[t]{0.5\linewidth}
\vspace{0mm}
\textsf{\textbf{\fontsize{35}{45}\selectfont %
\fontsize{25}{55}\selectfont
\spreadeven{ENDSING}\\
\spreadeven{ENDSINT}\\
}}
\end{minipage}%
}
\hfill
\begin{minipage}[t]{0.3\linewidth}
\begin{flushright}
\vspace{0mm}
Some other text \\
goes here \\
hence the \\
\texttt{vspace\{0em\}}
\end{flushright}
\end{minipage} \\

\fbox{
\begin{minipage}[t]{0.5\linewidth}
\vspace{0mm}
\textsf{\textbf{\fontsize{35}{45}\selectfont %
\fontsize{25}{55}\selectfont
\spaceout{ENDSING}\\
\spaceout{ENDSINT}\\
}}
\end{minipage}%
}
\hfill
\begin{minipage}[t]{0.3\linewidth}
\begin{flushright}
\vspace{0mm}
Some other text \\
goes here \\
hence the \\
\texttt{vspace\{0em\}}
\end{flushright}
\end{minipage} \\

\fbox{
\begin{minipage}[t]{0.5\linewidth}
\vspace{0mm}
\textsf{\textbf{\fontsize{35}{45}\selectfont %
\fontsize{25}{55}\selectfont
\ugg{ENDSING}\\
\ugg{ENDSINT}\\
}}
\end{minipage}%
}
\hfill
\begin{minipage}[t]{0.3\linewidth}
\begin{flushright}
\vspace{0mm}
Some other text \\
goes here \\
hence the \\
\texttt{vspace\{0em\}}
\end{flushright}
\end{minipage} \\
\end{document}

更改字體大小

在最終結果中,我可能還會將第二行設定為使用較小的字體,因此該解決方案預計將與混合字體大小一起使用,儘管每行的字體大小相同。

相關內容