DigitalKhatt / madinafont

Madina OpenType variable font
SIL Open Font License 1.1
15 stars 0 forks source link

OTF file fails conversion to WOFF #6

Closed danglingneuron closed 1 year ago

danglingneuron commented 1 year ago

Can you please provide WOFF file for web/mobile usage. The current OTF file is 1.2mb in size. I have tried several online tools to convert to WOFF but it fails.

Also the OTF file fails to open on a windows machine.

aminanan commented 1 year ago

You can use the ttx command of fonttools

pip install fonttools[woff]

Generate XML ttx file :

ttx digitalkhatt.otf digitalkhatt.ttx

Compile WOFF2 format :

ttx --flavor woff2 digitalkhatt.ttx

Compile WOFF format :

ttx --flavor woff  digitalkhatt.ttx

or

ttx --flavor woff --with-zopfli digitalkhatt.ttx

The OTF file uses the CFF2 format which seems to cause problems under Windows. There are probably tools that can convert it to a compatible format. Unfortunately at the moment I don't have time to deal with this problem. Anyway, if you want this problem to be fixed sooner or later, please create a new issue for it.

I added digitalkhatt.woff2 to the repository.