Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Support for EOT fonts  (Read 3023 times)

0 Members and 1 Guest are viewing this topic.

NeoMind

  • Newbie
  • *
  • Posts: 2
    • View Profile
Support for EOT fonts
« on: November 12, 2014, 08:37:12 am »
Hi, Is it possible to add support for EOT fonts (Embedded OpenType) in sf::Font class.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Support for EOT fonts
« Reply #1 on: November 12, 2014, 08:48:24 am »
The question is less about if it's possible and more about why do you want it?
What does EOT offer that all the other supported formats (TrueType, Type 1, CFF, OpenType, SFNT, X11 PCF, Windows FNT, BDF, PFR and Type 42) can't?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Support for EOT fonts
« Reply #2 on: November 12, 2014, 08:53:24 am »
From the information about EOT from Wikipedia (http://en.wikipedia.org/wiki/Embedded_OpenType), such a feature request is moot as we already have open type font support and EOT was primarily developed for use in web development and even states that EOT can be created from open type fonts.

NeoMind

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Support for EOT fonts
« Reply #3 on: November 12, 2014, 08:58:57 am »
Hmm well i have a few EOT fonts with me and I wanted to use them, but sf::Font did not read them as is, so I was asking.
I guess I could try converting them to regular OTF or TTF and use that instead.

Thanks anyways  :)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Support for EOT fonts
« Reply #4 on: November 12, 2014, 09:00:55 am »
Google also says that IE is the only browser that ever supported EOT, the Freetype library does not support EOT (which I assume means we can't do it anyway), and that if you want a compressed open type font apparently the "correct" choice these days is woff, which FreeType does support.

So it probably is best to convert the files.
« Last Edit: November 12, 2014, 09:02:46 am by Ixrec »