Skip to content

Commit 361cbdb

Browse files
committed
RM#52809 Anomaly - Birt: Fix custom font support
1 parent c5f11aa commit 361cbdb

File tree

4 files changed

+19
-172
lines changed

4 files changed

+19
-172
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: "Birt: Custom font support"
3+
type: fix

src/main/resources/application.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ axelor.report.resource.path =
120120
reports.design.dir = {user.home}/data/reports
121121

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

125128
# Enable/disable demo data
126129
# ~~~~~

src/main/webapp/fonts/ReportFonts.xml

Lines changed: 0 additions & 171 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE font>
3+
<font>
4+
<font-aliases>
5+
<mapping name="sans-serif" font-family="Helvetica"/>
6+
</font-aliases>
7+
<font-paths>
8+
<path path="C:/windows/fonts"/>
9+
<path path="/usr/share/fonts/truetype"/>
10+
<path path="/usr/share/fonts/TTF"/>
11+
</font-paths>
12+
</font>

0 commit comments

Comments
 (0)