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
3 changes: 3 additions & 0 deletions changelogs/unreleased/fix-birt-custom-font-support.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Birt: Custom font support"
type: fix
5 changes: 4 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ axelor.report.resource.path =
reports.design.dir = {user.home}/data/reports

# Reports custom fonts path
reports.fonts.config = fonts/ReportFonts.xml
# if file is not found then birt will use its own font
# if this property is commented then framework will use its own font
# sample of this file is there at fonts/sample/fontsConfig.xml
reports.fonts.config = {user.home}/fontsConfig.xml

# Enable/disable demo data
# ~~~~~
Expand Down
171 changes: 0 additions & 171 deletions src/main/webapp/fonts/ReportFonts.xml

This file was deleted.

12 changes: 12 additions & 0 deletions src/main/webapp/fonts/sample/fontsConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE font>
<font>
<font-aliases>
<mapping name="sans-serif" font-family="Helvetica"/>
</font-aliases>
<font-paths>
<path path="C:/windows/fonts"/>
<path path="/usr/share/fonts/truetype"/>
<path path="/usr/share/fonts/TTF"/>
</font-paths>
</font>