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.
This commit is contained in:
parent
e37e1dfcb0
commit
c52d9cfc14
@ -404,7 +404,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;
|
||||
|
Loading…
Reference in New Issue
Block a user