Convert EOT to TTF using C#.

The Embedded Open Type or EOT fonts are OpenType fonts embedded in a document. EOT fonts are introduced by Microsoft to be used on web pages. We may need to convert EOT fonts to TTF programmatically. The True Type Font or TTF is used in operating systems for all digital platforms. In this article, we will learn how to convert EOT to TTF in C#.

The following topics shall be covered in this article:

  1. EOT to TTF Converter C# API
  2. Steps to Convert EOT to TTF
  3. Convert EOT to TTF using C#

EOT to TTF Converter C# API

For converting EOT to TTF, we will be using the Aspose.Font for .NET API. It allows loading, saving, and extracting font information from supported font types.

The FontFileDefinition class of the API represents the Font file definition. The FontDefinition class represents the Font file set definition. It contains fields that are not related to font internal data. These fields describe font placement and other data needed to load the font from some font source(file, memory, etc). We have the Font class which is the base Font class. It provides the Open() method to open a font. It also allows saving the font using the Save() method.

Please either download the DLL of the API or install it using NuGet.

PM> Install-Package Aspose.Font

Steps to Convert EOT to TTF

We can easily convert EOT font from .eot file to TTF format using Aspose.Font for .NET by following the steps given below:

  1. Open EOT font.
  2. Specify the output settings for the TTF font.
  3. Save the TTF to the desired location.

The following section explains how to codify these steps and convert EOT to TTF in C#.

Convert EOT to TTF in C#

Please follow the steps given below to convert EOT to TTF programmatically in C#:

  1. Firstly, load the font file using the FileSystemStreamSource class.
  2. Next, create an instance of the FontFileDefinition class with the source file object as an argument.
  3. Then, initialize the FontDefinition class object with Font type as TTF and FontFileDefinition object.
  4. After that, open the font using the Font.Open() method with FontDefinition object as an argument.
  5. Finally, call the Save() method to save it. It takes the output file path as an argument.

The following code sample shows how to convert EOT to TTF in C#.

Get a Free License

You can get a free temporary license to try the library without evaluation limitations.


In this article, we have learned how to convert Embedded Open Type fonts (EOT) to True Type fonts (TTF) in C#. You can learn more about Aspose.Font for .NET API using the documentation. In case of any ambiguity, please feel free to contact us on our free support forum.

See Also