Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active September 23, 2022 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/253e6c796489b3892da1544e0aab31bb to your computer and use it in GitHub Desktop.
Save aspose-com-gists/253e6c796489b3892da1544e0aab31bb to your computer and use it in GitHub Desktop.
Convert EOT to TTF in C# | C# Font Converter API
// 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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment