Maybe I can rephrase the question. What I would like to be able to do is
give the ability to the user to change the displayed spacing between
individual characters in the way that canvas.setCharacterSpacing(-10); does.
I figured if this method can do it, there must be some way to make another
method to add/subtract spacing between characters in position x1 and
position x2 in a text.
I don't care about modifying the font's built in kerning.
On Fri, Feb 18, 2011 at 9:47 AM, Wyatt Biker <[email protected]> wrote:
> The font is Times Roman.
>
> PdfContentByte canvas = stamper.getOverContent(1);
> canvas.beginText();
> .......
>
> * *How do I do this something like * setKerning('B',
> 'C',defaultKernValue+10)* before I show the text below. Do I need to do
> something to this instead? *getKernArray(text, bf);*
>
> canvas.showTextAlignedKerned(0 "My info", 10, 20, rot);
> canvas.endText();
>
> Thanks
>
>
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php