-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font not read #45
Comments
Possible solution could be printing the Numbers above the Barcode Layer and add some White Space at starting and ending of the Numbercode. Or the solution you showed but I never saw that on an barcode or in an Barcode lib in my life. I had in my previous work a fork solving some problems with the resolution, maybe setting the Image Resolution to 300 px could solve it. Unfortunately i quit before getting my changes out. |
The problem with just adding arbitrary space before and after the barcode is that the consumer has specified a specific width for the barcode image to be and adding space for the number is either going to:
Im not sure which or if either is really acceptable. Just trying to weigh options here. |
Sorry for late response. best is to take up space including for numbers such as size. so space becomes smaller. |
@teunlielu, what you used to generate that barcode is also not correct. There should be a spacing after the 8. |
The above code was generated with a font where the bars and spaces are defined as separate glyphs, together with the OCR font digit below it. @barnhill has made a library for generating pixel based images, not vector based, so any text (vector based) used as human readable text below the bars and spaces will probably never be perfect. |
@rob313663 how would you solve? Vectorbase is not option. I think so. Is better with space but to smalle for hunan for reading. |
@teunlielu Personally I already solved it. I made a font, exactly following the specifications of the EAN/UPC codes. I did that in 1997. Those fonts are not open source so I can't give it to you, we even stopped selling it because it generated too much support (never give a sharp knife to a child, I got a sharp knife, still have a scar to remind me). barcodelib is for generating images of barcodes, the machine readable part, which I think it does in a very good way. Making the human readable part in barcodes, especially UPC/EAN is very hard unless you go for a font, which barcodelib is not. |
@teunlielu And I am not a developer of barcodelib, or even a contributor, just trying to pitch in with my knowledge of barcodes. |
@teunlielu will something like this do?
|
I have works at the moment old versions this lib. Give this same output of your. New idea of barcode format is beautyfuller. But old works for me fine. We have two options change code render old version or is possible to fix this bug. |
Is there a solution for second bug? |
The label logic needs some work Im afraid and all barcode types have different label formats |
My suggestion is: change 0,5f to 0,72f in follow code
|
I have two bugs fond:
null give an error about null exeption
(RawData.StartsWith(AlternateLabel) || (AlternateLabel == null)
startWith go first after the null check
I cann't by past beter
you cann't read the first nummer of barcode label
problem is by more sizes.
example on this sreentshot
Thanks
The text was updated successfully, but these errors were encountered: