for the font size in preedit window, for GTK3.16 and later
https://github.com/vim/vim/pull/20316
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra commented on this pull request.
In src/gui_xim.c:
> @@ -488,7 +490,7 @@ im_preedit_window_open(void)
fontsize = dpi * fontsize / 72;
}
if (fontsize > 0)
- fontsize_propval = g_strdup_printf("%dpx", fontsize);
+ fontsize_propval = g_strdup_printf("%dpx", (gint)fontsize);
Hm,
should that rather be:
- fontsize_propval = g_strdup_printf("%dpx", (gint)fontsize);
+ fontsize_propval = g_strdup_printf("%dpx", (gint)(fontsize + 0.5));
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@koron pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@koron commented on this pull request.
In src/gui_xim.c:
> @@ -488,7 +490,7 @@ im_preedit_window_open(void)
fontsize = dpi * fontsize / 72;
}
if (fontsize > 0)
- fontsize_propval = g_strdup_printf("%dpx", fontsize);
+ fontsize_propval = g_strdup_printf("%dpx", (gint)fontsize);
@chrisbra Thank you.
I merged your suggestion as is. a5f5ab0
After merging, I checked it in my local environment and it worked without any problems.
Please review it again.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()