`Problem with finding font size`
When adding a new project using OpenLayers from the unzipped xml file attached to https://git-r3lab.uni.lu/piotr.gawron/minerva/issues/379 (PD_180406_2.xml
), one can see a lot of Problem with finding font size
in the log list (click on exclamation mark in the status column). In the tomcat log file these are a bit more verbose:
2018-08-20 15:39:02,043 WARN [Thread-17] (ComplexConverter.java:160) - Problem with finding font size
lcsb.mapviewer.converter.graphics.geometry.RectangleTooSmallException: Cannot fit text into the border.
at lcsb.mapviewer.converter.graphics.geometry.FontFinder.findMaxFontSize(FontFinder.java:68)
at lcsb.mapviewer.converter.graphics.bioEntity.element.species.ComplexConverter.drawText(ComplexConverter.java:157)
at lcsb.mapviewer.converter.graphics.bioEntity.element.species.ComplexConverter.draw(ComplexConverter.java:140)
at lcsb.mapviewer.converter.graphics.bioEntity.element.species.ComplexConverter.draw(ComplexConverter.java:30)
at lcsb.mapviewer.converter.graphics.bioEntity.element.species.SpeciesConverter.draw(SpeciesConverter.java:491)
at lcsb.mapviewer.converter.graphics.bioEntity.element.species.SpeciesConverter.draw(SpeciesConverter.java:51)
at lcsb.mapviewer.converter.graphics.bioEntity.BioEntityConverterImpl.draw(BioEntityConverterImpl.java:195)
at lcsb.mapviewer.converter.graphics.AbstractImageGenerator.drawSpecies(AbstractImageGenerator.java:860)
at lcsb.mapviewer.converter.graphics.AbstractImageGenerator.drawCompartment(AbstractImageGenerator.java:808)
at lcsb.mapviewer.converter.graphics.AbstractImageGenerator.drawCompartment(AbstractImageGenerator.java:810)
at lcsb.mapviewer.converter.graphics.AbstractImageGenerator.draw(AbstractImageGenerator.java:736)
at lcsb.mapviewer.converter.graphics.AbstractImageGenerator.savePartToFile(AbstractImageGenerator.java:1020)
at lcsb.mapviewer.converter.graphics.MapGenerator.generateMapImages(MapGenerator.java:332)
at lcsb.mapviewer.services.impl.ProjectService.generateImagesForBuiltInOverlay(ProjectService.java:548)
at lcsb.mapviewer.services.impl.ProjectService.createImages(ProjectService.java:526)
at lcsb.mapviewer.services.impl.ProjectService$5.run(ProjectService.java:823)
at java.lang.Thread.run(Thread.java:748)
The map contains entries with large text making underlying content unreadable, see attachment.
Edited by Nils Christian