-
Notifications
You must be signed in to change notification settings - Fork 90
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
Comments
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. |
Even if i subset the font from SourceHanSansKR-Regular.ttf and made it to lesser size using pyftsubset,it still fails with |
It looks like the UPEM are different, and they need to be the same. The
CJK font probably used 1000 and you might need to convert the font to use
2048 like usual ttf convention. I'm not sure what tools do that. You
might bring this up with the fontTools folks, perhaps they have
recommendations.
…On Wed, Jul 17, 2019 at 10:07 PM ashakoshti1988 ***@***.***> wrote:
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]
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#489>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACL2SDDT6MBDYNGU3VLLWFLP7727NANCNFSM4IEPA2IA>
.
|
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
The text was updated successfully, but these errors were encountered: