Missing Unicode Euro Symbol in lualatex

With lualatex and xetex it became straight forward to choose from the huge universe of TrueType and OpenType fonts for typesetting text at high quality. Recently, I was preparing to set a letter in the free Colaborate font face, when I observed that the Euro symbol was not rendered by lualatex.

After trying all usual suspects from various Euro symbol add-on packages to incuding the Euro symbol’s unicode character directly with

\symbol{"20AC}

I came to the conclusion that there was a problem with the Colaborate font face. Examination of the font in fontforge

View -> Goto-> 0x20AC

revealed that the Euro symbol was indeed missing from the font face. Browsing the gylphs provided by the font I discovered the Euro symbol as Unicode Character CURRENCY SIGN with hexadecimal code U+00A4. Entering this general unicode character in latex by

\symbol{"00A4}

finally gave me the Euro symbol. For further convinience, I defined a command in the documents preamble,

\renewcommand{\texteuro}{\symbol{"00A4}}

For managing issues with missing spaces after a latex macro, use it with trailing {} brackets, for example,

\texteuro{}

See also here for other solutions to deal with spaces after latex macros.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s