# Unicode Character/Symbol in Lua(La)TeX

I am trying to print a specific unicode character in LuaLaTeX using

\documentclass{article}
\begin{document}
\char"2605 \symbol{"2605"} ^^^^2605
\end{document}


However, none of these prints the black star (unicode 2605). The first two commands show nothing while the last one prints a right double quotation mark. Help.

• The second " in "2605 is wrong. And the log says: There is no ★ (U+2605) in font [lmroman10-regular]. You need a font that contains that glyph. – Phelype Oleinik May 23 at 19:17
• Thank you for the reply. How, then, is $\blackstar$ (amssymb) created? – Troy Henderson May 23 at 19:30
• classic tex math fonts are not in unicode encoding, there are multiple fonts and each character is in the range 0-127 – David Carlisle May 23 at 20:07

Works with one of the fonts from http://www.fileformat.info/info/unicode/char/2605/fontsupport.htm

\usepackage{fontspec}
\setmainfont{DejaVu Sans}

\begin{document}
\char"2605 \symbol{"2605} ^^^^2605
\end{document}


• As I said in the comment above, the second " in "2605" is wrong. – Phelype Oleinik May 23 at 19:23
• @PhelypeOleinik Thank you – muxoveji May 23 at 19:25
• Using fontspec and setting the font to FiraSans-Regular also does not display this character even though the character is showing in the character map. – Troy Henderson May 23 at 19:45
• @TroyHenderson don't trust the character map (if you mean e.g. the windows one) it often fills missing characters with glyphs from other fonts. – Ulrike Fischer May 23 at 20:08
• Thank you for the tip. – Troy Henderson May 23 at 21:33