this->config_drawonlyshapes = 0;
this->config_disable_polygon_conversion = 0;
this->config_multiply = 1;
+ this->config_detectspaces = 1;
this->config_linkdatafile = 0;
this->page2page = 0;
this->num_pages = 0;
this->config_transparent = atoi(value);
} else if(!strcmp(key,"drawonlyshapes")) {
this->config_drawonlyshapes = atoi(value);
+ } else if(!strcmp(key,"detectspaces")) {
+ this->config_detectspaces = atoi(value);
} else if(!strcmp(key,"extrafontdata")) {
this->config_extrafontdata = atoi(value);
} else if(!strcmp(key,"linkdatafile")) {
(render == RENDER_INVISIBLE)) {
int space = this->current_fontinfo->space_char;
- if(config_extrafontdata && space>=0 && m.m00 && !m.m01) {
+ if(config_extrafontdata && config_detectspaces && space>=0 && m.m00 && !m.m01) {
/* space char detection */
if(last_char_gfxfont == current_gfxfont &&
last_char_y == m.ty &&
int config_multiply;
int config_bigchar;
int config_drawonlyshapes;
+ int config_detectspaces;
char* config_linkdatafile;
double config_fontquality;
};
msg("<verbose> setting parameter %s to \"%s\"", name, value);
if(!strncmp(name, "fontdir", strlen("fontdir"))) {
addGlobalFontDir(value);
+ } else if(!strcmp(name, "addspacechars")) {
+ config_addspace = atoi(value);
+ gfxparams_store(i->parameters, "detectspaces", 0);
} else if(!strcmp(name, "detectspaces")) {
config_addspace = atoi(value);
} else if(!strcmp(name, "fontquality")) {