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

[rotateFont] Segmentation Fault happens when using rotateFont or mergeFont to rename glyph names. #1338

Closed
jimmymasaru opened this issue Apr 10, 2021 · 3 comments · Fixed by #1347

Comments

@jimmymasaru
Copy link

Environment

macOS 11.2.3
python 3.9.2
AFDKO installed by pip3 install afdko

Command

tx -t1 -n -decid -usefd 0 SourceHanSans-Regular.otf decidfont.ps
rotateFont -t1 -rtf map.txt decidfont.ps gidfont.ps

SourceHanSans-Regular.otf
The contents of map.txt

.notdef	.notdef	None	0	0
cid1	uni0020	None	0	0
@punchcutter
Copy link
Contributor

The segfault was introduced in 3.0.0. 2.9.1 still works.

@punchcutter
Copy link
Contributor

@punchcutter
Copy link
Contributor

@jimmymasaru What exactly do you want to do here with -decid? The real problem here is that it's not possible to make a name-keyed font with this many glyphs so it never should have worked in the first place. It "worked" in older releases by making a bad file, but that was fixed in 3.0.0. If you want to manipulate a particular glyph or range of glyphs you can use the -g flag to get only those glyphs.

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 a pull request may close this issue.

2 participants