[Webkit-unassigned] [Bug 213148] [WPE][GTK] WEBKIT_FORCE_SANDBOX (bwrap) results in pixelated font under Wayland where everything is nice with GDK_BACKEND=x11

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 13 11:16:42 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213148

--- Comment #8 from Michael Catanzaro <mcatanzaro at gnome.org> ---
Although antialiasing can be configured in fontconfig, there are two ways to configure it: it could be configured to override desktop (cairo/GTK) font settings, or it could be configured to be overridden by the desktop font settings. The later is much more common. So my guess is that the desktop font settings are broken inside your sandbox.

Try running this test program with your bwrap command... does it give a different result than when run on your host?


// gcc `pkg-config --cflags --libs gtk+-3.0` test-antialiasing.c

#include <gtk/gtk.h>

int
main (int argc, char **argv)
{
  GtkSettings *settings;
  gint antialias;

  gtk_init (&argc, &argv);

  settings = gtk_settings_get_default ();
  g_object_get (settings, "gtk-xft-antialias", &antialias, NULL);

  switch (antialias)
    {
    case -1:
      printf ("CAIRO_ANTIALIAS_DEFAULT\n");
      break;
    case 0:
      printf ("CAIRO_ANTIALIAS_NONE\n");
      break;
    case 1:
      printf ("CAIRO_ANTIALIAS_SUBPIXEL or CAIRO_ANTIALIAS_GRAY\n");
      break;
    default:
      g_assert_not_reached ();
    }

  return 0;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200613/9f5aebc1/attachment.htm>


More information about the webkit-unassigned mailing list