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

Avoid downloadable fonts via inspectors #40

Closed
oysteinhusby opened this issue Feb 24, 2024 · 1 comment
Closed

Avoid downloadable fonts via inspectors #40

oysteinhusby opened this issue Feb 24, 2024 · 1 comment
Labels
invalid This doesn't seem right

Comments

@oysteinhusby
Copy link

Whichever font is previewed is loaded in such a way that it can easily be downloaded via Chrome Inspect and other similar tools.
Is this the intended behavior? Is there a way to avoid this?

Obviously, running a commercial font site where the fonts are downloadable with a few simple clicks is unacceptable.

@kontur
Copy link
Collaborator

kontur commented Feb 29, 2024

There is no technical way to avoid sending a webfont to the browser if the browser should render said webfont.

Obviously, running a commercial font site where the fonts are downloadable with a few simple clicks is unacceptable.

You'd be surprised. Any foundry with webfont based testers (and 99% of testers are webfont based) operates exactly like this.

Common mitigation strategies are:

  • Subset your webfonts to not include the full font
  • Subset the features in your webfonts
  • Tweak the name tables of your webfonts in a way that makes them not easily installable, even if downloaded and decompressed. You'll want to look into fontTools pyftsubset with the --obfuscate-names option
  • Offer trial fonts to discourage bad actors from needing to rip the fonts from your website
  • Accept that bad actors ripping font from your website would not be licensing them even if ripping the fonts was not possible
  • Not having interactive font testers

@kontur kontur closed this as completed Feb 29, 2024
@kontur kontur added the invalid This doesn't seem right label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants