JasperReports provides several ways to control the properties of the text in the report (bold, italic, font, underline, etc.).
One way JasperReports allows us to control text properties, is by using the<style>
element. This element allows us to control the foreground color, background color, whether the font is bold, italic, or normal, the font size, a border for the font, and many other attributes. Styles can extend other styles, and add to, or override properties of the parent style.
The following JRXML template illustrates the use of styles:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="ReportStylesDemo">
<style name="parentStyle...