Skip to content

Assert that outline font surfaces are correctly created

Hugo Hromic requested to merge hhromic/assert-fontsurface into dev
  • Avoids the engine to segfault in case something is wrong when trying to render text using outline fonts. Instead, show the actual error.

Discovered that the engine is segfaulting on current MSYS2 due to a bug with libfreetype shipped in MSYS2. After adding this assertion, it was much easier to track down where the problem was. Also is nicer to not segfault :)

As a side note, I'm reporting the libfreetype bug upstream so I hope to get it fixed there soon.

Edited by Hugo Hromic

Merge request reports