Skip to content

Commit

Permalink
RM#52809 Anomaly - Birt: Fix custom font support
Browse files Browse the repository at this point in the history
  • Loading branch information
rme-axelor committed Jan 11, 2023
1 parent c5f11aa commit 361cbdb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 172 deletions.
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>

0 comments on commit 361cbdb

Please sign in to comment.