Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FigureUtilities.getTextExtents
FigureUtilities.getTextExtents [message #202588] Fri, 11 November 2005 10:37 Go to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Hi,

We are using FigureUtilities.getTextExtents and the results we are getting
suggests that the result is the same regardless of whether the font's
style is set to italic or not. Is it really the case that getTextExtents
ignores this?

James
Re: FigureUtilities.getTextExtents [message #202616 is a reply to message #202588] Fri, 11 November 2005 14:46 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Could it be that this result is actually correct?

"James Willans" <james.willans@xactium.com> wrote in message
news:1a4912467ca8184eb4a99cf15af77896$1@www.eclipse.org...
> Hi,
>
> We are using FigureUtilities.getTextExtents and the results we are getting
> suggests that the result is the same regardless of whether the font's
> style is set to italic or not. Is it really the case that getTextExtents
> ignores this?
>
> James
>
Re: FigureUtilities.getTextExtents [message #202640 is a reply to message #202616] Fri, 11 November 2005 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

You may be right, it could be GCs rendering of the italicised text that is
wrongly truncating the width. Is this something you've experienced?

James

Felix L J Mayer wrote:

> Could it be that this result is actually correct?

> "James Willans" <james.willans@xactium.com> wrote in message
> news:1a4912467ca8184eb4a99cf15af77896$1@www.eclipse.org...
>> Hi,
>>
>> We are using FigureUtilities.getTextExtents and the results we are getting
>> suggests that the result is the same regardless of whether the font's
>> style is set to italic or not. Is it really the case that getTextExtents
>> ignores this?
>>
>> James
>>
Re: FigureUtilities.getTextExtents [message #202654 is a reply to message #202640] Fri, 11 November 2005 16:31 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
No, I am just trying to clarify the situation. I have looked at italicized
Arial fonts, and in most cases I would not expect the italicized version of
a string to be longer than the normal one, depending on the last character.
If you are actually seeing letters being cut off, then I don't know.

"James Willans" <james.willans@xactium.com> wrote in message
news:5572cb6219ce264ff2b50ea9aff32ebe$1@www.eclipse.org...
> You may be right, it could be GCs rendering of the italicised text that is
> wrongly truncating the width. Is this something you've experienced?
>
> James
>
> Felix L J Mayer wrote:
>
>> Could it be that this result is actually correct?
>
>> "James Willans" <james.willans@xactium.com> wrote in message
>> news:1a4912467ca8184eb4a99cf15af77896$1@www.eclipse.org...
>>> Hi,
>>>
>>> We are using FigureUtilities.getTextExtents and the results we are
>>> getting suggests that the result is the same regardless of whether the
>>> font's style is set to italic or not. Is it really the case that
>>> getTextExtents ignores this?
>>>
>>> James
>>>
>
>
Re: FigureUtilities.getTextExtents [message #202668 is a reply to message #202588] Fri, 11 November 2005 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You are seeing the result returned from win32. I don't think italics affect
the width result, even though they clearly require more pixels at the time
of painting, in some cases.

"James Willans" <james.willans@xactium.com> wrote in message
news:1a4912467ca8184eb4a99cf15af77896$1@www.eclipse.org...
> Hi,
>
> We are using FigureUtilities.getTextExtents and the results we are getting
> suggests that the result is the same regardless of whether the font's
> style is set to italic or not. Is it really the case that getTextExtents
> ignores this?
>
> James
>
Re: FigureUtilities.getTextExtents [message #202704 is a reply to message #202668] Fri, 11 November 2005 17:24 Go to previous message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

For example when "Named" is rendered we are seeing "Nameo". I have tried
adding a bit to the values calculated by FigureUtilities.getTextExtents
but this doesn't remedy the issue. I think the following GC bug reported
by Pratik might be the root of this problem:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=93447

James
Previous Topic:How can I employ Print Action?
Next Topic:Draw2D does not work correct when I change the Label font size
Goto Forum:
  


Current Time: Fri Mar 29 06:28:46 GMT 2024

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

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

Back to the top