[BR?] Potential Linux font bug

Hi! I am trying to deal with a Linux font rendering bug, but I fail to re-produce locally. The problem is that when rendering some text that is not included in the embeded font, the UI crashes.

When I look at the code (with some help from LLM), I find one line that seems a bit suspicious.

At line 614-624, the fallbackWithFamily is returned from fromPattern, which might return nullptr. At line 626, fallbackWithFamily is deferenced without a null guardian. At line 630 a similar thing happens (inside jassert).

Thank you for reporting.

1 Like