From 5c9b25c66e9cf3ae074c23795f5734141d1eb1af Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Jul 2018 17:50:54 -0400 Subject: [PATCH] moji chooser: Try harder to avoid fallback We don't want to see any fallback rendering. The current check was still letting some fallback combinations through. Based on work by Julian Sparber. --- gtk/gtkemojichooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 2a774dbef0..ad722e4a1b 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -373,7 +373,7 @@ add_emoji (GtkWidget *box, pango_layout_get_extents (layout, &rect, NULL); /* Check for fallback rendering that generates too wide items */ - if (rect.width >= 2 * chooser->emoji_max_width) + if (rect.width >= 1.5 * chooser->emoji_max_width) { gtk_widget_destroy (label); return;