I'm seeing "java.lang.IllegalArgumentException: No glyph for U+05D0 in font" (as an example) exception being thrown when calling the showText(String) method of PDFPageContentStream.
Catching the exception isn't very helpful because good characters won't get written. Neither is checking each character in the input string, which would be a performance killer (each PDF could be thousands of pages, millions of characters). What I really need is a way to prevent the exception for ANY missing glyph and have it automatically replaced with some other glyph, or a dynamically created glyph that shows the unicode value.
I don't want to stop producing the PDF because a font doesn't support a particular glyph, I just want some replacement character to be used instead and keep going.
How to achieve this?