hummusRecipe
hummusRecipe copied to clipboard
stretch a text vertically
Is it possible to stretch a text vertically?
I am using a barcode font (Interleaved 2 of 5), but the barcode height is too small.
.text('(1G)', 'center', 250, {
color: '#000000',
fontSize: 30,
font: 'Interleaved2of5',
align: 'center center',
})
So is there any change when you make the fontSize larger, say size 60? I assume it will grow proportionally larger in both height & width. If that is not what you want, then you will have to abandon the barcode font and use image barcodes, such as https://www.npmjs.com/package/bwip-js A demo resides at http://bwip-js.metafloor.com/demo/demo.html