This project has moved and is read-only. For the latest updates, please go here.
1

Closed

UPCA Zxing.net barcode font size

description

Hi,

I m using Zxing.net barcode generator nuget package (.NET framework 4.6.2), i m able to change the height and width of barcode but barcode number/text is becoming larger. Is there any way that i can change the font size of barcode text

file attachments

Closed Nov 20, 2016 at 7:45 PM by micjahn

comments

micjahn wrote Nov 20, 2016 at 7:45 PM

use the following snippet:
var writer = new BarcodeWriter
{
   Renderer = new BitmapRenderer
   {
      Font = new Font(<put your font name and size here>),
      ... (other settings for BitmapRenderer)
   },
   ... (other settings for BarcodeWriter)
};

wrote Nov 20, 2016 at 7:45 PM