I have a problem with fonts in jasper report, this is my code:
<textField>
<reportElement x="0" y="2" width="40" height="20" forecolor="#E36C0A"/>
<textElement verticalAlignment="Bottom">
<font size="12" pdfFontName="../../css/custom/fonts/amrgarab.TTF"/>
</textElement>
<textFieldExpression><![CDATA[$P{centre}.getShortName().get($P{locale})]]></textFieldExpression>
</textField>
Ok, the problem is that it writes but not using the font amrgarab.TTF
I read a lot about this, and I don't want to "install" in the server, I add the font to my project, can I do that? If I can do that, why doesn't it work?