Create Barcode from Text (using MyFonts extension)

A quick one. Using Anke's MyFonts extension, and a couple of open source barcode fonts, it is possible to generate a barcode:

image

image

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

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 ?

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.

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

The version I have:

"categoryString":"EXTENSION","dateBuilt":"2021-11-25"

image