How to make bold font in jasper report pdf?
UPDATED: 22 November 2015
Tags:
jasper-reports
<textElement> tag along with <font> tag used to make staticText or textField content bold. Add following textElement block between starting tag of <staticText> or <textField> and ending tag of </staticText> or </textField> .
<textElement markup="styled"> <font size="20" isBold="true" pdfFontName="Helvetica-bold"/> </textElement>Will look like...
<staticText> <reportElement x="235" y="0" width="92" height="26" uuid="3ed74d79-d31c-42ce-9af1-20ef78e0f6a1"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textElement markup="styled"> <font size="20" isBold="true" pdfFontName="Helvetica-bold"/> </textElement> <text><![CDATA[Bold Title]]></text> </staticText>Note: <font> tag is deprecated and replaced by Font Extensions. Will write post on how to use Font Extensions to make font bold.
Tags:
jasper-reports
0 comments :