Get the unicode icon value from a custom font

al404IT picture al404IT · Dec 2, 2014 · Viewed 26.7k times · Source

I need to write a CSS for an icon font build using the site flaticon. I develop using a MAC with 10.10 and can't find any way to retrieve a single character Unicode value that I need to insert inside my CSS

.font-icon-pencil:before {
    content: "\e038";
}

How can I read the contents of a font file, to get the icon codes within that custom-made font?

Answer

Micer picture Micer · Feb 15, 2017

On MacOS Sierra I'm able to get a unicode value of icon in Font Book (default app).

  1. Install the font.
  2. Open the user installed font in Font Book.
  3. Move the mouse on the desired icon. You should get a title saying unicode value on hover.

Font Book