diff --git a/api/texfont.C b/api/texfont.C index 1f9f54aedb..432a6e6dda 100644 --- a/api/texfont.C +++ b/api/texfont.C @@ -469,7 +469,7 @@ void txfGetStringMetrics( } else { tgvi = getTCVI(txf, string[i]); - w += tgvi->advance; + w += (int)tgvi->advance; } } *width = w;