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

Barcode (EAN13) is not displaying properly #38

Open germanmedinasl opened 3 years ago

germanmedinasl commented 3 years ago

I know, I probably lack of knowledge and I'm not doing things right, probably not an issue, but I don't know where else to find help about this.

I'm trying to implement this font in InDesign so a column of data (barcodes or any other number) is read from a file and displayed in different price tags. (The function is called data merge). I also tried it in Word, with no success. InDesign 2021: The number just displays normal, no code at all, like if the font is not being applied. Word 2016: Each digit seems to be the first of the code, creating space after each one. You can see for visual reference the results here: https://imgur.com/a/01EJTuH

So I don't really know what I'm missing. The documentation states that the font should handle the EAN13 internal coding. I understand that you close the issue instantly, but if you could drop me some help, I would appreciate it .

id wo

alerque commented 3 years ago

InDesign and Word both have their own history of problems with shaping, I suggest debugging your system in something else first. Start with something non-Adobe and non-Microsoft just to see if you have the font file installed on the system.

As as example of what I mean, I opened a blank document in Libre Office Writer, typed in the 8411125079055 barcode number from your example, selected the text, changed the font to Libre Barcode EAN13 Text, boosted the font size, and this is what I got:

image

graphicore commented 3 years ago

@alerque thanks!

@germanmedinasl I think in InDesign, Harfbuzz is available as shaping engine, but it's not the default and must be activated as "world ready composer" see e.g. this https://pubassist.paratext.org/2019/12/10/whats-new-in-indesign-2019-2020/ how to set up paragraph styles.

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

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

seee https://github.com/graphicore/librebarcode/issues/28#issuecomment-745736391