Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Tue Apr 28, 2015 7:08 pm

Hi,

it seems that :

float validFontHeight = 20.0f;
string fontName = comboBoxFont.SelectedItem.ToString();
this.barCodeControl1.Font = new Font(fontName, validFontHeight);

Don't modify font size at rendering.

Vincent

nolme
 
Posts: 79
Joined: Fri Apr 24, 2015 3:56 pm

Wed Apr 29, 2015 2:41 am

Hello,

Thanks for your inquiry.
Please change your code:
this.barCodeControl1.Font = new Font(fontName, validFontHeight);
to the code below:
this.barCodeControl1.TextFont = new Font(fontName, validFontHeight);
If there are any questions, welcome to get it back to us.

Sincerely,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.BarCode