JsBarcode icon indicating copy to clipboard operation
JsBarcode copied to clipboard

The text has been deformed, like a mosaic

Open YountMan opened this issue 5 years ago • 0 comments

When I draw the barcode, the text becomes a mosaic. image

code show as below

	    var canvas = document.createElement("canvas");
	    JsBarcode(canvas, md5Key, {
	            format: "CODE128",
	            height:100,
	            fontSize:10,
	            margin:1,
	            fontOptions:'italic',
	            font:'Microsoft YaHei',
	            
	            displayValue:true,
	            text:tipName + ':' + tip,
	            textAlign:'left',
	            textPosition:'buttom',
        });
	    var base64 = canvas.toDataURL("image/png");

I found this library when I googled polyfill I hope the author can join this or similar processing mechanism, When I print out using a thermal printer, the text cannot be read.

YountMan avatar Mar 01 '19 05:03 YountMan