5

I got that issue that a rotated text looks washed when you use the package: \usepackage[T1]{fontenc}

Sadly I can't reject the fontenc-package because it has a lot of dependencies to the rest of the project. Is there any workaround to handle this problem?

without package:

enter image description here

with package:

enter image description here

Example:

\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} 
AndréC
  • 24,137
Mar Tin
  • 429

1 Answers1

8

Referring to the answer in Problem with siunitx and T1 fontenc , Adding \usepackage[T1]{fontenc} to your preamble will load a bitmap font by default. To fix this, you should install the cm-super package or load a vector font (for example lmodern or libertine).

With this, the code changes to:

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

enter image description here

subham soni
  • 9,673