]> source.dussan.org Git - poi.git/commit
Bug 68778: Verify "ignoreMissingFontSystem" for SheetUtil.getDefaultCharWidthAsFloat()
authorDominik Stadler <centic@apache.org>
Thu, 14 Mar 2024 13:20:47 +0000 (13:20 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 14 Mar 2024 13:20:47 +0000 (13:20 +0000)
commitf4af02bb24abdfbd39e8a19e2114fadb6f6ef2fa
tree702e81d6772660459cc900fe7a2dec9c3c5bf10c
parent08436ddf7fd8039118ff073b8dac02b4b5e67774
Bug 68778: Verify "ignoreMissingFontSystem" for SheetUtil.getDefaultCharWidthAsFloat()

This functionality saw some regressions at times and thus
should be verified via unit-tests.

We can simulate failures in the low-level font-system by
mocking the FontRenderContext and triggering exceptions
from there.

This hopefully now verifies behavior of
SheetUtil.getDefaultCharWidthAsFloat() both with
"ignoreMissingFontSystem" enabled and disabled.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916297 13f79535-47bb-0310-9956-ffa450edef68
poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java