Fixed font selection
Font selection now correctly handles - as a special case. This change is also reflected in the documentation.
This commit is contained in:
@@ -540,6 +540,11 @@ parse (char *text)
|
||||
break;
|
||||
|
||||
case 'T':
|
||||
if(*p == '-') { //Reset to automatic font selection
|
||||
font_index = -1;
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
font_index = (int)strtoul(p, &ep, 10);
|
||||
// User-specified 'font_index' ∊ (0,font_count]
|
||||
// Otherwise just fallback to the automatic font selection
|
||||
|
Reference in New Issue
Block a user