I've nothing else for the moment, just a javadoc fix in BaseFont:
/** Gets the font parameter identified by <CODE>key</CODE>. Valid
values
* for <CODE>key</CODE> are <CODE>ASCENT</CODE>,
<CODE>AWT_ASCENT</CODE>, <CODE>CAPHEIGHT</CODE>,
* <CODE>DESCENT</CODE>, <CODE>AWT_DESCENT</CODE>,
* <CODE>ITALICANGLE</CODE>, <CODE>BBOXLLX</CODE>,
<CODE>BBOXLLY</CODE>, <CODE>BBOXURX</CODE>
* and <CODE>BBOXURY</CODE>.
* @param key the parameter to be extracted
* @param fontSize the font size in points
* @return the parameter in points
*/
public abstract float getFontDescriptor(int key, float fontSize);
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Bruno Lowagie [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 17, 2005 9:46 AM
> To: Paulo Soares
> Cc: [email protected]
> Subject: Re: [iText-questions] ascent that is negative
>
> Paulo Soares wrote:
>
> >That's a bug. Replace in BaseFont:
> >
> > public int getAscent(String text) {
> > int max = 0;
> > char chars[] = text.toCharArray();
> > for (int k = 0; k < chars.length; ++k) {
> > int bbox[] = getCharBBox(chars[k]);
> > if (bbox != null && bbox[3] > max)
> > max = bbox[3]; //this was changed
> > }
> > return max;
> > }
> >
> >
> I have fixed this in CVS.
> I am preparing a new release based on your version 152
> + the bugfixes in the RTF package by Mark Hall
> I plan to do the release this afternoon, but I could wait
> if you have a new release in the pipeline...
> br,
> Bruno
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions