-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi there,
I’m working with this library to generate several types of barcodes. Currently, I’m working on EAN-8 and I’d like the barcode to be generated exactly like the example below:
In this example, there is a top margin and the left and right margins are equal. I’ve tried adjusting different values for scale, width, and height, but haven’t had any luck.
Here’s the configuration I’m currently using:
if barcode is BCKEAN8Code {
options[BCKCodeDrawingBarScaleOption] = 2.0
options[BCKCodeDrawingSizeWidthOption] = 120 // width in points
options[BCKCodeDrawingSizeHeightOption] = 60 // height in points
// Caption (numbers) font
options[BCKCodeDrawingCaptionFontNameOption] = "Courier" // thin/clean font
options[BCKCodeDrawingCaptionFontPointSizeOption] = 8.0 // font size
// spacing adjustment between barcode and numbers
options[BCKCodeDrawingMarkerBarsOverlapCaptionPercentOption] = 0.3 // smaller = closer
}
I also noticed that while BCKCodeDrawingCaptionFontNameOption works as expected, BCKCodeDrawingCaptionFontPointSizeOption doesn’t seem to have any effect.
Could you please suggest the correct way to:
- Add a top margin to the barcode.
- Ensure left and right margins are equal.
- Control the caption font size properly.
This is what image I'm getting
Metadata
Metadata
Assignees
Labels
No labels