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:
hooper 2010-09-12 11:54:47 +01:00
parent 0f81737e2a
commit 2300a76a07
4 changed files with 239 additions and 165 deletions

View file

@ -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;