Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font aswesome not rendered upon deployment #1457

Closed
divyabhushan opened this issue Jun 7, 2020 · 10 comments
Closed

Font aswesome not rendered upon deployment #1457

divyabhushan opened this issue Jun 7, 2020 · 10 comments
Labels
Type: Bug / Error Something isn't working or is incorrect

Comments

@divyabhushan
Copy link

Describe the bug
Font awesome icons are not rendered on the deployed site - Basic support for fontawesome

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://mermaid-js.github.io/mermaid/#/flowchart?id=basic-support-for-fontawesome'
  2. Look at the output diagram with missing icons

Expected behavior
Screenshot 2020-06-07 at 23 26 44

Screenshots
Incorrect output:
Screenshot 2020-06-07 at 23 25 24

Desktop (please complete the following information):

  • OS: MacOS Catalina
  • Browser: Chrome
  • Version 83.0.4103.61
  • Browser: Safari
  • Version 13.0.3

Smartphone (please complete the following information):

  • Device: iPhone7
  • OS: iOS13.3.1
  • Browser: Safari

Additional context

@divyabhushan divyabhushan added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jun 7, 2020
@divyabhushan
Copy link
Author

/assign @divyabhushan

@syron
Copy link

syron commented Jun 8, 2020

Same issue here. we just updated to the latest release and the font awesome icons are no longer loading.

@divyabhushan
Copy link
Author

True. Static site generators such as Jekyll and Hugo have good plugins that resolve these font awesome rendering problems.

@sudhakar-sekar
Copy link

Hi,
How to use font-awesome PRO icons in mermaid?
Can anyone suggest me.

@divyabhushan
Copy link
Author

@sudhakar-sekar, sorry didn't get your query. Did you mean how to display these icons in your code using an embed mermaid class? Like the one shown above?

@sudhakar-sekar
Copy link

@divyabhushan No, what I mean is I am able to use free font-awesome icons in mermaid. Can I use PRO font-awesome icons instead of free icons?

@knsv knsv removed the Status: Triage Needs to be verified, categorized, etc label Aug 8, 2020
@imfence
Copy link

imfence commented May 1, 2021

It works fine in the live editor. But when i use typora, it doesnt work.

@odebroqueville
Copy link

I believe that Mermaid may require an update to support Font Awesome version 5. Please note that the "fa" prefix on its own has been deprecated:

Screenshot 2021-09-16 at 14 35 19

The above is taken from the Font Awesome documentation.

Also, below is what the Mermaid documentation currently displays in Safari 14.1.2 on macOS Big Sur 11.5.2. All icons are missing in the documentation.

Screenshot 2021-09-16 at 14 05 06

and this is what the Mermaid Live Editor (supporting version 8.12.1) renders when copy-pasting the sample code from the documentation. For some reason, the twitter icon is missing!

Screenshot 2021-09-16 at 14 57 16

However, the results in the Live Editor are not consistent: clicking on the button in the left pane to download a PNG file will show all icons missing, as in the Mermaid documentation, but clicking on the button to open a PNG in a new tab will show all the icons (with spacing issues for the text).

Screenshot 2021-09-16 at 15 11 09

@jgreywolf
Copy link
Contributor

This is now working as expected in mermaidJS. If there is still an issue in the Live Editor please open a new issue in that repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

7 participants