Re: PDFFontDescriptor and PDFFactory

2006-05-29 Thread Jeremias Maerki
Fixed in FOP Trunk. Thanks, Peter. The values are not that important.
That's why we saw it.

On 26.05.2006 14:30:25 Peter B. West wrote:
 On Fri, 2006-05-26 at 12:54 +0100, Chris Bowditch wrote:
  Peter B. West wrote:
  
   A colleague of mine has just found this:
   
  From PDFFontDescriptor
*/
   public PDFFontDescriptor(String basefont, int ascent,
int descent, int capHeight, int flags,
PDFRectangle fontBBox, int italicAngle,
int stemV) {
   
  From PDFFactory
   
   descriptor = new PDFFontDescriptor(desc.getFontName(),
desc.getAscender(),
desc.getDescender(),
desc.getCapHeight(),
desc.getFlags(),
new
   PDFRectangle(desc.getFontBBox()),
desc.getStemV(),
desc.getItalicAngle());
  
  Your message is a little cryptic Peter. Are you trying to say there is a 
  bug caused by the fact PDFFactory mis-uses the Constructor to 
  PDFFontDescriptor? (looks like StemV and italicAngle arguments are 
  transposed)
  
  Chris
 
 Chris,
 
 That's what he pointed out.
 
 Peter



Jeremias Maerki



Re: PDFFontDescriptor and PDFFactory

2006-05-26 Thread Peter B. West
On Fri, 2006-05-26 at 12:54 +0100, Chris Bowditch wrote:
 Peter B. West wrote:
 
  A colleague of mine has just found this:
  
 From PDFFontDescriptor
   */
  public PDFFontDescriptor(String basefont, int ascent,
   int descent, int capHeight, int flags,
   PDFRectangle fontBBox, int italicAngle,
   int stemV) {
  
 From PDFFactory
  
  descriptor = new PDFFontDescriptor(desc.getFontName(),
   desc.getAscender(),
   desc.getDescender(),
   desc.getCapHeight(),
   desc.getFlags(),
   new
  PDFRectangle(desc.getFontBBox()),
   desc.getStemV(),
   desc.getItalicAngle());
 
 Your message is a little cryptic Peter. Are you trying to say there is a 
 bug caused by the fact PDFFactory mis-uses the Constructor to 
 PDFFontDescriptor? (looks like StemV and italicAngle arguments are 
 transposed)
 
 Chris

Chris,

That's what he pointed out.

Peter