1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-14 10:03:54 +00:00

GUI: Separate out SCM fields for MAXICODE (Ticket #212)

vector.c: Enforce minimum scale 0.1 and allow down to 0.1 in GUI
This commit is contained in:
gitlost
2021-09-09 21:50:02 +01:00
parent 492d9a41c5
commit f84f82d9a2
8 changed files with 348 additions and 158 deletions

View File

@@ -208,6 +208,10 @@ static void vector_scale(struct zint_symbol *symbol, int file_type) {
struct zint_vector_string *string;
float scale = symbol->scale * 2.0f;
if (scale < 0.2f) { // Minimum vector scale 0.1
scale = 0.2f;
}
if ((file_type == OUT_EMF_FILE) && (symbol->symbology == BARCODE_MAXICODE)) {
// Increase size to overcome limitations in EMF file format
scale *= 20;