ftgl
ftgl copied to clipboard
NaN values in vectoriser
This here crashes when d[0] or d[1] is NaN which apparently can happen with some characters in some fonts. Not sure why there would be such values.
https://github.com/ulrichard/ftgl/blob/16f7667cbd4b1e988ae24128c5dea54479926f85/src/FTVectoriser.cpp#L321
This is where the segfault happens (inside the glu library): https://github.com/ulrichard/ftgl/blob/16f7667cbd4b1e988ae24128c5dea54479926f85/src/FTVectoriser.cpp#L326
I have implemented a crude fix here: https://github.com/vovoid/ftgl/commit/d7b50a5a240f89a1e916274231cca0c8150bdf08
Can you give an example which characters from which fonts, and which FTGL drawing mode and settings you used to cause the problem, so I can reproduce it?
Note that my fork (https://github.com/frankheckenbach/ftgl) seems to be the "official" one now (e.g. used in Debian). ulrichard didn't want to keep maintaining this one anymore.
Sure thing! You'll have it on tuesday next week.
On Thu, 11 Jul 2019, 23:59 frankheckenbach, [email protected] wrote:
Can you give an example which characters from which fonts, and which FTGL drawing mode and settings you used to cause the problem, so I can reproduce it?
Note that my fork (https://github.com/frankheckenbach/ftgl) seems to be the "official" one now (e.g. used in Debian). ulrichard didn't want to keep maintaining this one anymore.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ulrichard/ftgl/issues/15?email_source=notifications&email_token=AAH2DZ6DVS3T33KR4HJ4I6DP66UNHA5CNFSM4IBC3KFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYDJYY#issuecomment-510670051, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2DZYQBJJFK5KRFKMR4MTP66UNHANCNFSM4IBC3KFA .