After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637166 - Wrong symbol in tooltip
Wrong symbol in tooltip
Status: RESOLVED DUPLICATE of bug 161027
Product: pango
Classification: Platform
Component: win32
unspecified
Other Windows
: Normal minor
: ---
Assigned To: gtk-win32 maintainers
pango-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-13 17:11 UTC by Pedro Lino
Modified: 2011-03-02 21:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Function tooltip in Windows (969 bytes, image/png)
2010-12-13 17:11 UTC, Pedro Lino
Details
Function tooltip in Ubuntu (4.71 KB, image/png)
2010-12-13 17:13 UTC, Pedro Lino
Details

Description Pedro Lino 2010-12-13 17:11:44 UTC
Created attachment 176349 [details]
Function tooltip in Windows

When typing a formula the tooltip that pops up shows odd symbols instead of the nice arrows it shows in Linux (See attached images)

gnumeric_tooltip.png is what shows up in Windows
gnumeric_tooltip_ubuntu.png is what is supposed to show (but you already know this :) )
Comment 1 Pedro Lino 2010-12-13 17:13:30 UTC
Created attachment 176350 [details]
Function tooltip in Ubuntu

I couldn't submit 2 images in the bug submission
Comment 2 Andreas J. Guelzow 2010-12-13 19:12:20 UTC
This is just a question of the symbols available. These are unicode characters
#define UNICODE_LEFT_TRIANGLE "\xe2\x97\x80"
#define UNICODE_RIGHT_TRIANGLE "\xe2\x96\xb6"
#define UNICODE_CROSS_AND_SKULLBONES "\xe2\x98\xa0"

You may want to install the required symbols in your MS Windows installation.
Comment 3 Andreas J. Guelzow 2010-12-13 19:16:41 UTC
Note that this was supposedly fixed . See bug #622776.
Comment 4 Andreas J. Guelzow 2010-12-13 19:20:44 UTC
I see. We used to use arrows but then simplified them to triangles since Windows supposedly liked them better:

-#define UNICODE_LEFT_ARROW "\xe2\xac\x85"
-#define UNICODE_RIGHT_ARROW "\xe2\x9e\xa1"
+#define UNICODE_LEFT_TRIANGLE "\xe2\x97\x80"
+#define UNICODE_RIGHT_TRIANGLE "\xe2\x96\xb6"


I feel like going back to the arrows if Windows has problems anyways.

But really this is NOTGNOME.
Comment 5 Morten Welinder 2010-12-14 14:35:04 UTC
Can we detect the situation?
Comment 6 Pedro Lino 2010-12-14 15:10:51 UTC
After some investigation, I found out that it depends on the Windows Style used (same as skin for a Linux shell). This defines the font used in the tooltip, and some fonts do not have the arrows (in this case MS Sans Serif).

It is not possible to install symbols in Windows. Either the font includes it or not.

I think it can be dismissed as Not a Bug :) It is something that eventually can happen to a Windows user...

Suggestion: why not simply use the » and « characters?
Comment 7 Andreas J. Guelzow 2010-12-14 17:11:53 UTC
The » and « characters are quotation marks. I think xxx("x",y,z) would look rather confusing and not emphasize the input. (In the example I am using the quotation marks from my locale since I have to expect that the quotation marks suggested have the same effect in the locale where they are used.)

Note that the triangles aren't included in most Linux fonts either. It is up to the graphical interface provided to retrieve the correct glyph from an available font.
Comment 8 Pedro Lino 2010-12-14 17:48:40 UTC
If you could specify that these symbols are to be extracted from the Arial font, regardless of the font used by the Windows Style, that could work.

The ► is identified as U+25BA: Black Right-Pointing Pointer
and ◄ is identified as U+25C4: Black Left-Pointing Pointer
Comment 9 Morten Welinder 2010-12-14 18:02:28 UTC
> If you could specify that these symbols are to be extracted from the Arial
> font, regardless of the font used by the Windows Style, that could work.

Pango (or something below it) is supposed to do just that.  Obviously it
isn't.
Comment 10 Andreas J. Guelzow 2010-12-14 23:57:45 UTC
Since this seems to be a pango (or lower) bug, let's see what they have to say.
Comment 11 Tor Lillqvist 2010-12-29 20:27:13 UTC
Font / glyph fallback just doesn't work the same way in Pango on Windows as on X11 / Linux, sorry. (And no, I can't say how exactly it works in a different way...) I am sure we already have a more generic bug open for that against Pango on Windows since a long time, so this should most likely be resolved as a duplicate.
Comment 12 Behdad Esfahbod 2011-03-02 21:34:17 UTC
Does windows 7 provide better APIs for this?

*** This bug has been marked as a duplicate of bug 161027 ***