lindell / lindell/JsBarcode

Recessed text on barcode

Open
#288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Is it possible to generate a barcode with the text that is recessed (similar to UPC) but using type "auto"?

I'm trying to generate a barcode that looks like this:
![Screen Shot 2019-03-27 at 3 34 58 PM](https://user-images.githubusercontent.com/77580/55106731-03335600-50a6-11e9-9a51-98bda5d68b8b.png)

I tried setting the textMargin to a negative value, but the bars cover the text instead of the text covering the bars.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how type "auto" and textMargin are handled when barcode text and bars are rendered. Compare the output with the linked recessed-text example; done means the generated barcode places the text over the bars in the requested UPC-like style without the bars covering it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.