Add 'WOFF' file to my BIRT Report
Answers
-
Register the Custom Font: Before initializing the BIRT engine, register your custom font using the following line of code:
FontFactory.register("/path/to/your/custom-font.ttf");
Review and use carefully. More info on FAQ.Replace /path/to/your/custom-font.ttf with the actual path to your WOFF font file. This step ensures that BIRT recognizes and embeds the font in your PDF reports.
0 -
I'm creating a Java application that leverages BIRT to generate reports. I want to bundle custom fonts in a jar file so that they may be embedded in PDF reports.
I could export fonts to the file system first and then point BIRT to their locations, but I'm curious if it's possible to enable BIRT to load fonts straight from the classpath.0 -
Hi Kiran,
To use custom fonts from a WOFF file in BIRT 4.8.0, follow these steps:
- Convert the WOFF file to a TTF file since BIRT supports TTF fonts.
- Place the TTF file in the BIRT Fonts folder (
birt-runtime/fonts
). - Update your report design by specifying the font in the "Font" properties.
After these steps, the custom font should be available in your reports.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories