Font clipping in tables

Font clipping in tables

Forum member · Jul 24, 2008
I am having some issues with table borders clipping off the bottom part of lower case letters (p, q, etc) In my framework I add multiple tables (one right after the other) where I make the following call: table.setHeight(table.getRequiredHeight()); I am not familiar with Font measurements, or the calls available for me to determine how to make the table height big enough to include these "dangling" parts of lower case letters. My guess is that I could just add a number to the getRequiredHeight() call, but this would probably vary depending on the font size, etc. Anyone know how to get that measurement?

Re: Font clipping in tables

Support · Jul 24, 2008
Hello, You can get the height of the dangling part by using the getDescender() method of the Font class. Thanks, ceTe Software Support Team