OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: getObjectExtent for text


All,

For text the getObjectExtent is based on bottomline-to-topline distance of
the font. Is there some where this is specified for the standard WebCGM
fonts? We are using metrics from Microcosm (Tom Wright) for ours. For
Helvetica we have cap height = 718, ascender = 718 and descender = 207 using
these values we match Stuart's values for the text string in the
getObjectExtentTransformed test. In our calculations we use the yMax value
for the topline calculation which for this font is 931 and gives a different
value than Stuart's. What values should be used for the topline calculation?

Regards,
Forrest


-----Original Message-----
From: Galt, Stuart A [mailto:stuart.a.galt@boeing.com] 
Sent: Monday, April 20, 2009 6:07 PM
To: WebCGM
Subject: [cgmo-webcgm] getObjectExtent and getObjectExtentTransformed

Hello,

I have updated the getObjectExtent.htm and the
getObjectExtentTransformed.htm
files on the FTP server.

For both tests:
- I have added a try block so if the getObjectExtent() call fails then I

  put "getObjectExtent not implemented" in the result table.

- Changed the calculated box value for the text string to take into
account
  the decender of the 'g'

For getObjectExtentTransformed:
- Changed the how far the circle was translated from 40 to 120.

Stuart.

--
Stuart Galt
SGML Resource Group
stuart.a.galt@boeing.com
(206) 544-3656


---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php 





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]