<p>I suggest something like this</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/src/sciwrappers.c b/src/sciwrappers.c</span>
index 647c44454..5dc59b93e 100644
<span class="pl-md">--- a/src/sciwrappers.c</span>
<span class="pl-mi1">+++ b/src/sciwrappers.c</span>
<span class="pl-mdr">@@ -968,9 +968,9 @@</span> void sci_set_font(ScintillaObject *sci, gint style, const gchar *font, gint size
}
<span class="pl-md"><span class="pl-md">-</span>gint sci_get_fontsize(ScintillaObject *sci, gint style)</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>gdouble sci_get_font_size(ScintillaObject *sci, gint style)</span>
{
<span class="pl-md"><span class="pl-md">-</span> return (gint) SSM(sci, SCI_STYLEGETSIZE, (uptr_t) style, 0);</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> return SSM(sci, SCI_STYLEGETSIZEFRACTIONAL, (uptr_t) style, 0) / (gdouble) SC_FONT_SIZE_MULTIPLIER;</span>
}
<span class="pl-c1">diff --git a/src/sciwrappers.h b/src/sciwrappers.h</span>
index fca3efa65..fa2a88a29 100644
<span class="pl-md">--- a/src/sciwrappers.h</span>
<span class="pl-mi1">+++ b/src/sciwrappers.h</span>
<span class="pl-mdr">@@ -219,7 +219,7 @@</span> void sci_move_selected_lines_up (ScintillaObject *sci);
void sci_set_font_fractional (ScintillaObject *sci, gint style, const gchar *font, gdouble size);
<span class="pl-md"><span class="pl-md">-</span>gint sci_get_fontsize (ScintillaObject *sci, gint style);</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>gdouble sci_get_font_size (ScintillaObject *sci, gint style);</span>
#endif /* GEANY_PRIVATE */
<span class="pl-c1">diff --git a/src/ui_utils.c b/src/ui_utils.c</span>
index 644259bec..5f3ad4abf 100644
<span class="pl-md">--- a/src/ui_utils.c</span>
<span class="pl-mi1">+++ b/src/ui_utils.c</span>
<span class="pl-mdr">@@ -309,13 +309,13 @@</span> static gchar *create_statusbar_statistics(GeanyDocument *doc,
zoom = sci_get_zoom(doc->editor->sci);
if (zoom != 0)
{
<span class="pl-md"><span class="pl-md">-</span> gint size, percent;</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> gdouble size, percent;</span>
<span class="pl-md"><span class="pl-md">-</span> size = sci_get_fontsize(doc->editor->sci, STYLE_DEFAULT);</span>
<span class="pl-md"><span class="pl-md">-</span> if (size > 0)</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> size = sci_get_font_size(doc->editor->sci, STYLE_DEFAULT);</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> if (size > 0.0)</span>
{
percent = (size + zoom) * 100 / size;
<span class="pl-md"><span class="pl-md">-</span> g_string_append_printf(stats_str, _("Zoom: %d%%"), percent);</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> g_string_append_printf(stats_str, _("Zoom: %.0f%%"), percent);</span>
g_string_append(stats_str, sp);
}
}</pre></div>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1697?email_source=notifications&email_token=AAIOWJYUNRCCK2FMFHSTZZ3QM4VZVA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALNMXQ#issuecomment-538367582">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4QHRIILEHYR25XZBLQM4VZVANCNFSM4EFEY7TA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4BI4KO6WO4JOCEHL3QM4VZVA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALNMXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/1697?email_source=notifications\u0026email_token=AAIOWJYUNRCCK2FMFHSTZZ3QM4VZVA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALNMXQ#issuecomment-538367582",
"url": "https://github.com/geany/geany/pull/1697?email_source=notifications\u0026email_token=AAIOWJYUNRCCK2FMFHSTZZ3QM4VZVA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALNMXQ#issuecomment-538367582",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>