Working with EOT Fonts

Working with EOT Fonts

Embedded OpenType (EOT) is a legacy web font format used primarily by older Internet Explorer versions. Aspose.Font FOSS for Python can load and convert EOT fonts to modern formats for web or desktop use.


Loading an EOT Font

from aspose_font.loader import FontLoader

font = FontLoader.open("LegacyFont.eot")
print(font.font_name, font.num_glyphs)

Converting EOT to TTF

from aspose_font.loader import FontLoader
from aspose_font.converter import FontConverter

eot = FontLoader.open("LegacyFont.eot")
ttf = FontConverter.convert(eot, target_format="ttf")

Tips and Best Practices

  • EOT is a read-write format in Aspose.Font FOSS; you can load and serialize back to EOT
  • For modern web delivery, convert EOT to WOFF2 via FontConverter.convert(font, "woff2")
  • Use EotSerializer.serialize() for direct EOT serialization

API Reference Summary

Class / MethodDescription
FontLoader.open(path)Load an EOT font from a file path
FontConverter.convert(font, target_format)Convert EOT to another format
EotSerializerDirect EOT serialization