mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Add size restrictions for some barcode types
No longer allows symbols of size less than 2mm high or 2mm wide Enforces correct sizing for Australia Post, Intelligent Mail, Royal Mail 4-State and KIX Code Adjusts ascender/tracker/descender proportions on all 4-state codes to revised 3/2/3 standards Enforces normative sizing for UPC and EAN Enforces minimum sizing for Codabar and Code 49 Tidies up the code a bit so that all of the above makes some sense
This commit is contained in:
parent
0f81737e2a
commit
2300a76a07
4 changed files with 239 additions and 165 deletions
|
@ -690,9 +690,9 @@ int imail(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
read += 2;
|
||||
}
|
||||
|
||||
symbol->row_height[0] = 2;
|
||||
symbol->row_height[0] = 3;
|
||||
symbol->row_height[1] = 2;
|
||||
symbol->row_height[2] = 2;
|
||||
symbol->row_height[2] = 3;
|
||||
|
||||
symbol->rows = 3;
|
||||
symbol->width = read - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue