Op 13/02/2011 15:39, Wyatt Biker schreef: > 1) Is it possible inside a field's content to set the kerning between > characters ?
It depends: if you fill out the field without flattening, then an appearance is created automatically. Kerning isn't used, not in the appearance, not when the end user changes the text field manually. If you want to flatten the field, then setField() won't result in kerned characters. You can work around this, by getting the field positions (as is done in chapter 8) and adding the content with the showTextAlignedKerned() method. > 2) How is tracking done? Kerning is done automatically, based on the info found in the font. Tracking isn't done automatically. If you position the text using the methods of chapter 14 (text state), you'll have to do the math, and use the methods that allow you to fine tune the word and character spacing. Or you can use Text Arrays (arrays consisting of strings and numbers. The numbers are measurements for the space between the strings). All these methods are listed in chapter 14. ------------------------------------------------------------------------------ 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
