p.s. Re: getObjectExtent() question

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.
]]]

-Lofton.


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 
>><http://www.w3.org/TR/2008/WD-webcgm21-20080917/WebCGM21-DOM.html#>APS 
>>Attributes or 
>><http://www.w3.org/TR/2008/WD-webcgm21-20080917/WebCGM21-DOM.html#>Style 
>>Properties..."
>>
>>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 
>Properties..."
>
>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.
>
>Thoughts?
>
>-Lofton.

Received on Friday, 10 October 2008 18:34:44 UTC