https://bugs.documentfoundation.org/show_bug.cgi?id=148470

--- Comment #13 from enhua_2...@163.com ---
(In reply to Caolán McNamara from comment #8)
> > I try to debug but I can't get the aTooltipFont's font name.
> 
> dumping it to stderr with something like
> 
> fprintf(stderr, "fontname is %s\n",
> aTooltipFont.GetFamilyName().toUtf8().getStr());
> 
> might be good enough to get it
> 
> > Then I add two
> > line after line 1267, because  the menus with '⌘' displays correctly.
> > aStyleSettings.SetHelpFont(aMenuFont);
> > aStyleSettings.SetToolFont(aMenuFont); 
> > But it has no effect.
> 
> On mac I think the menus are rendered by the OS and not directly by us so
> things are complicated there.

I find that the tooltip is returned in File
vcl/source/helper/commandinfoprovider.cxx Line 291, then add a print line 
after line 289 like below
fprintf(stderr,"sShortCut is %s\n",sShortCut.toUtf8().getStr());
The print like this:
sShortCut is xe2x8cx98T
sShortCut is xe2x87xa7xe2x8cx98F11
sShortCut is xe2x87xa7F11
sShortCut is xe2x8cx98]
sShortCut is xe2x8cx98[
sShortCut is xe2x8cx98B
sShortCut is xe2x8cx98I
sShortCut is xe2x8cx98U
sShortCut is xe2x8cx98D
sShortCut is xe2x8cx98N
sShortCut is xe2x87xa7xe2x8cx98N
sShortCut is xe2x8cx98O
sShortCut is 
sShortCut is xe2x8cx98S  // I guess xe2x8cx98 is for ⌘
sShortCut is xe2x87xa7xe2x8cx98S
sShortCut is 
sShortCut is xe2x87xa7xe2x8cx98M
sShortCut is 
sShortCut is xe2x8cx98P

If print without toUtf8() , the print like this:
fprintf(stderr,"sShortCut is %s\n",sShortCut.getStr());
sShortCut is x18#S     // I guess x18# is for ⌘
sShortCut is xe7!x18#S
sShortCut is 
sShortCut is xe7!x18#M
3
sShortCut is 
sShortCut is x18#P
sShortCut is 
sShortCut is xe7!x18#O
sShortCut is x18#X
sShortCut is x18#C
sShortCut is x18#V

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to