[Tex/LaTex] How to draw an arc with varying line thickness

tikz-pgf

I'm trying to redraw existing figures with TikZ as an exercise to learn it. This time I have choosen an interesting logo and I'm having difficulties drawing the arc. Here is the logo
original logo

I noticed that the red arc looks almost like an incomplete ellipse and found the interesting arc option in the manual. This may not be the best approach since the end of the arc (close to the last 'n') seems to deviate from the ellipse shape. Anyway, what I'm really interested is not the arc construction (I may file a separate question for that), but how I could draw the arc with varying line thickness. I.e. it starts very thin, and smoothly increases and decreases again.

Here's what I got so far (note: font is not right … probably propriatary):

\begin{tikzpicture}[font=\sffamily]
  % font: the 'n' has some funny curvature

  \definecolor{infblue}{HTML}{0066b3}
  \definecolor{infred}{HTML}{ec1840}
  % guessing boundary conditions
  \coordinate (upperred) at (2.,1.6);
  \coordinate (rightred) at (3.6,0.7);

  % helpers 
  \fill[gray] (upperred) circle (1pt);
  \fill[gray] (rightred) circle (1pt);
  %\draw (upperred) .. controls (-4,4) and (6,0) .. (rightred);
  %\draw plot [smooth,tension=0.7] coordinates {(upperred) (Iblue) (rightred)};

  \node[rectangle] at (2,1) {\Huge \textcolor{infblue}{Infineon}};
  \draw[thick,infred] (upperred) arc[start angle=85,end angle=330,x radius=18mm, y radius=6mm];

  % todo: initial 'I' is shorter. replace.
  \end{tikzpicture}

tikz generated logo

Best Answer

Here you have a TikZ version, although it's "cheated": it doesnt draw arcs, but overlays a white ellipse on top of a red one:

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
\usepackage{kurier}

\begin{document}
\begin{tikzpicture}[scale=0.5, every node/.style={font=\fontsize{70}{70}\selectfont}];
\fill[red] (0,0) circle (10cm and 5cm);
\fill[white] (0.5,0.5) circle (9.5cm and 4.75cm);
\node[blue] at (0,1.3) {infineon};
\fill[white] (-8.1,2.8) circle (0.7cm);
\fill[blue] (-8.1,2.8) circle (0.5cm);
\end{tikzpicture}
\end{document}

enter image description here


Edit 1: I tweaked it a little: a better font, and I used your colors:

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
%\usepackage[condensed,math]{iwona}
\usepackage{iwona}
\usepackage[T1]{fontenc}

\begin{document}
\begin{tikzpicture}[scale=0.5, every node/.style={font=\fontsize{70}{70}\selectfont}];
\definecolor{infblue}{HTML}{0066b3}
\definecolor{infred}{HTML}{ec1840}

\fill[infred] (0,0) circle (10cm and 5cm);
\fill[white] (0.5,0.5) circle (9.5cm and 4.75cm);
\node[infblue] at (-0.20,0.8) {\textbf{Infineon}};
\fill[white] (-8,2.9) circle (0.7cm);
\fill[infblue] (-8,2.9) circle (0.5cm);
\end{tikzpicture}
\end{document}

enter image description here


Edit 2: As I wasn't happy with the ellipses, I changed that to come closer to the original:

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
%\usepackage[condensed,math]{iwona}
\usepackage{iwona}
\usepackage[T1]{fontenc}

\begin{document}
\begin{tikzpicture}[scale=0.5, every node/.style={font=\fontsize{70}{70}\selectfont}];
\definecolor{infblue}{HTML}{0066b3}
\definecolor{infred}{HTML}{ec1840}

\fill[infred] (0,0) circle (10cm and 5cm);
\fill[white] (0.5,0.25) circle (9.8cm and 4.75cm);
\node[infblue] at (-0.20,0.4) {\textbf{Infineon}};
\fill[white] (-8,2.9) circle (0.7cm);
\fill[infblue] (-8,2.9) circle (0.5cm);
\end{tikzpicture}
\end{document}

enter image description here

Related Question