Free Support Forum -

Arial font size 10 and 12 not displaying text correctly in the barcode image in .NET

I am having a strange issue with Arial font when the size is set to 10 or 12.
If the code text is more than 9 characters the last character does not show in the displayed text.
So the value 12312312345 will display 1231231234 but the bar code is encoded with the full text.
If I set the font size to any other value it displays correctly.
I am applying the license we purchased so it is not an evaluation issue.
Here is my code:
Font font = new Font("Arial", Font.PLAIN, 12);

BarCodeBuilder builder = new BarCodeBuilder();







FileOutputStream fos = new FileOutputStream(new File("c:/testCodes//testDisplay.png"));

ByteArrayOutputStream baos = new ByteArrayOutputStream();, BarCodeImageFormat.Png);

I also tried setting the font by using builder.getCaptionBelow().setFont(font) but that ignores the font all together.
This is a common font setting that will be used in our application so this issue will need to be resolved.
We are using the Java Bar code library.

Thank you

Hi Fred,

Thank you for contacting support. We have tested your sample code against the latest build of Aspose.BarCode 6.8.0 and managed to replicate the problem said. We have logged this issue under ticket id BARCODJAVA-33513 in our issue tracking system. Your post has also been linked to this issue. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
Hi Fred,

Thank you for being patient. We have a good news for you that the issue id BARCODJAVA-33513 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.BarCode for Java 6.9.0. We'll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as BARCODJAVA-33513) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.