TikZ で回転したテキストは色あせたように見える

TikZ で回転したテキストは色あせたように見える

パッケージを使用すると、回転したテキストがぼやけて見えるという問題が発生しました: \usepackage[T1]{fontenc}

fontenc残念ながら、このパッケージはプロジェクトの他の部分と多くの依存関係があるため、拒否できません。この問題に対処するための回避策はありますか?

パッケージなし:

ここに画像の説明を入力してください

パッケージ付き:

ここに画像の説明を入力してください

例:

\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}  

ここに画像の説明を入力してください

関連情報