opentypejs / opentype.js

Read and write OpenType fonts using JavaScript.
https://opentype.js.org/
MIT License
4.46k stars 476 forks source link

Format for font's created time stamp #368

Closed orklann closed 5 years ago

orklann commented 5 years ago

It seems there is no specific documentation for this created timestamp, all I know it's a Number.

https://github.com/opentypejs/opentype.js/blob/master/src/font.js#L35

Is there any more help doc which I miss.

Jolg42 commented 5 years ago

It's a standard unix timestamp in seconds that will be translated to the old Apple Mac timestamp in the background. https://github.com/opentypejs/opentype.js/blob/4e0bb99d4471369a68b53dd4ef2db9eca73a5b04/src/tables/head.js#L34

orklann commented 5 years ago

Thank you for your quick reply.