Missing font-system can throw two other types of exception

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2022-04-11 13:51:26 +00:00
parent 0f06cc7789
commit 0ac26e7b1d
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ public class SheetUtil {
try {
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
return (int) layout.getAdvance();
} catch (UnsatisfiedLinkError e) {
} catch (UnsatisfiedLinkError | NoClassDefFoundError | InternalError e) {
if (ignoreMissingFontSystem) {
return DEFAULT_CHAR_WIDTH;
}