I am working with Tex Studio and using XeLatex compiler. When using \checkmark in the table shows a hollow box instead of symbol. Based on the internet search, I have used packages such as \pifont and \amssymb but no success. If I change the compiler to pdfLatex, the checkmarks are visible.
Thank you for help in advance.
\documentclass{article}
\begin{document}
$\begin{table}[h!]
\begin{center}
\begin{tabular}{|p{4cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm}|} \hline
Location & $u_x$ & $u_y$ & $u_z$ & $\phi_x$ & $\phi_y$ & $\phi_z$ \\ \hline\hline
Main Wall Bottom & \checkmark & \checkmark & \checkmark & \checkmark & NDoF & \checkmark\\ \hline
Pier Bottom & \checkmark & \checkmark & \checkmark & NDoF &\checkmark & \checkmark\\ \hline
Main Wall Top & \checkmark & \checkmark & - & \checkmark & NDoF & \checkmark\\ \hline
Pier Top & \checkmark & \checkmark & - & NDoF &\checkmark & \checkmark\\ \hline
Pier Vertical & \checkmark & \checkmark & - & NDoF & \checkmark &\checkmark\\ \hline
\end{tabular}
\caption{Boundary conditions "-"= Not restricted; "NDof"= Element do not have respective degree of freedom }
\label{tab:element-bc}
\end{center}
\end{table}$
\end{document}

