39

I could not find the symbol of the image below which is in a book in my possession. I honestly do not remember where I saw it. Could someone help me where this symbol is located? This symbol (red rectangle) does not exist in the Comprehensive LATEX Symbol List by Scott Pakin.

enter image description here

Sebastiano
  • 54,118
  • 3
    just use \includegraphics{zzz} for any picture of glasses that you find with a google image search – David Carlisle Aug 23 '18 at 20:00
  • 3
    @DavidCarlisle wouldn't be \includegraphics{looklooklook} be more fitting? – Ulrike Fischer Aug 23 '18 at 20:03
  • 3
    @Sebastiano if you have a book as paper you can not tell whether it is an image or a font glyph, why do you say it is not an image? – David Carlisle Aug 23 '18 at 20:04
  • @DavidCarlisle I have used two tools on line What Font Is and What The Font and I have not find nothing. After I have searched on the web and I haven't find the same glasses. – Sebastiano Aug 23 '18 at 20:08
  • 3
    @Sebastiano why do you think it is a font character? – David Carlisle Aug 23 '18 at 20:13
  • This is not a duplicate of https://tex.stackexchange.com/questions/250511/is-there-a-latex-symbol-for-glasses?. It is older, but have less answers and popularity, so I mot sure of which questions should be closed. – Fran Sep 07 '18 at 10:34
  • @Fran I needed the pair of glasses of my image and not the ones with the moustache or modern style :-) is not a duplicate because I was asking if there was a precise font just for the glasses. – Sebastiano Sep 08 '18 at 19:23
  • @Sebastiano Ok, he ask for a glasses symbol and not "that glasses symbol" but I will left the comment to maintain the link. I do not feel good cashing out Mr. Potato's decorations of a glasses party. :) – Fran Sep 08 '18 at 19:39

8 Answers8

77

Here is a TikZ solution.

enter image description here

\documentclass{article}
\usepackage{blindtext}
\usepackage{tikz}

\newcommand{\glasses}{\resizebox{3em}{!}{%
\tikz{\draw(0,0) coordinate (Origin) --++(0.2,0) coordinate (endL) arc (180:0:0.05)--++(0.2,0) coordinate (endR) --++(45:0.25) arc (180-45:0:0.08) (endR) arc (0:-180:0.1) (endL) arc (0:-180:0.1) (Origin)--++(45:0.25) arc (180-45:0:0.08);
}}}

\begin{document}
\noindent
\glasses\ \textsc{Attention}. \blindtext
\end{document}
Milo
  • 9,440
35
\documentclass{article}
\usepackage{tikzducks}

\begin{document}

\tikz{\duck[invisible,squareglasses]} 

\tikz{\duck[invisible,glasses]} 

\tikz{\duck[invisible,sunglasses]}  

\end{document}

enter image description here

30

The unicode character EYEGLASSES, code U+1F453

seems to be what you are looking for.

22
\documentclass{article}
\usepackage{fontawesome5}
\begin{document}
\faGlasses\textsc{Attention:}
\end{document}

enter image description here

  • Marcel thank you very much for your answer. I am young, they seem used glasses :-). I do not like are too showy. – Sebastiano Aug 23 '18 at 20:19
  • 3
    @Sebastiano If you own Font Awesome Pro, you can also use [light] or [regular] glasses. They look much better with non-bold text. – Marcel Krüger Aug 23 '18 at 20:28
14

enter image description here

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\noindent\includegraphics[height=1.5em]{zzz.png} \textsc{Attention} zzz
 z zzz zzz zzzzzzz  zzz z z z z zzzzz z z zzzzzzzzz zzz zzzz zzzzzzzz zzzzz.
\end{document}

where zzz.png is just a cropped version of the image you posted.

enter image description here

David Carlisle
  • 757,742
  • 2
    Thank you very much, but do not get angry with me politely. I'm not as good as you are but it's really ugly an image like this. It looks like a book from the '800 :-) – Sebastiano Aug 23 '18 at 20:17
  • 3
    @Sebastiano yes but I cropped the image you posted, you could use a higher resolution scan of the original or as I said in the original comment use a google image search there are literally thousands of available line drawings you could use. – David Carlisle Aug 23 '18 at 20:19
  • 4
    @Sebastiano An improved solution to David's would be to use a drawing software like Inkscape to trace the shape and convert it to a vector image. This should be rather easy with any similar software. – Ian Aug 24 '18 at 08:25
  • 3
    @Sebastiano This is the most general answer. Just google an image and use it. Or if you want something more fancy, search for fonts that have glasses as symbol (examples here) and import that symbol probably with XeLaTeX). – luchonacho Aug 24 '18 at 11:33
  • @luchonacho I am writing a book together with a university colleague and there are many vector images. I was curious to know if there was a symbol of the glasses that I saw somewhere but I do not remember. Greetings. – Sebastiano Aug 24 '18 at 19:39
12

vector graphic = perfect quality

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\includegraphics[height=1em]{glasses.pdf} Attention!

\end{document}

enter image description here

12

No images, no unicode characters, not tikz, no invisible ducks :(

Macho programmers use only ASCII. :)

enter image description here

\documentclass{article}
\usepackage{graphicx}
\def\glasses{{\sffamily 
\leavevmode\rlap{%
\rotatebox[origin=tr]{125}{J}\kern1ex%  
\rotatebox[origin=tr]{125}{J}}% 
\rotatebox[origin=c]{-90}{D}%   
\rotatebox[origin=c]{-90}{D}}%
\def\ialy{\sffamily 
\resizebox{1ex}{1.5ex}{\reflectbox{\rotatebox[origin=]{75}{J}}}\kern-1pt%
\rlap{\tiny$\ ^\bullet\kern2.5pt^\bullet$ }%
\rotatebox[origin=c]{-90}{D}%   
\rotatebox[origin=c]{-90}{D}\kern-1pt%  
\resizebox{1ex}{1.5ex}{\rotatebox[origin=]{75}{J}}}}
\begin{document}
My pure \TeX(t) glasses \glasses\par
I am looking you \ialy
\end{document}
Fran
  • 80,769
7

Without any packages

\documentclass{standalone}

\begin{document}

\begin{picture}(100,60)
\put(20,20){\line(1,1){20}}
\put(60,20){\line(1,1){20}}
\put(20,20){\line(1,0){17.5}}
\put(42,20){\line(1,0){17.5}}
\put(28.5,20){\oval(17.5,15)[b]}
\put(51,20){\oval(17.5,15)[b]}
\put(39.7,20){\oval(5,5)[t]}
\put(80,35.2){\oval(10,10)[rt]}
\put(40,35.2){\oval(10,10)[rt]}
\end{picture}

\end{document}

enter image description here

daniel
  • 1