Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Font size calculation
Font size calculation [message #22483] Mon, 07 May 2007 08:09 Go to next message
Eclipse UserFriend
Hello,

I know that font size calculation is planned for M5, but it has I high
priority for me, as the "close view" action is not always visible depending
on the characters used in the title. Maybe you could fix this issue a little
bit earlier.

Best regards,

Markus
Re: Font size calculation [message #22784 is a reply to message #22483] Mon, 07 May 2007 16:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Markus,

Could you please provide a couple of problematic strings (with font and
size).

Thanks,

Jochen

Markus Krüger wrote:
> Hello,
>
> I know that font size calculation is planned for M5, but it has I high
> priority for me, as the "close view" action is not always visible depending
> on the characters used in the title. Maybe you could fix this issue a little
> bit earlier.
>
> Best regards,
>
> Markus
>
>
Re: Font size calculation [message #23046 is a reply to message #22784] Tue, 08 May 2007 06:07 Go to previous messageGo to next message
Eclipse UserFriend
Hello Jochen,
I think it has to do with the character "w" or "W". I use the character
several times in the name. I wanted to name a View "World Wide Web Browser"
which maybe seems to you a little bit strange.I didn't like it either as I
saw the title in the view, but that's a String where You do not see the
close-image anymore. I changed my title now to "Web Browser" wich I will use
now as the close-image is visible now but it is still miss-placed somehow.
It is too far to the right edge of the view tab. You can reproduce it as You
change the title of Your demo view "View I" to the titles mentioned above. I
did not change any font setting.

Thank you in advance,
Markus

"Jochen Krause" <jkrause@innoopract.com> schrieb im Newsbeitrag
news:f1o18l$lts$2@build.eclipse.org...
> Hi Markus,
>
> Could you please provide a couple of problematic strings (with font and
> size).
>
> Thanks,
>
> Jochen
>
> Markus Kr
Re: Font size calculation [message #32914 is a reply to message #23046] Wed, 13 June 2007 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Now I also have the problem with the perspective switcher and it does not
look good for our customers.
You can reproduce this by the name a view "Webbrowser", wich leads to the
missplaced close button, and to name one perspective "Basis" and the other
one "Report Viewer" (which relly looks bad). Could You add some extra pixels
to it for now, to make it work for me, or could You tell me where I have to
add the extra pixels?

Regards,

Markus

"Markus Kr
Re: Font size calculation [message #33018 is a reply to message #32914] Wed, 13 June 2007 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Markus,

you could either add some extra space characters at the end of your text
or hack the FontSizeEstimation class.The getAvgCharWidth(Font) method
does the actual "calculation".

Hop that helps
Rüdiger


Markus Krüger wrote:
> Now I also have the problem with the perspective switcher and it does not
> look good for our customers.
> You can reproduce this by the name a view "Webbrowser", wich leads to the
> missplaced close button, and to name one perspective "Basis" and the other
> one "Report Viewer" (which relly looks bad). Could You add some extra pixels
> to it for now, to make it work for me, or could You tell me where I have to
> add the extra pixels?
>
> Regards,
>
> Markus
>
> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
> news:f1pi2l$b3$1@build.eclipse.org...
>> Hello Jochen,
>> I think it has to do with the character "w" or "W". I use the character
>> several times in the name. I wanted to name a View "World Wide Web
>> Browser" which maybe seems to you a little bit strange.I didn't like it
>> either as I saw the title in the view, but that's a String where You do
>> not see the close-image anymore. I changed my title now to "Web Browser"
>> wich I will use now as the close-image is visible now but it is still
>> miss-placed somehow. It is too far to the right edge of the view tab. You
>> can reproduce it as You change the title of Your demo view "View I" to the
>> titles mentioned above. I did not change any font setting.
>>
>> Thank you in advance,
>> Markus
>>
>> "Jochen Krause" <jkrause@innoopract.com> schrieb im Newsbeitrag
>> news:f1o18l$lts$2@build.eclipse.org...
>>> Hi Markus,
>>>
>>> Could you please provide a couple of problematic strings (with font and
>>> size).
>>>
>>> Thanks,
>>>
>>> Jochen
>>>
>>> Markus Krüger wrote:
>>>> Hello,
>>>>
>>>> I know that font size calculation is planned for M5, but it has I high
>>>> priority for me, as the "close view" action is not always visible
>>>> depending on the characters used in the title. Maybe you could fix this
>>>> issue a little bit earlier.
>>>>
>>>> Best regards,
>>>>
>>>> Markus
>>
>
>
Re: Font size calculation [message #33054 is a reply to message #33018] Thu, 14 June 2007 05:05 Go to previous messageGo to next message
Eclipse UserFriend
Hi R
  • Attachment: persp.gif
    (Size: 4.55KB, Downloaded 138 times)
Re: Font size calculation [message #33057 is a reply to message #33054] Thu, 14 June 2007 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Markus,

this is a known problem. The CoolItem in this thing is cut because we
don't support a chevron on CoolItems yet.

See bug 190071 and 190072

Cheers
Benny

Markus Krüger wrote:
> Hi Rüdiger,
> I added the line
>
> width = width + 0.5f;
>
> to the getAvgCharWidth(Font) method. The name of the view is now displayed
> better, but the perspectivebar still looks bad if I open a second
> perspective. You can reproduce this in the demo as described below. The
> default perspective open is "Basis". Now, if I open my perspective "Report
> Viewer" then the text is still cut of as shown in the atteched screen shot.
> Maybe the perspective bar does not resize corretly?
>
> Regards,
> Markus
>
>
> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:f4p452$475$1@build.eclipse.org...
>> Hi Markus,
>>
>> you could either add some extra space characters at the end of your text
>> or hack the FontSizeEstimation class.The getAvgCharWidth(Font) method
>> does the actual "calculation".
>>
>> Hop that helps
>> Rüdiger
>>
>>
>> Markus Krüger wrote:
>>> Now I also have the problem with the perspective switcher and it does not
>>> look good for our customers.
>>> You can reproduce this by the name a view "Webbrowser", wich leads to the
>>> missplaced close button, and to name one perspective "Basis" and the
>>> other
>>> one "Report Viewer" (which relly looks bad). Could You add some extra
>>> pixels
>>> to it for now, to make it work for me, or could You tell me where I have
>>> to
>>> add the extra pixels?
>>>
>>> Regards,
>>>
>>> Markus
>>>
>>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>>> news:f1pi2l$b3$1@build.eclipse.org...
>>>> Hello Jochen,
>>>> I think it has to do with the character "w" or "W". I use the character
>>>> several times in the name. I wanted to name a View "World Wide Web
>>>> Browser" which maybe seems to you a little bit strange.I didn't like it
>>>> either as I saw the title in the view, but that's a String where You do
>>>> not see the close-image anymore. I changed my title now to "Web Browser"
>>>> wich I will use now as the close-image is visible now but it is still
>>>> miss-placed somehow. It is too far to the right edge of the view tab.
>>>> You
>>>> can reproduce it as You change the title of Your demo view "View I" to
>>>> the
>>>> titles mentioned above. I did not change any font setting.
>>>>
>>>> Thank you in advance,
>>>> Markus
>>>>
>>>> "Jochen Krause" <jkrause@innoopract.com> schrieb im Newsbeitrag
>>>> news:f1o18l$lts$2@build.eclipse.org...
>>>>> Hi Markus,
>>>>>
>>>>> Could you please provide a couple of problematic strings (with font and
>>>>> size).
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jochen
>>>>>
>>>>> Markus Krüger wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I know that font size calculation is planned for M5, but it has I high
>>>>>> priority for me, as the "close view" action is not always visible
>>>>>> depending on the characters used in the title. Maybe you could fix
>>>>>> this
>>>>>> issue a little bit earlier.
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Markus
>>>
>
>
Re: Font size calculation [message #33236 is a reply to message #33057] Thu, 14 June 2007 08:28 Go to previous message
Eclipse UserFriend
Thanks for the input.

"Benjamin Muskalla" <bmuskalla@innoopract.com> schrieb im Newsbeitrag
news:f4r1v8$kq$1@build.eclipse.org...
> Hi Markus,
>
> this is a known problem. The CoolItem in this thing is cut because we
> don't support a chevron on CoolItems yet.
>
> See bug 190071 and 190072
>
> Cheers
> Benny
>
> Markus Kr
Previous Topic:Launching RAP on MAC OS X
Next Topic:RAP multilingual
Goto Forum:
  


Current Time: Fri May 09 20:07:40 EDT 2025

Powered by FUDForum. Page generated in 0.04687 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top