Comment #6 on issue 17949 by fin...@chromium.org: Hebrew: F11 is shown as  
F1 plus ellipsis on "Exit full screen (F11)" animation
http://code.google.com/p/chromium/issues/detail?id=17949

This is a little tricky...

The label is drawn by the Windows APIs based on available space calculated  
by... (you guessed it) the Windows APIs again.

We use ::GetTextExtentPoint32 to calculate how much space is needed to draw  
the label. It returns 180 pixels.
We use ::DrawText to draw the string. It needs 183 pixels.

I think the reason why it needs more is because it is drawing the right  
parentheses in the wrong font. If you look at the
attachment (where I have artificially added 3 pixels to the width to  
prevent eliding and added dotted yellow lines for
visual guidance), you'll see the font for the right parentheses does not  
match the font for the left parentheses. The
difference? The right parentheses is 3 pixels wider (and taller) than when  
I draw it without the accompanying Hebrew text.

At this point all solutions look hacky to me... I guess it would be easy to  
split up the label in two but does anyone have
any bright ideas here?


Attachments:
        he-F11.png  19.0 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to