Fontfiles binary diffs without changins sources
Closed this issue · 4 comments
We're using gulp-iconfont
on several projects, generating ttf
and woff
font formats.
The same thing happens at all of them: after regenerating fonts without any source SVG changes produces binary diff on both woff
and ttf
.
Is that meta info, timestamp, or whatever?
That can be safely ignored on projects with generated files gitignored, but not on github jekyll projects that cannot run gulp on deploy, and thus need those binary to be committed.
How can I disable this diff? Thanks in advance.
Here is a sample binary diff of woff
file.
See the timestamp option https://github.com/nfroidure/gulp-iconfont#options
Thanks for an answer.
First, timestamp
seems to be svg2ttf
option, then how does it affect woff
file?
Second, I already tried to set this option to null
, both font files keep changing every time (file checksum also differs).
Just set it to a timestamp. That's all you have to know to solve your issue. If you want more informations, you can read the code but i already spend enough time on real issues. You can also ask StackOverflow.
Setting timestamp
option to 0
(which is valid Unix timestamp) solves the problem.
Thanks!