我遇到一個問題,當您使用該包時,旋轉的文字看起來像是被洗掉了:
\usepackage[T1]{fontenc}
遺憾的是,我無法拒絕fontenc
-package,因為它對專案的其餘部分有很多依賴項。有什麼解決方法可以解決這個問題嗎?
無包裝:
附包裝:
例子:
\documentclass[a4paper,10pt]{article}
%FONTS
\usepackage[T1]{fontenc}
%TIKZ LIBRARYS
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,shadows,arrows,backgrounds}
\tikzstyle{arrow}=[->, >=open triangle 60, thick, color=black]
\begin{document}
\begin{tikzpicture}
\draw[arrow, rounded corners] (0,0) -- node[sloped, anchor=center, above] {I have a} node[sloped, anchor=center, below] {washed style :(} (-4,-4);
\end{tikzpicture}
\end{document}
答案1
參考答案中siunitx 和 T1 fontenc 的問題,新增\usepackage[T1]{fontenc}
到序言中將預設載入位圖字體。要解決此問題,您應該安裝 cm-super 軟體包或載入向量字體(例如lmodern
或libertine
)。
這樣,程式碼改為:
\documentclass[a4paper,10pt]{article}
%FONTS
\usepackage[T1]{fontenc}
\usepackage{lmodern}
%TIKZ LIBRARYS
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,shadows,arrows,backgrounds}
\tikzstyle{arrow}=[->, >=open triangle 60, thick, color=black]
\begin{document}
\begin{tikzpicture}
\draw[arrow, rounded corners] (0,0) -- node[sloped, anchor=center, above] {I have a} node[sloped, anchor=center, below] {washed style :(} (-4,-4);
\end{tikzpicture}
\end{document}