6

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} 
  • Your example compiles without any problems and the text is not washed out using fontenc. – AndréC Mar 8 at 8:38
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

  • 1
    I understand the issue. Quiet easy, thanks a lot. :-) – Mar Tin Mar 8 at 9:08
  • 1
    @MarTin you are welcome :) – subham soni Mar 8 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.