From: Jeremias M. <de...@je...> - 2009-01-07 14:03:54
|
Hans, thanks for your patch. I have yet to take a closer look at it (I'll do that ASAP) but my first reaction is: that changes the contract of the CanvasProvider interface and will cause all sorts of compatibility problems, for the FOP extension or for existing users. http://barcode4j.sourceforge.net/1.0/embedding.html#Java2D+(AWT) notes that a Graphics2D instance must be set up to map to millimeters as internal coordinate system. BTW, not everyone will automatically use points as normal coordinate system when working with Java2D. I'm using the Java2DCanvasProvider for various things and never had a problem that the font sizes were incorrect or got scaled incorrectly. Maybe we have to take a look at the code you have to integrate Barcode4J. I promise to take a closer look ASAP but be prepared that I might reject the patch. On 07.01.2009 13:46:53 Hans Marggraff wrote: > Hi, > > I have integrated bc4j into the open-source reporting and XML printing tool > ReportsAnywhere. (see http://reportsanywhere.java.net or > http://reportsanywhere.com) > Doing this I have found, that the java2DCanvas uses mm as unit, while > java Graphics > uses points. > As a result the output must be scaled which causes the message texts to > appear in the wrong size. > > I have placed a proposed patch in the patch tracker. > > Regards > Hans Marggraff Jeremias Maerki |