Jump to content

Recommended Posts

Posted

I have tried to create EAN 13 barcodes using the "Libre Barcode EAN13 text" ttf.

Unfortunately, the standard Input Method does not work with Affinity software.

The docs say the "calt" feature must be enabled.

Is it possible to do this in Affinity apps?

 

For details, see below:

https://graphicore.github.io/librebarcode/documentation/ean13#standard-input-method

Standard Input Method

The preferred way to use this font is by the Expected Inputs, optionally with the question mark as placeholder to trigger check-digit calculation. This requires no step in-between and keeps the value of the barcode in the document, that means e.g. that full text search and copy and paste will keep working.

The rules to compose the correct barcodes from the Expected Inputs are implemented in the font as OpenType Feature namely by the calt “Contextual Alternates” feature.

“This feature should be active by default.”, says the spec, and a modern text rendering pipeline will execute it without problems by default. However, not all software is equally fit, and so there are currently different issues e.g. with Microsoft Office or Apple iOS Browsers and different approaches to mitigate them:

  • For Browsers (Safari and Chrome) on Apples iOS Browsers, the short answer is, use font-feature-settings: "calt" 1; in your CSS. Here’s a description: issue #29.
  • For Microsoft Word (2010? ff.) there’s a deeply buried user interface to activate “Contextual Alternates”, described here: issues #28
  • If no OpenType Features are available e.g. in Microsoft Excel, have a look at the “Fallback” input method and “Compatible” input method.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

Contextual Alternates is on automatically for that font (and probably all fonts) in Publisher:

image.png.cc1fa9a6aa293647cede6a0f9dbc3843.png

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted

Even so, obviously the font does not work in Publisher as the font designer intends. Possibly it uses OpenType functions that the Affinity applications do not handle, such as those used by the Indic fonts that cause problems described elsewhere in these forums.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
  • OpenType Schriften & Features (the DE Online help tells)
  • Quote

    Zu den unterstützten Schrift-Features gehören Ligaturen, Formatvarianten, Varianten für Schwungbuchstaben, Formatsätze und Positionen für Zahlen. Die Ligaturen lassen sich ebenfalls über das Untermenü Text > Ligaturen einstellen.

What does the Glyph-Panel show up for that font?

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted

From Publisher:
 

 

image.png

 

From LibreOffice:

image.png.56ae3edbeceea22d1d4ce17d819ca922.png

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
21 minutes ago, v_kyr said:

What does the Glyph-Panel show up for that font?

The font is freely available:

https://fonts.google.com/specimen/Libre+Barcode+EAN13+Text

Glyph browser shows a lot of things:

image.png.60e8d5c70118170dad02558c0c9eb01d.png

image.png.755a41b0af7c955d89e38747e3453f61.png

 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
59 minutes ago, NotMyFault said:

I have tried to create EAN 13 barcodes using the "Libre Barcode EAN13 text" ttf.

Unfortunately, the standard Input Method does not work with Affinity software.

Use the Fallback Input Method or Compatible Input Method - they both work in APub.
https://graphicore.github.io/librebarcode/documentation/ean13#ean13-encoder

Input your code in the box, and then copy the modified code from below.
Paste that into APub and apply the font and it will display the correct barcode.

 

Posted

Posted a bug report on github.

https://github.com/graphicore/librebarcode/issues/48

Hope that a moderator / developer from Serif steps in if required.

 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
Just now, LibreTraining said:

Use the Fallback Input Method or Compatible Input Method - they both work in APub.
https://graphicore.github.io/librebarcode/documentation/ean13#ean13-encoder

Input your code in the box, and then copy the modified code from below.
Paste that into APub and apply the font and it will display the correct barcode.

 

I know, unfortunately this would require pre-processing of input (in case of data merge / publisher), using an extra tool. All these nice interactive SaaS tools do not help for mass-processing.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
10 minutes ago, NotMyFault said:

Posted a bug report on github.

https://github.com/graphicore/librebarcode/issues/48

Hope that a moderator / developer from Serif steps in if required.

Some of the contributors to the LibreBarcode fonts are the same people who develop the Harfbuzz shaping engine (used in LibreOffice, etc.) - so they do not see an issue like this as a problem with the fonts, but rather a problem with the shaping engine in the app which has a problem. So they will see nothing to fix (review the tracker for previous "issue" reports with various apps).

This will have to be fixed in Affinity apps.

Posted
9 minutes ago, NotMyFault said:

Posted a bug report on github.

Why?

I would view it as an Affinity issue.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
1 minute ago, walt.farrell said:

Why?

I would view it as an Affinity issue.

Of course, i agree it looks like an Affinity issue.

But the authors of that font seem to care and document lots of solutions/workarounds how to get their font to work for other apps that have issues.

I have learned to request every possible help from all involved parties. If it works, excellent. If not, i wasted 10 minutes to register and file the report.

I raised this report simply out of curiosity to help another user who actually has a urgent problem. And i may use this knowledge for my own business when someone needs EAN codes.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
1 minute ago, LibreTraining said:

I suggest you post this in the APub Bug forum.

Do you know the fix rate of my bug reports in the forum? Out of about 40 in the last 2 years maximum 10 percent. 4 instant crashes with data loss are still unfixed. partially >12 month.

Yes, i will file another report that will probably never get fixed.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
1 minute ago, NotMyFault said:

Do you know the fix rate of my bug reports in the forum? Out of about 40 in the last 2 years maximum 10 percent. 4 instant crashes with data loss are still unfixed. partially >12 month.

Yes, i will file another report that will probably never get fixed.

Yes, and that's why I suggested you do it.
If you got 10% fixed, you are well ahead of me.  😁

Posted
19 minutes ago, LibreTraining said:

I suggest you post this in the APub Bug forum.

done.

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.