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

embed installed fonts in a svg context #23

Closed
typemytype opened this issue Jan 8, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@typemytype
Copy link
Owner

commented Jan 8, 2016

use:

<defs>
  <style type="text/css">
    @font-face {
      font-family: Delicious;
      src: url('../fonts/font.woff');
      src: url("data:application/font-woff;charset=utf-8;base64,...");
    }
  </style>
</defs>

use url when it is an url or base64 when it is a local file

@justvanrossum

This comment has been minimized.

Copy link
Collaborator

commented Jan 8, 2016

Oh my, and then we probably should do subsetting, too? :)

@typemytype

This comment has been minimized.

Copy link
Owner Author

commented Jan 8, 2016

fontTools has a subsetter...
or maybe not...

@justvanrossum

This comment has been minimized.

Copy link
Collaborator

commented Jan 8, 2016

Indeed it does, but it will require us to analyze the content.

@typemytype

This comment has been minimized.

Copy link
Owner Author

commented Jan 8, 2016

without subsetting...
but maybe subsetting is the users responsibility?

22f004f

@justvanrossum

This comment has been minimized.

Copy link
Collaborator

commented Jan 8, 2016

Nice, but raises the question: shouldn't fonts then always be embedded, like presumable Apple's PDF generator does. Right now, fonts that are installed "normally" (~/Library/Fonts or whatever) are not embedded.

I'm not a fan of non-subsetted embedding, so I prefer no embedding as long as we can't do subsetting. The risk of accidental font distribution is just too big, especially since the temp font install feature is useful to create proofs for works in progress...

@justvanrossum

This comment has been minimized.

Copy link
Collaborator

commented Jan 8, 2016

Is this already part of DrawBot 3.69? It's really not a good thing I'm afraid.

@typemytype

This comment has been minimized.

Copy link
Owner Author

commented Oct 26, 2017

the current status is: svg has no embedded fonts and relies on user install fonts or provided web fonts when displayed in a html page

lets keep it like this

@typemytype typemytype closed this Oct 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.