You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Showing some text rendered with Terminus or display an error because of failure.
Actual behavior
Crash. Here is the log:
Generate::ALL took 184 ms
Missing (absent) translation for 'click to place bottom right of text'
Generate::DIRTY took 40 ms
Generate::DIRTY took 40 ms
freetype: cannot set character size: invalid pixel size
File /home/foobar/contrib/solvespace/src/solvespace/src/ttf.cpp, line 404, function AspectRatio:
Assertion failed: fontFace != NULL.
Message: Expected font face to be loaded.
zsh: abort solvespace
The message about "cannot set character size" is thrown by ttf.cpp:234, content of sizeRequest is:
{type = FT_SIZE_REQUEST_TYPE_REAL_DIM, width = 65536, height = 65536, horiResolution = 128, vertResolution = 128}
Error value is not used or sent to caller on ttf.cpp:102, should be checked and probably return NULL. With other things, I guess.
The text was updated successfully, but these errors were encountered:
I don't know what should be the solvespace behavior, I only did my best to make it easier to people with real understanding of it's codebase to fix that. If I knew enough the code, I'd probably try to implement support for psf format (fixed size, used in linux terminals, should be way faster to render since no real curves).
SolveSpace version: from git, 5d78f99
Operating system: Debian Buster
Expected behavior
Showing some text rendered with Terminus or display an error because of failure.
Actual behavior
Crash. Here is the log:
The message about "cannot set character size" is thrown by ttf.cpp:234, content of sizeRequest is:
{type = FT_SIZE_REQUEST_TYPE_REAL_DIM, width = 65536, height = 65536, horiResolution = 128, vertResolution = 128}
Error value is not used or sent to caller on ttf.cpp:102, should be checked and probably return NULL. With other things, I guess.
The text was updated successfully, but these errors were encountered: