Bold doesn't work for a text field...but works for a label

payal picture payal · Oct 28, 2009 · Viewed 19.2k times · Source

When I format a text field to be displayed in "Bold"..it appears as bold in the ireport output, but is not displayed in bold when the same is viewed as a PDF.. any suggestions...?

Answer

user1851885 picture user1851885 · Dec 3, 2014

Just put this in your pom.xml:

    <dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports-fonts</artifactId>
        <version>5.6.1</version>
    </dependency>