[Tex/LaTex] Smartphone symbol for pdfLaTeX

symbols

I want to use a smartphone symbol.

Naturally, I went to How to look up a symbol or identify a math symbol or character?, but I wasn't able to find any smartphone look-alike (only old phones, and the mobile one looks like a Blackberry, as opposed to a nowadays standard smartphone).

I was able to find the type of symbol I'm looking for within the answers of these two questions:

  1. https://tex.stackexchange.com/a/173165/27833
  2. https://tex.stackexchange.com/a/223105/27833

But, unfortunately, they both seem to work only with the fontspec package… and require either XeLaTeX or LuaLaTeX.

Is there any option to get the smartphone symbol for pdfLaTeX?

Best Answer

A mobile phone using direct \pdfliteral should look like this:

\def\mobile{\leavevmode\hbox to7bp{\kern1bp \lower1bp\vbox to12bp{}%
    \pdfliteral{q 0 g 0 G 1 j 2 w 0 0 5 10 re B
       1 g 1 G 1 w .3 1.8 4.4 7 re B 
       1.5 w 2.5 .2 0 .1 re B .3 w 1.7 10 1.6 0 re B Q}%
    \hss}}

Mobile: \mobile

Result: mobile

Edit: Maybe you need scaled version of this. The next version of \mobile macro has one parameter which is the scaling coefficient. You can compare with the previous "nonscaled" macro.

\newdimen\bpt
\def\mobile#1{\leavevmode 
   \bpt=#1bp \hbox to7\bpt{\kern1\bpt \lower1\bpt\vbox to12\bpt{}%
      \pdfliteral{q #1 0 0 #1 0 0 cm 1 j 2 w 0 0 5 10 re B 
         1 g 1 G  1 w .3 1.8 4.4 7 re B 
         1.5 w 2.5 .2 0 .1 re B .3 w 1.7 10 1.6 0 re B Q}%
      \hss}}

Mobile: \mobile{1}, \mobile{3.2}, \mobile{.2}.
Related Question