Closed Bug 600821 Opened 14 years ago Closed 14 years ago

font used for IVS reftest is rejected by the sanitizer

Categories

(Core :: Layout: Text and Fonts, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

The downloadable font "gw432047.ttf" used in layout/reftests/font-face/ivs-1.html (for bug 552460) is rejected by the OTS sanitizer library, which will cause this reftest to fail (unless it happens to fall back to a platform font that supports the IVS codes being used) once the sanitizer is enabled. We need to identify the anomaly in the font that is causing it to be rejected, and fix this so that we can resume testing IVS support.
This font is rejected because the final table in the font is not padded to a 4-byte boundary. (The OpenType specification is not entirely explicit about whether such padding is required, though there is at least an implication that it should be present. There have been some tools in the past that generated unpadded fonts, but current tools and reading of the spec seem to be converging on the use of padding in all cases.)
This simply adds the two NUL bytes required for proper padding at the end of the file; the sanitizer is then happy to accept the font.
Assignee: nobody → jfkthame
Attachment #480274 - Flags: review?(jdaggett)
Attachment #480274 - Flags: review?(jdaggett) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: