font-awesomegitbook

How do I use font awesome in Gitbook?


I noticed that font awesome is integrated into Gitbook. We have the following files under _book/gitbook/fonts/fontawesome/,

FontAwesome.otf  
fontawesome-webfont.eot  
fontawesome-webfont.svg  
fontawesome-webfont.ttf  
fontawesome-webfont.woff  
fontawesome-webfont.woff2

I add an icon, say <i class="fa-solid fa-circle"></i>, to a markdown file, however, the icon didn't show up as shown below.

enter image description here

How can I use awesome font in Gitbook?


Solution

  • GitBook doesn't support all awesome icon fonts. It would work using icons from Font Awesome Free's Cheatsheet.