Jump to content
Changes to the Jaspersoft community edition download ×

MICR Font Spacing in pdf reports


2005 IR Help

Recommended Posts

By: Mark Guerin - madrarua

MICR Font Spacing in pdf reports

2004-07-16 15:58

I am trying to print checks using the gnu MICR Font. I have done some validation of the font using Microsoft word and its proportions seem to be correct. However when I embed the font in a pdf report generated through Jasper it seems to reduce the spacing on the font. Is there some setting I can use to prevent this from happening? If not does this kind of partial distortion happen with all fonts? I have included the xml I use to include the MICR font and strip. Any help would be greatly appreciated.

 

<reportFont name="MICRFONT" isDefault="false" fontName="GnuMICR" size="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="blackdog/GnuMICR.ttf" pdfEncoding="Identity-H" isPdfEmbedded="false"/>

 

<textField>

<reportElement positionType="Float" x="45" y="202" width="499" height="15"/>

 

<textElement verticalAlignment="Middle">

<font reportFont="MICRFONT"/>

</textElement>

<textFieldExpressionclass="java.lang.String"><![CDATA[$F{micrStrip}]]></textFieldExpression>

</textField>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...