Hi, I'm creating a PDF using the low-level PdfContentByte interface, and I need to call getEffectiveStringWidth() to calculate the correct horizontal position.
This has been returning incorrect values when the string contains a bullet (U+2022). I've tracked through the source and found that this gets mapped to the proper winansi value of 0x95, but the font width table has zero for this entry. I'm getting the correct character displayed by showText(), so I'm assuming the encoding is correct. I don't know enough about the format of Type 1 fonts to be able to tell if the problem lies in the font metrics. Has anyone had any similar problems? TIA, Tony S. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
