Closed Bug 477791 Opened 17 years ago Closed 10 years ago

need a way to generate eot fonts for testing

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jtd, Unassigned)

Details

Attachments

(1 file)

We need a way of easily generating EOT fonts for testing. The only tool that currently generates EOT files is the Microsoft WEFT tool which only runs on Windows and enforces root domain restrictions. To allow for easy use, I've set up a Python script that takes a TrueType font and prefixes it with an EOT header with a null root string, which effectively eliminates the restricted linking in IE.
This is my first pass at this. The attached Python script takes a TrueType font, parses the data and constructs an EOT header from the appropriate tables. Usage: ./eottool.py MyFont.ttf This will generate an EOT font, MyFont.eot, which can be used in an @font-face rule within IE. It uses a null string for the root string, so it can be used without domain restrictions. Here's an example page using Gentium. It loads a .ttf in Firefox/Safari/Opera 10 and an EOT in IE: http://people.mozilla.org/~jdaggett/eottest.html I don't really think this needs much more than this but if there are other features you think should be supported, let me know.
Attachment #361505 - Flags: review?(vladimir)
Attachment #361505 - Flags: review?(vladimir)
Assignee: jd.bugzilla → nobody
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: