dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.73k stars 255 forks source link

Export TTF to WOFF and EOT #11

Open travispaul opened 10 years ago

travispaul commented 10 years ago

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:

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).
PhenX commented 10 years ago

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 ;)

travispaul commented 10 years ago

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 :)

davelab6 commented 10 years ago

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" notifications@github.com 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 .