From TTE to EUF: Possible?

by Michael S. Kaplan, published on 2010/01/22 07:01 -05:00, original URI:

The question that came in was:

My customer have a questions with EUDCEDIT program on Windows XP.

As we know, if we use EUDCEDIT to add some characters on XP. It will create two files: eudc.tte and eudc.euf.

The question is, if we lost eudc.euf file, could we restore this file from corresponding eudc.tte? Because even we only have eudc.tte, the new characters still can work well.

Now I have written about EUDC before, on several occasions. But knowing something about how it is used and how it interacts with different parts of the system doesn't necessarily make someone knowledgeable about the authoring issues.

I mean, I had some thoughts on the subject but this seemed like a better one to get some more expertise on....

Luckily Peter was around to provide the answer that I suspected was true:

I believe the .euf file contains the originally-edited bitmap data from which the .ttf is edited. If the .euf is lost but you still have the .ttf, then you can display those EUDC characters, but any editing of the glyphs would have to be done in a different font-editing tool, such as Fontographer or Fontlab. I don’t know of any way to recover the .euf file from the .ttf file. (In theory, it should be possible to generate an .euf that was approximately the same, but I don’t know of any tools that support that.)

It is possible that he is being a shade optimistic about tools being able to view/edit the .TTE files, but there aren't a whole lot of technical issues blocking it, so if they don't then they ought to. EUDCEdit itself is primitive enough that sophisticated options such as this seem a little out of scope, but of the many tools out there I assume some must be able to do something with TTE files.

Any of the regular readers here know for sure?

Mihai on 22 Jan 2010 1:51 PM:

The problem is, the .euf contains bitmaps, while the tte is a ttf file, with no bitmaps, and with the characters described in the 'glyf' able.

So to get back to a bitmap from the glyph table one would have to know how to parse a ttf file, how to interpret a (limited) set of 'glyf' instructions, and to reverse-engineer the euf format.

A cheat might be to select a font of a certain size so that rendering a character on screen would generate the exact same bitmap (64x64) as the one you see in editor (still to determine what that size is), and capture that bitmap.

This saves one from parsing the ttf and knowing about the glyf instructions, but still have to figure out the format of the .euf file.

So doable, but I kind of doubt anyone spent the time to implement such a thing.

Michael S. Kaplan on 23 Jan 2010 9:31 AM:

I assume that EUDCEDIT does not give you TrueType outlines but instread you just get embedded bitmaps in the TTE file, right? Assuming they all come from the EUF file, I guess the trick would be to extract all of them....

Mihai on 26 Jan 2010 2:31 PM:

A cheat that can save one from reverse-engineering undocumented formats:

1. Go to Photoshop
2. Create a B&W (Color mode: 1 bit) image of 64 x 64
3. Select the font you want and select a size that works for you


4. Paste the Unicode value you want

 (can hex-input in write and convert with Alt-X or put it in the clipboard in some programmatic way)

5. Select-all and cut
6. Paste in EUDCEDIT
7. Advance to next character
8. Back to Photoshop
9. Repeat from 4.

Photoshop supports Unicode input, and can be controlled with JavaScript or COM automation, but you can use something else if that's what works for you.

If this is a one-time job it might be faster than reverse-engineering  the euf file and writing an application.

And with a little automation might even work for a big number of characters.

Mihai on 27 Jan 2010 12:05 PM:

Looks like the answer to this did not make it:

"I assume that EUDCEDIT does not give you TrueType outlines but instread you just get embedded bitmaps in the TTE file, right?"

Nope, there are outlines, and there are no bitmaps.

Michael S. Kaplan on 27 Jan 2010 1:49 PM:

Okay, I am confused. EUDCEDIT takes bitmaps and makes outlines out of them?

Mihai on 27 Jan 2010 2:43 PM:

"EUDCEDIT takes bitmaps and makes outlines out of them?"

Short answer: Yep :-)

It's relatively easy to check: dump the tte file (for instance with ttfdump.exe from

Or select a font in notepad and look at the UDC characters at a huge size.

Or a hint is the fact that there is a View - Show Outline in EUDCEDIT.

mishra on 21 Jun 2012 2:59 AM:

can i get the hexadecimal values for the bitmap from any of the .euf file or .tte file

Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day