Comment 11 for bug 564034

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I think there are two short-term ways of fixing this problem.
1. Extend the menu code so that a bitmap can be used as the icon in a menu title (with the bitmap being scaled to suit the panel size).
2. Change iBus so that it converts the bitmap for each input method to a vector graphic (consisting of lots of little squares), and then passes that vector graphic to be used as the menu title.

The long-term way to fix the problem is to redraw the icon for each input method as a genuine vector graphic, so that (a) it works regardless of panel size, and (b) it uses symbolic icon colors, making it resilient to theme changes. Many of these vector graphics could be functionally generated, as they seem to be currently. Pseudocode examples:
    icon(greek) = overlay_glyph_with_caption("Ω", "KBD")
    icon(armenian) = overlay_glyph_with_caption("ក", "YNS")