Giter Club home page Giter Club logo

Comments (9)

JosefJezek avatar JosefJezek commented on July 21, 2024 2

@battlesnake @michaelmior Could you add support for generate css with woff and woff2 fonts?

  @font-face {
      font-family: 'Roboto';
      font-style: normal;
      font-weight: 400;
      /* Use local copy of font, if the user does not have that font installed (two different names are tried),
         then the downloadable font is used instead. */
      src: local('Roboto'), local('Roboto-Regular'),
           url(fonts/roboto/v15/latin-ext/roboto-400-fIKu7GwZTy_12XzG_jt8eA.woff2) format('woff2'),
           url(fonts/roboto/v15/latin-ext/roboto-400-Xyjz-jNkfiYuJf8UC3Lizw.woff) format('woff');
    }

from gulp-google-webfonts.

battlesnake avatar battlesnake commented on July 21, 2024 1

@JosefJezek If it's important to you, send a pull request. I'm not wasting time implementing a feature that two major browsers don't support.

from gulp-google-webfonts.

battlesnake avatar battlesnake commented on July 21, 2024

Neither IE nor Safari support it, so it's not particularly important for me. Feel free to add it yourself and send a pull-request.

from gulp-google-webfonts.

JosefJezek avatar JosefJezek commented on July 21, 2024

IE and Safari are dead ;-)

Embed WOFF2 in CSS (with WOFF fallback)

@font-face {
    font-family: MyFont;
    src:
        url('myfont.woff2') format('woff2'),
        url('myfont.woff') format('woff');
}

https://gist.github.com/sergejmueller/cf6b4f2133bcb3e2f64a

from gulp-google-webfonts.

JosefJezek avatar JosefJezek commented on July 21, 2024

Please, I am working on https://github.com/StartPolymer/polymer-starter-kit-plus

I used your plugin https://github.com/StartPolymer/polymer-starter-kit-plus/blob/master/fonts.list

from gulp-google-webfonts.

JosefJezek avatar JosefJezek commented on July 21, 2024

Please open

from gulp-google-webfonts.

michaelmior avatar michaelmior commented on July 21, 2024

@JosefJezek There is now a format option which accepts a value of woff2 that will do this.

from gulp-google-webfonts.

JosefJezek avatar JosefJezek commented on July 21, 2024

Safari support woff2 http://caniuse.com/#search=woff2

from gulp-google-webfonts.

battlesnake avatar battlesnake commented on July 21, 2024

Send a PR and I'll add it

from gulp-google-webfonts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.