That's just helvetica with fixed width of 400. Create the font like
this:
BaseFont bf = BaseFont.createFont("Helvetica", "winansi", false, false,
null, null);
int widths[] = bf.getWidths();
for (int k = 0; k < widths.length; ++k) {
if (widths[k] != 0)
widths[k] = 400;
}
bf.setForceWidthsOutput(true);
The only problem here is that the font name is still Helvetica and it
can confuse some readers. I'll have a way to change the font name in the
next version.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, March 26, 2004 6:30 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] CPDF-Monospace (ClibPDF to iText
> Migration Question)
>
>
> Hi all!
>
> Do you guys here know any exact replacement for
> CPDF-Monospace for iText?
> That would really save a lot of trouble from migrating to
> iText from ClibPDF.
>
>
> OT: Thanks a lot to Paolo for the PdfTemplate / UNDERSCORE answer.
>
>
> Have a nice day everyone!
>
> Paul
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions