The boxes above check that letter spacing is taken into account in calculating line breaks. The second one happens to check font substitution for Brush Italic MT which only has an italic entry in the family, but you can only see that when executing locally with a full font set, and not on the github tests
]]>
+ The boxes above check that letter spacing is taken into account in calculating line breaks. The second uses Poppins although the fixture supplies only Poppins Italic. It verifies that the converter uses that face as the family Normal font, including on GitHub.
]]>
diff --git a/tests/testTextBox/test_textBox.py b/tests/testTextBox/test_textBox.py
index 53cbc92f..e61f9c37 100644
--- a/tests/testTextBox/test_textBox.py
+++ b/tests/testTextBox/test_textBox.py
@@ -68,9 +68,7 @@ def test_testfontsubstitution(main=False):
if __name__ == '__main__':
- # When running this test directly we will normally not have IGNORELOCALFONTS set, so the system
- # fonts will be registered and could be accessed. When the tests are run by a full pytest
- # discovery, IGNORELOCALFONTS is set to 1, so that the system fonts are not registered (not
- # on the developer machine nor on the github servers) so the direct run result and the full
- # pytest run result will not be the same.
+ # Match conftest.py and GitHub Actions. In particular, installed Poppins
+ # Regular would conceal this fixture's supplied-italic-only regression.
+ os.environ['IGNORELOCALFONTS'] = '1'
test_testfontsubstitution(main=True)