Learn how to convert EOT to TTF in C# : https://blog.aspose.com/font/convert-eot-to-ttf-in-csharp/
The following topics are covered in this article:
Learn how to convert EOT to TTF in C# : https://blog.aspose.com/font/convert-eot-to-ttf-in-csharp/
The following topics are covered in this article:
// This code example demonstrates shows how to convert EOT to TTF. | |
// EOT font file path | |
string fontPath = Path.Combine(@"C:\Files\font\LoraRegular.eot"); | |
// Load the Font file | |
FileSystemStreamSource source = new FileSystemStreamSource(fontPath); | |
// Create font file definition | |
FontFileDefinition fileDefinition = new FontFileDefinition(source); | |
// Create font definition | |
FontDefinition fontDefinition = new FontDefinition(FontType.TTF, fileDefinition); | |
// Open font | |
Font font = Font.Open(fontDefinition); | |
// Save opened font to TTF | |
font.Save(@"C:\Files\font\EotToTtf_out1.ttf"); |