我遇到了这样的问题:使用该包时,旋转的文本看起来被洗掉了:
\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}