The text renderer would previously throw in some circumstances if no font was available. With this patch, its prepareRenderParams() method can return null in these cases, aborting the render for that text element without causing a crash.
This also simplifies RectRenderer, which doesn't need an "empty" state anymore.
The text renderer would previously throw in some circumstances if no font was available. With this patch, its
prepareRenderParams()
method can returnnull
in these cases, aborting the render for that text element without causing a crash.This also simplifies RectRenderer, which doesn't need an "empty" state anymore.