[Tex/LaTex] Creating the Twitter verified badge using TikZ

svgsymbolstikz-pgf

I'm trying to create the blue Twitter verified badge using TikZ. The real version looks like this:

enter image description here

(Source: https://twitter.com/verified)

This is the MWE I have so far:

\documentclass{article}

\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault} 
\usepackage[T1]{fontenc}
\usepackage[rgb]{xcolor}
\usepackage{tikz}

\definecolor{twitblue}{RGB}{1,156,246}
\newcommand{\verified}[1]{%
\begin{tikzpicture}[#1]%
\fill [twitblue] (0,0) circle (.7ex);
\draw [white,scale=0.1,line cap=round,line width=0.2mm](-.4,-.05) -- (-.1,-.3) -- (.4,.4);
\end{tikzpicture}%
}

\begin{document}
\textbf{Joe Bloggs} \verified{} 

\textbf{Joe Bloggs} \verified{scale=1.5}
\end{document}

enter image description here

Some of the issues:

  • I am unsure how to get the curved effect around the edge of the circle.
  • The bottom part of the checkmark isn't curved.
  • How do I get it to scale correctly? (The white checkmark isn't scaling properly)
  • How can I adjust the vertical alignment of the symbol?

Any pointers would be much appreciated.

UPDATE

The accepted answer provides a TikZ solution as the question originally requested. However, two solutions involving the exact .svg file of this badge were also provided. See answers by Kpym: (If you want the logo to be exactly the same, you can use the SVG original…) and (Here is a font solution, without TikZ…).

Best Answer

You can use cloud from the shapes library:

enter image description here

You create a \node[cloud], specify the number of cloud puffs (8, from your picture), and the cloud puff arc (135° looked right to me).

I added line join=round to the tick to make the lower part be rounded.

Also, I changed the color a bit and changed the syntax of the command to allow the optional argument to be optional.

\documentclass{article}

\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[rgb]{xcolor}
\usepackage{tikz}
\usetikzlibrary{shapes}

\definecolor{twitblue}{HTML}{1DA1F2}
\newcommand{\verified}[1][1]{%
  \begin{tikzpicture}[scale=#1]%
    \node [draw,fill,twitblue,cloud,cloud puffs=8,cloud puff arc=135, inner sep={#1*0.4ex}] {};
    \draw [white,scale=0.1,line cap=round,line width={#1*0.2mm},line join=round](-.4,-.05) -- (-.1,-.3) -- (.4,.4);
  \end{tikzpicture}}

\begin{document}

\textbf{Twitter Verified} \verified[0.5]

\textbf{Twitter Verified} \verified

\textbf{Twitter Verified} \verified[2]

\textbf{Twitter Verified} \verified[5]

\end{document}