Skip to content
Convert TrueType Fonts (TTF) to EOT (Embedded OpenType)
C C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
eotutils Add quick clean rule Apr 20, 2009
.gitignore Initial commit Mar 28, 2014
ChangeLog No commit message Apr 30, 2009
Makefile Don't install by default Jun 4, 2014
OpenTypeUtilities.cpp applied changes made by jgmdev Mar 31, 2015
README todo reminder to add mtx support. Apr 16, 2009 Update readme for install Jun 4, 2014
ttf2eot.cpp applied changes made by jgmdev Mar 31, 2015


Author: 15-Mar-2009 License: Derived from WebKit, so BSD/LGPL 2/LGPL 2.1.

this is a copy of the repository

Convert TrueType Fonts (TTF) to EOT (Embedded OpenType)

Very quick commandline wrapper around OpenTypeUtilities.cpp from Chromium, used to make EOT (Embeddable Open Type) files from TTF (TrueType/OpenType Font) files. This is the format TTLoadEmbeddedFont() accepts, which is what Internet Explorer uses for css @font-face declarations.

I've only tested this on Linux.

EOT was documented by Microsoft here:

TTLoadEmbeddedFont is described here:


To build:

    $ make

To install:

    $ make install


    $ ./ttf2eot < input.ttf > output.eot


First create the output file

    $ ttf2eot < input.ttf > output.eot

If that worked, you can specify the file in your CSS.

    @font-face { 
        font-family: "testing";
        src: url("output.eot");
    <div style="font-family: testing">
    Hello, World!

Only IE understands this format, other browsers (Safari 3.x, Firefox 3.1.x, Chrome 2.x) are likely to adopt src: url("foo.ttf") format("truetype") instead.

You can use conditional comments to specify both formats, simply provide the font in both EOT and TTF format, then use conditional comments to make IE see the EOT version.

    @font-face { 
        font-family: "testing";
        src: url("output.ttf") format("truetype");
    <!--[if IE]>
        @font-face { 
            font-family: "testing";
            src: url("output.eot");
    <div style="font-family: testing">
    Hello, Multiple Browser World!

This should work in IE6, IE7, IE8, Safari 3/4 and Firefox 3.1+

Note for Windows Users If you're a Windows user - this is probably not what you're looking for.

You will probably feel more comfortable using "WEFT", Microsoft's own utility for handling EOT. ttf2eot is primarily for UNIX users who want to make font embedding work for IE without using Microsoft software.

However, if you're certain you do wish to use ttf2eot, ~~a command line windows binary is provided.~~~ (sorry folks you have to compile as well) It is used like so:

    C:\>ttf2eot.exe c:\windows\fonts\arial.ttf c:\output.eot

    C:\>dir output.eot
     Volume in drive C has no label.
     Volume Serial Number is E4EC-5386

    Directory of C:\

    30/04/2009  21:41           367,270 output.eot
                   1 File(s)        367,270 bytes
                   0 Dir(s)  51,782,295,552 bytes free


Please note, It is unlikely the author will be able to help with Windows related questions.

Keywords for anyone having as much pain as me finding a utility to do this on Linux:

covert eot to ttf
eot converter
wtf is an eot file

TODO: MTX support?

You can’t perform that action at this time.