umanwizard / libeot

Library for parsing Embedded OpenType files (Microsoft embedded font "standard"), and converting them to other formats
Other
14 stars 6 forks source link

couple EOT files cannot be converted #4

Closed mtayir closed 4 years ago

mtayir commented 4 years ago

font1.zip this is the eot file , it works good , but it cannot be ttf under libeot.

mtayir commented 4 years ago

@umanwizard problem is enum StreamResult sResult = parseOffsetTable(streams[0], &offsetTable); right here

umanwizard commented 4 years ago

Thanks for the report. I will take a look this weekend.

umanwizard commented 4 years ago

@mtayir , I am able to extract the font using the latest code from git.

Can you tell me exactly what OS you are using and how you installed eot2ttf/libeot ?

umanwizard commented 4 years ago

eot2ttf on Ubuntu 18.04 also seems to work:

root@e1dd6d0114fb:/# file out.ttf^C
root@e1dd6d0114fb:/# eot2ttf font1.eot out.ttf
root@e1dd6d0114fb:/# file out.ttf
out.ttf: TrueType Font data, 17 tables, 1st "GDEF", 42 names, Unicode, Uyghur Computer Science Association. Free distributed and all rights reserved. http://www.ukij.
mtayir commented 4 years ago

@umanwizard thanks for replying , I am using Windows 10 , Dev C++ 5.11

mtayir commented 4 years ago

@umanwizard I'll try again

umanwizard commented 4 years ago

@mtayir Actually, I have never tested this on Windows... will try later and let you know if I can reproduce.

mtayir commented 4 years ago

@umanwizard Problem is solved. the problem is : I tried to unpack a not compressed fontdata. libeot works good in the windows right now! Thank you so much!

umanwizard commented 4 years ago

@mtayir I am glad it is working for you! Thanks for testing!