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 (external resources) can't load when svg embedded via img tag #5

Open
gpoitch opened this issue Jul 18, 2018 · 0 comments
Open
Labels
help wanted Extra attention is needed

Comments

@gpoitch
Copy link
Member

gpoitch commented Jul 18, 2018

For example when embedding in a github readme:

<img src="term-sheet.svg" />

This cannot load the custom font in the css

@import url("https://fonts.googleapis.com/css?family=Inconsolata");

This is a known browser limitation that img tags won't load any external resources.

Possible options:

  • Embed the font as base64
  • Figure out an alternative way to embed svg in github markdown
  • Don't use custom fonts and just use the monospace font-stack
@gpoitch gpoitch added the help wanted Extra attention is needed label Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant