W3C home > Mailing lists > Public > public-webcgm-wg@w3.org > October 2008

p.s. Re: getObjectExtent() question

From: Lofton Henderson <lofton@rockynet.com>
Date: Fri, 10 Oct 2008 12:33:48 -0600
Message-Id: <>
To: "Bezaire, Benoit" <bbezaire@ptc.com>, "WebCGM WG" <public-webcgm-wg@w3.org>
I think the 2nd paragraph of the gOE description reinforces my guess at the 
intent of the sentence in question:

The contribution of text elements to the object extent is conceptually 
calculated from the containing parallellogram of the displayed text, 
defined as follows. The length of the side in the text-up direction is the 
bottomline-to-topline distance of the font, after computation of the 
effective font size that reflects all text attributes, the height of the 
Restricted Text box, the Restricted Text Type, and the Style Properties 
text-size and text-font. The length of the side in the text-baseline 
direction is the length of the restricted text box if the entire Restricted 
Text element is contained within the object, or the sum of the glyph widths 
if only an Append Text element is within the object.


At 12:30 PM 10/10/2008 -0600, Lofton Henderson wrote:
>At 01:50 PM 10/10/2008 -0400, Bezaire, Benoit wrote:
>>The getObjectExtent() wording says:
>>"... Other than text attributes and Style Properties, the calculation is 
>>not affected by CGM Primitive Attribute (such as line width) or Control 
>>elements, nor by 
>>Attributes or 
>>Isn't that a contradiction regarding Style Properties? Do Style 
>>Properties affect the calculations, yes or no?
>I suspect that the intent was this:
>"Other than text attributes and text-related Style Properties, the 
>calculation is not affected by CGM Primitive Attribute (such as line 
>width) or Control elements, nor by APS Attributes or non-text Style 
>We wanted the text size to affect the calculation when it comes from a 
>text-related CGM Primitive Attribute (or from the RT box, obviously).  I 
>suspect that we wanted the text size to also have an effect when it is 
>changed by the text-size SP, correct?
>(If "no", then gOE would effectively return the text extent as defined in 
>the metafile, but unrelated to its actual displayed extent as might be 
>affected by text-size SP -- is that what we want?)
>But I think it's clear that we didn't want line width to affect it, or any 
>other of the extent calculations.
Received on Friday, 10 October 2008 18:34:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:23:40 UTC