|
|
|
@ -298,9 +298,16 @@ const ObjectBase* GMT_Convert2PNG(const ObjectList* input)
|
|
|
|
|
if(taa.Exist()) aats=taa; |
|
|
|
|
if(gaa.Exist()) aags=gaa; |
|
|
|
|
tolower(aags); tolower(aats); |
|
|
|
|
if("none" ==aags || "no"==aags || "n"==aags) aag=1; if("none" ==aats || "no"==aats || "n"==aats) aat=1; |
|
|
|
|
if("small"==aags || "s" ==aags ) aag=2; if("small"==aats || "s" ==aats ) aat=2; |
|
|
|
|
if("full" ==aags || "f" ==aags ) aag=4; if("full" ==aats || "f" ==aats ) aat=4; |
|
|
|
|
|
|
|
|
|
if("none" ==aags || "no"==aags || "n"==aags) aag=1; |
|
|
|
|
if("none" ==aats || "no"==aats || "n"==aats) aat=1; |
|
|
|
|
|
|
|
|
|
if("small"==aags || "s" ==aags ) aag=2; |
|
|
|
|
if("small"==aats || "s" ==aats ) aat=2; |
|
|
|
|
|
|
|
|
|
if("full" ==aags || "f" ==aags ) aag=4; |
|
|
|
|
if("full" ==aats || "f" ==aats ) aat=4; |
|
|
|
|
|
|
|
|
|
if(0==aat) {err="Incorrect value for text antialiasing: "+aats; goto fail;} |
|
|
|
|
if(0==aag) {err="Incorrect value for graphics antialiasing: "+aags; goto fail;} |
|
|
|
|
} |
|
|
|
@ -408,9 +415,16 @@ const ObjectBase* GMT_Convert2JPG(const ObjectList* input)
|
|
|
|
|
if(taa.Exist()) aats=taa; |
|
|
|
|
if(gaa.Exist()) aags=gaa; |
|
|
|
|
tolower(aags); tolower(aats); |
|
|
|
|
if("none" ==aags || "no"==aags || "n"==aags) aag=1; if("none" ==aats || "no"==aats || "n"==aats) aat=1; |
|
|
|
|
if("small"==aags || "s" ==aags ) aag=2; if("small"==aats || "s" ==aats ) aat=2; |
|
|
|
|
if("full" ==aags || "f" ==aags ) aag=4; if("full" ==aats || "f" ==aats ) aat=4; |
|
|
|
|
|
|
|
|
|
if("none" ==aags || "no"==aags || "n"==aags) aag=1; |
|
|
|
|
if("none" ==aats || "no"==aats || "n"==aats) aat=1; |
|
|
|
|
|
|
|
|
|
if("small"==aags || "s" ==aags ) aag=2; |
|
|
|
|
if("small"==aats || "s" ==aats ) aat=2; |
|
|
|
|
|
|
|
|
|
if("full" ==aags || "f" ==aags ) aag=4;
|
|
|
|
|
if("full" ==aats || "f" ==aats ) aat=4; |
|
|
|
|
|
|
|
|
|
if(0==aat) {err="Incorrect value for text antialiasing: "+aats; goto fail;} |
|
|
|
|
if(0==aag) {err="Incorrect value for graphics antialiasing: "+aags; goto fail;} |
|
|
|
|
} |
|
|
|
|