mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct size of PostNet
Add pitch and height restrictions for rendering PostNet and PLANET symbols. Thanks to Jim Evans.
This commit is contained in:
parent
e2f35eaf39
commit
4f86c12ec4
@ -310,6 +310,12 @@ int render_plot(struct zint_symbol *symbol, float width, float height)
|
||||
render->height = 4.064 * GL_CONST;
|
||||
}
|
||||
|
||||
if((symbol->symbology == BARCODE_POSTNET) || (symbol->symbology == BARCODE_PLANET)) {
|
||||
/* The size of PostNet and PLANET are fized */
|
||||
render->width = 0.508 * GL_CONST * total_area_width_x;
|
||||
render->height = 2.921 * GL_CONST;
|
||||
}
|
||||
|
||||
if(((symbol->symbology == BARCODE_AUSPOST) || (symbol->symbology == BARCODE_AUSREPLY)) ||
|
||||
((symbol->symbology == BARCODE_AUSROUTE) || (symbol->symbology == BARCODE_AUSREDIRECT))) {
|
||||
/* Australia Post use the same sizes as USPS */
|
||||
|
Loading…
Reference in New Issue
Block a user