wrl / otf-fea-rs

OpenType feature file toolkit
Apache License 2.0
8 stars 1 forks source link

comp_test produces incorrect reading of head table for IBM Plex #6

Open simoncozens opened 3 years ago

simoncozens commented 3 years ago
$ ./target/debug/comp_test IBMPlexSans-Regular.ttf

TTFOffsetTable { version: TTF, num_tables: 19, search_range: 256, entry_selector: 4, range_shift: 48 }
TTFTableRecord { tag: Tag("DSIG"), checksum: 1, offset_from_start_of_file: 186352, length: 8 }

Head {
    major_version: 18244,
    minor_version: 17734,
    font_revision: Fixed1616(
        -17746.27014,
    ),
    checksum_adjustment: 118044,
    magic_number: 580,
    flags: 18256,
    units_per_em: 20307,
    created: LongDateTime(
        8406652643669299040,
    ),
    modified: LongDateTime(
        279019452060994,
    ),
    x_min: 40984,
    y_min: 43834,
    x_max: 2,
    y_max: 52516,
    mac_style: 0,
    lowest_rec_ppem: 2696,
    font_direction_hint: 20307,
    index_to_loc_format: 12082,
    glyph_data_format: -29566,
}

thread 'main' panicked at 'No such local time', /Users/simon/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono-0.4.19/src/offset/mod.rs:173:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace