A quick one. Using Anke's MyFonts extension , and a couple of open source barcode fonts, it is possible to generate a barcode:
BarcodeFont.aia (19.4 KB)
Credits
@Anke for Myfonts extension
@ LibreBarcode
BONUS BLOCKS (draggable) with random product code generator
15 Likes
hi
how can keep barcode in one line?
when my barcode is too lenght i see barcode in two line and its not work for me!!
Set the Screen orientation of your app to Layout might be the solution.
Good Day
Can your barcode be displayed on a canvas
TIMAI2
September 5, 2023, 2:32pm
5
Not sure you can set a custom font with the canvas, but you could save an image of the barcode created and display that as either a background or sprite image
@TIMAI2 How to save as image of the barcode created ?
TIMAI2
February 17, 2024, 7:19pm
7
You would need to use the component to image extension
Unfortunately the link is currently broken due to an ongoing upgrade to the getaix site.
You could always use other extensions to take a screenshot then crop the resulting image.
Anke
February 18, 2024, 9:20am
8
I think Jarin Jacob's extension is from 2018 and there is only version 1. I tried it some time ago but this version does no longer work on Android 11+.
@Jerin_Jacob
TIMAI2
February 18, 2024, 9:35am
9
The version I have:
"categoryString":"EXTENSION","dateBuilt":"2021-11-25"