The following prog shows that the getDescent() and getAscent for
a CJK font returns 0, although the properties shows a non zero value.
I'm using itext-1.4.6,jar and the iTextAsian.jar
public class x {
/** Creates a new instance of x */
public static void main(String[] args) {
BaseFont baseFont = null;
try {
baseFont = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H",
false);
} catch (IOException ex) {
ex.printStackTrace();
} catch (DocumentException ex) {
ex.printStackTrace();
}
System.out.println ("Ascent = " + baseFont.getAscent("AAA"));
System.out.println ("Descent = " + baseFont.getDescent("ggg"));
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/