Is there a \ding symbol for a house?

We can use direct \pdfliteral. For example:

\def\house{\hbox{\kern3pt \vbox to13pt{}% 
   \pdfliteral{q 0 0 m 0 5 l 5 10 l 10 5 l 10 0 l 7 0 l 7 5 l 3 5 l 3 0 l f
               1 j 1 J -2 5 m 5 12 l 12 5 l S Q }%
   \kern 13pt}}

House: \house.

\end

house


% arara: lualatex

\documentclass{article}
\usepackage{fontspec}
\newcommand*{\house}[2]{{\fontspec{#1}\symbol{"#2}}}

\begin{document}
    Lamentable class:
    \house{symbola.ttf}{26FA}
    \house{quivira.otf}{26FA}

    Lower class:
    \house{code2000.ttf}{2302}
    \house{symbola.ttf}{2302}
    \house{Linux Libertine O}{2302}
    \house{quivira.otf}{2302}
    \house{freeserif.ttf}{2302}

    Middle class:
    \house{symbola.ttf}{1F3E0}
    \house{quivira.otf}{1F3E0}

    Upper class:
    \house{symbola.ttf}{1F3E1}
    \house{quivira.otf}{1F3E1}

    Property owner:
    \house{symbola.ttf}{1F3D8}

    Business:
    \house{symbola.ttf}{1F3E2}
    \house{quivira.otf}{1F3E2}

    Dandy:
    \house{symbola.ttf}{1F3DB}
    \house{symbola.ttf}{1F3EF}

    King:
    \house{symbola.ttf}{1F3F0}
\end{document}

enter image description here


Well, I guess I'll join the bandwagon too. This solution uses the fontawesome package/symbol font.

\documentclass{article}
\usepackage{fontawesome}

\begin{document}
Test home symbol: \faHome
\end{document}

enter image description here

Tags:

Symbols