This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17932 - >http://dev.w3.org/html5/2dcontext/#dom-context-2d-measuretext >The TextMetrics interface is used for the objects returned from measureText(). > It has one attribute, width, which is set by the measureText() method I presume it was called width because i
Summary: >http://dev.w3.org/html5/2dcontext/#dom-context-2d-measuretext >The TextMetri...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 07:19 UTC by contributor
Modified: 2012-10-19 22:47 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-07-18 07:19:18 UTC
This was was cloned from bug 16793 as part of operation convergence.
Originally filed: 2012-04-18 22:08:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-04-18 22:08:57 +0000 
--------------------------------------------------------------------------------
Specification: http://dev.w3.org/html5/2dcontext/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
>http://dev.w3.org/html5/2dcontext/#dom-context-2d-measuretext

>The TextMetrics interface is used for the objects returned from
measureText(). 
> It has one attribute, width, which is set by the measureText() method

I presume it was called width because its the width of a "box", but for
the case of text its probably not "width", its more likely "logical advance".

I suggest adding clarifying words that "the box width represents the logical
advance of the string".

Posted from: 148.87.19.198
User agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-10-19 22:47:11 UTC
The WHATWG spec does have text to that effect.