Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop trusting header totalSfntSize and glyf origLength #48

Merged
merged 1 commit into from
Mar 8, 2016
Merged

Conversation

rsheeter
Copy link
Contributor

@rsheeter rsheeter commented Mar 8, 2016

No description provided.

rsheeter added a commit that referenced this pull request Mar 8, 2016
Stop trusting header totalSfntSize and glyf origLength
@rsheeter rsheeter merged commit a3a4d48 into master Mar 8, 2016
@anthrotype
Copy link
Member

This should finally fix #15 👍
I'll test later on today.

However, there is an issue when compiling with clang on OS X:

src/woff2_out.cc:34:21: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
  if (offset == buf_->size()) {

I fixed the issue in my local copy by simply adding an #include <string> inside woff2_out.h.
I'm not sure it is the correct fix. Mind checking please?

Thank you!

@rsheeter
Copy link
Contributor Author

rsheeter commented Mar 9, 2016

Good catch, ty. At a glance adding the #include seems correct, will double-check and fix.

@rsheeter rsheeter deleted the length branch March 9, 2016 16:55
@rsheeter
Copy link
Contributor Author

rsheeter commented Mar 9, 2016

4e698b8 should fix clang (tested on OSX 10.11.3, Apple LLVM 7.0.2 / clang-700.1.81).

@anthrotype
Copy link
Member

👍

@khaledhosny
Copy link
Contributor

After a few hours of debugging, I realized that I need to switch OTS to the new API to benefit from this. Would it make sense to drop the old API to avoid such confusion?

khaledhosny added a commit to khaledhosny/ots that referenced this pull request Aug 9, 2016
@rsheeter
Copy link
Contributor Author

rsheeter commented Aug 9, 2016

Sorry, I should have posted an OTS issue to switch.

As this repo is public and in use we wouldn't typically remove the old API. Maybe we should at least comment it deprecated though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants