# Some LuaTeX unicode characters not working

I know that I can type unicode characters by number in LuaTeX with ^^^^00a9 for example. Works for the copyright symbol.

I can't get it to work though for arbitrary symbols like ^^^^2764 (heart) or ^^^^260e (phone).

How can I make LuaTeX support these characters and why doesn't it work in the first place?

• you will have a warning in the log that tells you the font you are using does not have that character. – David Carlisle Feb 18 '17 at 10:44
• @DavidCarlisle This is not really a warning. Just a message saying: Missing character: There is no ❤ (U+2764) in font [lmroman10-regular]:+tlig;! – Paul Gaborit Feb 18 '17 at 16:21
• @PaulGaborit yes a behaviour inherited from classical tex, it's not clear why it's not styled more as a Warning or at least sent to the terminal, but it's not changeable in the macro layer it's a low level feature of the engines. – David Carlisle Feb 18 '17 at 16:26
• tex.stackexchange.com/a/119945 is related, but the answer given there seems to need some adjustment for the current version of TeX Live. – Thérèse Feb 18 '17 at 19:40

LuaTeX supports all UTF-8 characters (directly or via ^^^^XXXX). Most fonts, however, do not have all the corresponding glyphs.

For each missing character, in the log file, you will find a message as:

Missing character: There is no ❤ (U+2764) in font [lmroman10-regular]:+tlig;!

\RequirePackage{luatex85}
\documentclass[varwidth=8cm,border=3mm]{standalone}
\usepackage{fontspec}

\newcommand\tryfont[1]{
\setmainfont{#1}
#1:\par