Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<version>1.0.5-SNAPSHOT</version>
</parent>

<properties></properties>
<properties>
<batik.version>1.18</batik.version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be defined in reactome-parent if you want to make things cleanly

<fop.version>2.10</fop.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
Expand Down Expand Up @@ -200,6 +205,7 @@
</resource>
</resources>


<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -252,6 +258,18 @@
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<encoding>UTF-8</encoding>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>otf</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class ExporterConfig {
Logger log = LoggerFactory.getLogger("threadLogger");
@Autowired
public ExporterConfig(ResourceLoader loader) throws IOException {
Resource resource = loader.getResource("file:resources/fonts");
Resource resource = loader.getResource("classpath:fonts");
String fontPath = resource.getFile().getAbsolutePath();
log.debug("Configuring Diagram Exporter with font path : " + fontPath);
DiagramExporterService.configureFontPath(fontPath);
}
}
}
Binary file added src/main/resources/fonts/arial.ttf
Binary file not shown.
Binary file added src/main/resources/fonts/arialbd.ttf
Binary file not shown.
Binary file added src/main/resources/fonts/arialbi.ttf
Binary file not shown.
Binary file added src/main/resources/fonts/ariali.ttf
Binary file not shown.