Font size calculation [message #22483] |
Mon, 07 May 2007 08:09  |
Eclipse User |
|
|
|
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 #33018 is a reply to message #32914] |
Wed, 13 June 2007 11:57   |
Eclipse User |
|
|
|
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 #33057 is a reply to message #33054] |
Thu, 14 June 2007 05:32   |
Eclipse User |
|
|
|
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
>>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04687 seconds