The reason is that GtkMenu being spawned inside GtkTextView and the
font-family property is inherited from parent. If GtkTextView is set to
monospace font, GtkMenu also inherits that font.

The fix would be setting its value to initial. The following Gtk code
does that:

.context-menu {
        font: initial;
} 

I don't know how it would be done programmatically, though:
https://gitlab.xfce.org/apps/mousepad/-/blob/master/mousepad/mousepad-window.c#L3487

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1950947

Title:
  Using system monospace font affects context menus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1950947/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to