super.setUp();
FontLayoutService.setInstance(new MockFontLayoutService(TEST_CHAR_WIDTH, TEST_LINE_HEIGHT, TEST_DESCENT));
ComplementaryFontsRegistry.resetCaches(); // to reset cached char widths
}
@Override
<BUG>protected void tearDown() throws Exception {
super.tearDown();
FontLayoutService.setInstance(null);
}</BUG>
protected void initText(@NotNull @NonNls String fileText) throws IOException {

super.setUp();
FontLayoutService.setInstance(new MockFontLayoutService(TEST_CHAR_WIDTH, TEST_LINE_HEIGHT, TEST_DESCENT));
ComplementaryFontsRegistry.resetCaches(); // to reset cached char widths
}
@Override
protected void tearDown() throws Exception {
try {
FontLayoutService.setInstance(null);
}
finally {
super.tearDown();
}
}
protected void initText(@NotNull @NonNls String fileText) throws IOException {
