graphicore / librebarcode

Libre Barcode: barcode fonts for various barcode standards.
https://graphicore.github.io/librebarcode
SIL Open Font License 1.1
425 stars 25 forks source link

Code 128 Font not rendering the same as on Libre Barcode project page #42

Closed brittadams closed 3 years ago

brittadams commented 3 years ago

Code 128 Font not rendering the same as on Libre Barcode project page, tried both the downlead from the project and google. Google does not render it properly either. 2021-06-04 14_17_08-Code 128 _ Libre Barcode Project - Brave 2021-06-04 14_17_16-Libre Barcode 128 Text - Google Fonts - Brave

graphicore commented 3 years ago

Hie @brittadams , thanks for reporting! However, the information provided is a little sparse, please give me more context: Where did you try it, which software, which OS? What was your original input string? How can I reproduce this issue? What is your expected result?

brittadams commented 3 years ago

@graphicore The first image is from your github encoder https://graphicore.github.io/librebarcode/documentation/code128 which displays the proper barcode and the scanners I tested worked. The other one is the result on the google font library https://fonts.google.com/specimen/Libre+Barcode+128. When I download your font on windows it looks like the one from google not the one on your encoder page and does not work with any scanners. Other online barcode generators look like your encoder page and work as well https://barcode.tec-it.com/en/Code128?data=4523

graphicore commented 3 years ago

@brittadams I think there's a little misunderstanding on how the encoder works:

Screenshot from 2021-06-07 16-51-53

The input text of the encoder is 5423 but it says at the bottom "Copy the encoded text to use it with one of the Libre Barcode 128 fonts:"

and then it displays the output as ÍV7ÊÎ

When I use that output on Google Fonts I get:

Screenshot from 2021-06-07 16-56-08

That's why there is a need for an encoder at all, because the input text to the font is not the same as data that is encoded.

nemus9 commented 3 years ago

When I put the encoded text for the number 5423, ÍV7ÊÎ, in a word document and then change the font to Libre Barcode 128 Text, I see V7 in the text under the barcode instead of 5423. How to get the font to show 5423 instead of the encoded text?

Screenshot 2021-06-26 114647

graphicore commented 3 years ago

@nemus9 sorry for the late reply, I missed your question.

In Word, deep down in the style menu you must activate "Use Contextual Alternates" under e.g.:

Apply Styles -> Modify … -> Format … -> Font … -> Advanced

Here's a screenshot: https://github.com/graphicore/librebarcode/issues/28#issuecomment-745736391

graphicore commented 3 years ago

@nemus9 @brittadams Any more feedback or can this issue be closed?

nemus9 commented 3 years ago

Thanks for the information on how to view the unencoded text for barcode 128 text. Good to know!