mirror of https://github.com/apache/poi.git
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:
parent
0f06cc7789
commit
0ac26e7b1d
|
@ -297,7 +297,7 @@ public class SheetUtil {
|
||||||
try {
|
try {
|
||||||
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
|
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
|
||||||
return (int) layout.getAdvance();
|
return (int) layout.getAdvance();
|
||||||
} catch (UnsatisfiedLinkError e) {
|
} catch (UnsatisfiedLinkError | NoClassDefFoundError | InternalError e) {
|
||||||
if (ignoreMissingFontSystem) {
|
if (ignoreMissingFontSystem) {
|
||||||
return DEFAULT_CHAR_WIDTH;
|
return DEFAULT_CHAR_WIDTH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue