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

Segfault on Font #25

Closed
blakemcbride opened this issue Mar 31, 2015 · 2 comments
Closed

Segfault on Font #25

blakemcbride opened this issue Mar 31, 2015 · 2 comments

Comments

@blakemcbride
Copy link

I have fontsrv running. Some of the fonts have spaces in them. If I try to execute:

Font /mnt/font/Courier New/12a/font

I get a segfault. But the following works as expected:

Font /mnt/font/Ubuntu/12a/font

Like elsewhere in acme, you can't have a space in a path.

@gleydsonsoares
Copy link
Contributor

Seems that libdraw can't load the font...
try: acme -f '/mnt/font/Courier New/12a/font'

The segfault happens because libdraw doesn't check for a NULL font in openfont()

Info/Patch:
https://plan9port-review.googlesource.com/#/c/1220/

@rsc
Copy link
Contributor

rsc commented Jan 14, 2020

The crash was fixed in 25822e8 (long ago).
The restriction on having no spaces in font names persists, sorry.
If fontsrv still does that we should make it pull the spaces out of the names.

@rsc rsc closed this as completed Jan 14, 2020
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

3 participants