[Build] testFontStyleOfStyledFont
causes builds to fail with default Maven configuration on OSX 13.0 and higher
#1158
Labels
Describe the bug
On OS X Ventura (13.0) or later, the Courier font is missing its
OS/2
table, probably due to licensing decisions made by Apple.This causes the
testFontStyleOfStyledFont
test to fail:OpenPDF/openpdf/src/test/java/com/lowagie/text/pdf/fonts/FontTest.java
Lines 81 to 92 in 0a92bcc
To Reproduce
Run
mvn clean install
on OSX 13.0 or newer. The build will fail due to an exceptioncom.lowagie.text.DocumentException: Table 'OS/2' does not exist in /System/Library/Fonts/Courier.ttc
intestFontStyleOfStyledFont
.Setting
maven.test.failure.ignore
totrue
allows you to build the project but, for obvious reasons, this is a bad workaround for anything other than trivial changes.Expected behavior
It would be nice if this test failed gracefully if the font is not present or readable on the system.
System
(please complete the following information)
Your real name
Kurt Boberg
The text was updated successfully, but these errors were encountered: