Comments (9)
@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.
@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.
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.
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.
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.
Please open
from gulp-google-webfonts.
@JosefJezek There is now a format
option which accepts a value of woff2
that will do this.
from gulp-google-webfonts.
Safari support woff2 http://caniuse.com/#search=woff2
from gulp-google-webfonts.
Send a PR and I'll add it
from gulp-google-webfonts.
Related Issues (20)
- support fonts.list as string and not only from file HOT 1
- Support for SVG and EOT formats HOT 3
- &subset=cyrillic wrong font download
- Missing local src HOT 1
- Support for generate css with woff and woff2 fonts HOT 1
- How to set path for fonts in generated CSS? HOT 1
- woff2? HOT 4
- version without gulp? HOT 1
- HTTPS support HOT 3
- Set site root as font url HOT 1
- build fonts.list for gulp-google-webfonts HOT 1
- Error: connect ECONNREFUSED 127.0.0.1:443 (Oswald font only) HOT 4
- Process multiple font formats HOT 1
- New npm package for v3
- Attribute font-stretch doesn't match the regex HOT 1
- Example gulpfile.js's outdated
- "Google Format" wrong
- Alternative path to fonts for @font-face rules
- Fonts dir with starting slash
- Option to pass string instead of a file name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-google-webfonts.