--- a/HelperStructs/Style.cpp
+++ b/HelperStructs/Style.cpp
@@ -80,6 +80,7 @@
string Style::scale_fonts(const string& style, float multiplier)
{
+ //cerr << "Style::scale_fonts: multiplier: " << multiplier << endl;
vector<string> lines;
stringToTokens(style, lines, "\n");
#if USE_REGEX
@@ -99,7 +100,7 @@
if (regex_match(line, m, bdmrg_regex) && m.size() == 4) {
//cerr << "Got match (sz " << m.size() << ") for " << line << endl;
int fs = atoi(m[2].str().c_str());
- int nfs = round(fs * multiplier);
+ int nfs = ceil(fs * multiplier);
char buf[20];
snprintf(buf, 20, "%d", nfs);
lines[ln] = m[1].str() + buf + m[3].str();