various image functions crash on headless linux when font packages aren't installed

Description

on a headless linux server, lucee will crash if fonts aren't installed trying to render a captcha, throwing a cryptic java.lang.reflect.InvocationTargetException

this comes up over and over again and users get very confused

https://dev.lucee.org/t/cfimage-captcha-error-java-lang-reflect-invocationtargetexception/5688
https://dev.lucee.org/t/server-cfm-error-java-lang-reflect-invocationtargetexception/6381

Lucee should detect this problem and return an informative error message

Environment

headless linux

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

New

Labels

Fix versions

None

Affects versions

Configure