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

Can not merge 'NotoSans-Regular.ttf', 'SourceHanSansKR-Regular.ttf', #489

Open
ashakoshti1988 opened this issue Jul 17, 2019 · 3 comments
Open

Comments

@ashakoshti1988
Copy link

I get error kind of this,but in my case format is ttf but still i am not able to merge those files.

fonttools/fonttools#743

@dougfelt
Copy link
Contributor

Moyogo's response to that issue indicates multiple reasons why this is not expected to work. The fonts in question have more than 65K glyphs combined-- even with them both .ttf this still prevents a successful merge.

The unaddressed issue from the original bug is the fact that the failure it encounters is nondeterministic. Ideally, it would be the same failure each time. But a failure is expected.

@ashakoshti1988
Copy link
Author

Even if i subset the font from SourceHanSansKR-Regular.ttf and made it to lesser size using pyftsubset,it still fails with
pyftsubset SourceHanSansKR-Regular.ttf --unicodes=U+0000-007f --output-file=Nasa.ttf
pyftmerge Nasa.ttf NotoSans-Regular.ttf

File "/usr/local/bin/pyftmerge", line 10, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/fontTools/misc/loggingTools.py", line 375, in wrapper
return func(*args, **kwds)
File "/usr/local/lib/python2.7/site-packages/fontTools/merge.py", line 1157, in main
font = merger.merge(args)
File "/usr/local/lib/python2.7/site-packages/fontTools/merge.py", line 997, in merge
table = clazz(tag).merge(self, tables)
File "/usr/local/lib/python2.7/site-packages/fontTools/merge.py", line 160, in merge
return m.mergeObjects(self, self.mergeMap, tables)
File "/usr/local/lib/python2.7/site-packages/fontTools/merge.py", line 1043, in mergeObjects
value = mergeLogic(getattr(table, key, NotImplemented) for table in tables)
File "/usr/local/lib/python2.7/site-packages/fontTools/merge.py", line 49, in equal
assert all(item == first for item in t), "Expected all items to be equal: %s" % lst
AssertionError: Expected all items to be equal: [2048, 1000]

@dougfelt
Copy link
Contributor

dougfelt commented Jul 18, 2019 via email

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

No branches or pull requests

2 participants