php-font-lib icon indicating copy to clipboard operation
php-font-lib copied to clipboard

Export TTF to WOFF and EOT

Open travispaul opened this issue 12 years ago • 4 comments

I'm currently searching for a Php Library to convert fonts between various formats, my immediate need is to convert TTF to both WOFF and EOT.

I wanted to post an issue here to find out:

  • Are you interested in having this feature in php-font-lib?
  • Any idea in the amount of work required to add this feature?
  • How can I help make this feature possible?

Thanks

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1304187-export-ttf-to-woff-and-eot?utm_campaign=plugin&utm_content=tracker%2F317728&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F317728&utm_medium=issues&utm_source=github).

travispaul avatar Oct 31 '13 18:10 travispaul

Hi Paul, glad to see your interest in PHP font lib ! Yes I'm interested in thease features, of course. But I don't know exactly what amout of work it will require. The libe is able to open and parse WOFF fonts, but not write them, but it may not be too hard. However, it currently only parses EOT headers, not the entire content of the fonts as it's a weird format, so it will require a lot more time to get it to work. Did you already look at the source code ? I'm conscious it doesn't follow modern coding rules, but I'd like to change this, so don't be afraid when you see it ;)

PhenX avatar Nov 01 '13 15:11 PhenX

Thanks for quick the feedback, I'm glad to hear that you would welcome these features! I will spend some time next week looking at the code. I browsed through it before but didn't go into too much detail. I might come back to you next week with some questions or if I'm lucky some pull requests :)

travispaul avatar Nov 01 '13 16:11 travispaul

There are python scripts for woff you can use to port to php. Eot is in Java sfntly, the Java library puttering google fonts

Reply from phone On Nov 1, 2013 12:59 PM, "Travis Paul" [email protected] wrote:

Thanks for quick the feedback, I'm glad to hear that you would welcome these features! I will spend some time next week looking at the code. I browsed through it before but didn't go into too much detail. I might come back to you next week with some questions or if I'm lucky some pull requests :)

— Reply to this email directly or view it on GitHubhttps://github.com/PhenX/php-font-lib/issues/11#issuecomment-27580791 .

davelab6 avatar Nov 01 '13 17:11 davelab6