Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by 9dev

1 year ago

That would be:

  @font-face {
      font-family: 'foo';
      src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAGy …)
  }

1 comment

9dev

Reply

jfk13  1 year ago

A minor detail, but the MIME type should be `font/woff` (or `font/woff2` if appropriate), not the nonstandard `application/x-...`.

(E.g. see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_...)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities