FAIL: 'created' timestamp seems very low; regarding as unix timestamp

Ramiro EspinozaRamiro Espinoza Posts: 816
edited June 30 in Font Technology
Hi there,
Fontbakery is flagging one of my fonts with:
FAIL: 'created' timestamp seems very low; regarding as unix timestamp
Does anybody know how this issue can be fixed?
Thanks in advance.

Comments

  • edited June 30
    I will start by checking created position in head table with ttx from fonttools
    ttx font.otf 
    and in font.ttx



    if date would be very old, it can be manually corrected, and font again compiled.

  • Ramiro EspinozaRamiro Espinoza Posts: 816
    edited June 30
    Thanks! I found a weird creation date (1970). No idea how this data was inserted, since the source FL files have the right creation date.
  • Simon CozensSimon Cozens Posts: 551
    That's kind of interesting, because the OpenType epoch is not January 1 1970, but the same as the Mac epoch (January 1 1904). FL put a "zero" in there, but that got converted to the wrong zero.
  • Ramiro EspinozaRamiro Espinoza Posts: 816
    edited July 23
    I think I've found the problem: when I generate the fonts with Fontlab 5.1.4., for some reason “LONGDATETIME created” is empty. If I open the fonts with FL7 and re-export them the LONGDATETIME fields have the correct data.
  • Hin-Tak LeungHin-Tak Leung Posts: 323
    edited July 27
    As Simon said: creation / modification dates in fonts are recorded as number of seconds since 1904 (macintosh convention), not 1970 (unix time zero). So those fields in most new fonts should be about ~120 years in #seconds(and the oldest fonts made in the 1980's would have 80 years' worth of seconds) , rather than ~50 years counting from 1970.

    People in ~1954 (1904 + 50) have rather different ideas about types being metal blocks, instead of shapes on computers - and computers were made of cathode ray tubes around ~1955....
  • Mark SimonsonMark Simonson Posts: 1,381
    @Hin-Tak Leung I think you mean electron or vacuum tubes. Cathode ray tubes were for screens.
  • Hin-Tak LeungHin-Tak Leung Posts: 323
    Oops yes, it is all vacuum tubes in the 50s. Valid fonts have dates in seconds of 80-ish to 120-ish years (1904 + 80 = 1984 to 1904 + 120 = 2024) , not seconds in 10 to 50 years (1980 - 2020, counting from 1970).
Sign In or Register to comment.